-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (45 loc) · 1.41 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
<project name="utils4ant" default="dist">
<target name="init">
<property file="${user.name}.properties" />
<property file="build.properties" />
</target>
<target name="clean" depends="init">
<delete failonerror="false">
<fileset dir="${bin.dir}" />
</delete>
</target>
<target name="compile" depends="init">
<mkdir dir="${compile.dir}" />
<javac destdir="${compile.dir}" srcdir="${src.dir}" source="${source.level}" debug="on" target="${target.level}" includeantruntime="false">
<classpath>
<pathelement location="${lib.dir}/ant.jar" />
<pathelement location="${lib.dir}/ant-apache-log4j.jar" />
<pathelement location="${lib.dir}/commons-compress-1.4.1.jar"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist.dir}" />
<jar destfile="${dist.dir}/${ant.project.name}.jar">
<fileset dir="${compile.dir}" />
<fileset dir="${src.dir}" includes="**/*.properties" />
</jar>
</target>
<target name="test-condition-filter">
<typedef resource="googlecode/utils4ant/typedef.properties">
<classpath>
<path path="bin;src" />
<fileset dir="lib" includes="*.jar" />
</classpath>
</typedef>
<property name="if1" value="true" />
<property name="elseif2" value="false" />
<concat>
<fileset file="test.txt.template" />
<filterchain>
<echofilter />
<conditionfilter />
</filterchain>
</concat>
</target>
</project>