forked from aviau/cryptocoin-tradelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
42 lines (32 loc) · 1.27 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
<project name="Java tradeLib meta build file" default="dist" basedir=".">
<description>
Ant build file to build the core and all the modules.
</description>
<fileset id="buildFiles" dir="." includes="core/build.xml modules/*/build.xml"/>
<fileset id="module-dist-files" dir="." includes="modules/*/dist/lib/*"/>
<property name="core.dist.lib" location="core/dist/lib"/>
<property name="core.dist.lib.ext" location="${core.dist.lib}/ext"/>
<target name="dist">
<!-- Build the core and modules distribution -->
<subant target="dist">
<fileset refid="buildFiles"/>
</subant>
<antcall target="copy-modules" />
<!-- Copy the modules to the core ext dir -->
</target>
<target name="copy-modules">
<!-- Copy all the files from the modules to the ext/ of the core dist/lib/ dir -->
<!-- create the ext dir, if it does not exist yet. -->
<mkdir dir="${core.dist.lib.ext}" />
<!-- Now copy all the jars from the modules dist lib directories. -->
<copy todir="${core.dist.lib.ext}" flatten="true">
<fileset refid="module-dist-files" />
</copy>
</target>
<target name="clean">
<!-- Clean the core and modules -->
<subant target="clean">
<fileset refid="buildFiles"/>
</subant>
</target>
</project>