This repository has been archived by the owner on May 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-test.xml
63 lines (50 loc) · 2.27 KB
/
build-test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<project name="eloom" basedir="." default="instalar">
<property file="${basedir}/build.properties" />
<property file="${basedir}/build-test.properties" />
<target name="init-ant-contrib">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${basedir}/tmp/lib/ant-contrib-1.0b3.jar" />
</classpath>
</taskdef>
</target>
<target name="instalar" depends="init-ant-contrib">
<antcall target="remover" />
<ant antfile="build.xml" target="_preparar-fontes" />
<foreach list="${eloom.modulos}" param="modulo" delimiter="," target="_pre-instalar-modulo" />
<foreach list="${eloom.modulos}" param="modulo" delimiter="," target="_instalar" />
<ant antfile="build.xml" target="_limpar-cache">
<property name="ambiente" value="test" />
</ant>
<ant antfile="build.xml" target="_limpar-sessao">
<property name="ambiente" value="test" />
</ant>
<ant antfile="build.xml" target="_limpar-fontes" />
</target>
<target name="_pre-instalar-modulo">
<ant antfile="build.xml" target="_pre-instalar-modulo">
<property name="ambiente" value="desenv" />
<property name="modulo" value="${modulo}" />
</ant>
</target>
<target name="_instalar">
<ant antfile="build-${modulo}.xml" target="remover">
<property name="ambiente" value="test" />
</ant>
<ant antfile="build-${modulo}.xml" target="instalar">
<property name="ambiente" value="test" />
</ant>
</target>
<target name="remover" depends="init-ant-contrib">
<foreach list="${eloom.modulos}" param="modulo" delimiter="," target="_remover" />
<ant antfile="build.xml" target="_limpar-cache">
<property name="ambiente" value="test" />
</ant>
</target>
<target name="_remover">
<ant antfile="build-${modulo}.xml" target="remover">
<property name="ambiente" value="test" />
</ant>
</target>
</project>