-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
40 lines (35 loc) · 1.45 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
<project name="algebra" basedir="." default="algebra" >
<property name="processor.srcdir" value="processor" />
<property name="processor.classdir" value="bin/processor" />
<property name="processor.jar" value="bin/processor.jar" />
<property name="algebra.srcdir" value="src" />
<property name="algebra.classdir" value="bin/algebra" />
<target name="processor-classes">
<mkdir dir="${processor.classdir}" />
<delete dir="${processor.classdir}/com" />
<javac srcdir="${processor.srcdir}" destdir="${processor.classdir}" includeantruntime="false" debug="true"/>
</target>
<target name="processor-jar" depends="processor-classes">
<jar jarfile="${processor.jar}">
<fileset dir="${processor.classdir}" />
<service type="javax.annotation.processing.Processor">
<provider classname="com.mdgeorge.algebra.properties.meta.PropertyChecker" />
<provider classname="com.mdgeorge.algebra.properties.meta.TestGenerator" />
</service>
</jar>
</target>
<target name="algebra" depends="processor-jar">
<!-- delete output, because ant/java suck and won't rebuild with new jar -->
<mkdir dir="${algebra.classdir}"/>
<delete dir="${algebra.classdir}/com" />
<javac
srcdir="${algebra.srcdir}"
destdir="${algebra.classdir}"
includeantruntime="false"
classpath="${processor.jar}"
>
<compilerarg value="-processorpath" />
<compilerarg path="${processor.jar}" />
</javac>
</target>
</project>