-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-compile.xml
35 lines (29 loc) · 1.21 KB
/
build-compile.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
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- Compile all our sources in one single operation -->
<target name="compile"
depends="init"
unless="task.executed.compile"
description="Compile all sources">
<property name="task.executed.compile" value="true"/>
<!-- Create our target directory and copy all java sources -->
<mkdir dir="${targetdir}/compile"/>
<copy todir="${targetdir}/compile">
<fileset dir="${sourcedir}"/>
</copy>
<!-- Create a property for our compilation directories src1:src2:... -->
<pathconvert property="compile.directories" pathsep=":">
<dirset dir="source">
<include name="*"/>
</dirset>
</pathconvert>
<!--+ Properly compile all java sources in one go, don't use destdir; we do
| this rather than using a script for each directory so that source
| directories depending on each other (eg "test" depending on "default")
| can be processed all in one go without the need to set classpaths.
+-->
<javac includeantruntime="false"
classpathref="ivy.classpath"
srcdir="${compile.directories}"/>
</target>
</project>