-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·59 lines (47 loc) · 1.83 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
57
58
59
<?xml version="1.0"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="concurrency demo" basedir="." default="build">
<target name="resolve" depends="init">
<ivy:retrieve pattern="${lib.dir}/[module]-[type]-[artifact]-[revision].[ext]" />
</target>
<target name="init">
<property name="lib.dir" location="${basedir}/lib" />
<property name="src.dir" location="${basedir}/src" />
<property name="generated.dir" location="${basedir}/generated" />
<property name="test.dir" location="${basedir}/test" />
<property name="build.dir" location="${basedir}/classes" />
<property name="config.dir" location="${basedir}/resources" />
<path id="project.classpath">
<pathelement location="${build.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}" />
</target>
<target name="build" depends="init">
<mkdir dir="${build.dir}" />
<javac destdir="${build.dir}" debug="true" deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}" />
<classpath refid="project.classpath" />
</javac>
</target>
<target name="build.test" depends="build">
<javac destdir="${build.dir}" debug="true" deprecation="false" optimize="false" failonerror="true">
<src path="${test.dir}" />
<classpath refid="project.classpath" />
</javac>
</target>
<!-- ================================================================= -->
<target name="gen-names" depends="build">
<java fork="yes" maxmemory="512m" classname="gash.data.GeneratePeople">
<classpath refid="project.classpath" />
</java>
</target>
<target name="pop-movable" depends="build">
<java fork="yes" maxmemory="512m" classname="gash.data.PopulateMovableSegments">
<classpath refid="project.classpath" />
</java>
</target>
</project>