-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
34 lines (28 loc) · 1.24 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
<?xml version="1.0"?>
<project name="taskbase" basedir="." default="compile"
xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- Variables -->
<property name="src.dir" value="src"/>
<property name="lib1.dir" value="mavenlib"/>
<property name="lib2.dir" value="lib"/>
<property name="build.dir" value="out"/>
<!-- Classpath -->
<path id="classpath">
<fileset dir="${lib1.dir}" includes="*.jar"/>
<fileset dir="${lib2.dir}" includes="*.jar"/>
</path>
<!-- Compile the java source code -->
<target name="compilejava">
<javac encoding="UTF8" srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" includeantruntime="false" verbose="false" debug="true"/>
</target>
<target name="compile" depends="resolve, compilejava"></target>
<!-- package resolving -->
<path id="ivy.lib.path">
<fileset dir="${lib2.dir}" includes="*.jar"/>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant"
classpathref="ivy.lib.path"/>
<target name="resolve" description="Retrieve dependencies with Apache IVY">
<ivy:retrieve type="jar,bundle" pattern="${lib1.dir}/[artifact].[ext]" sync="true"/>
</target>
</project>