-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
56 lines (40 loc) · 1.54 KB
/
build.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
<project name="master">
<property name="dist.dir" location="dist" />
<property file="src/main/resources/core.properties" />
<!--property file="config/src/main/resources/build.properties" /-->
<!-- ================= Configuration =================== -->
<target name="sample-config">
<!-- sample-config.properties -->
<copy file="src/main/resources/sample-core.properties" tofile="src/main/resources/core.properties" />
</target>
<!-- ================= Installation / Deployment =================== -->
<target name="deploy-proeaf" depends="deploy-contexts">
<echo message="deploy-proeaf"/>
</target>
<target name="deploy-contexts">
<copy file="target/classes/proeaf.xml" toDir="${catalina.base}/conf/Catalina/localhost" />
</target>
<!-- ================= Misc. =================== -->
<target name="jar">
<iterate target="jar" />
</target>
<target name="clean">
<iterate target="clean" />
</target>
<target name="compile">
<iterate target="compile" />
</target>
<target name="test">
<iterate target="test" />
</target>
<macrodef name="iterate">
<attribute name="target" default="" />
<sequential>
<mkdir dir="${dist.dir}" />
<subant target="@{target}">
<property name="dist.dir" location="${dist.dir}" />
<fileset dir="." includes="*/build.xml" />
</subant>
</sequential>
</macrodef>
</project>