-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
95 lines (83 loc) · 2.68 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<project default="compile">
<property name="version" value="1.2"/>
<target name="build" depends="compile">
<echo>Building</echo>
</target>
<target name="compile" depends="javacompile,scmcompile">
<echo>Compiling...</echo>
</target>
<target name="scmcompile">
<apply taskname="kawa" executable="java" failonerror="true" parallel="true">
<arg value="-cp" />
<arg value="plugins/:lib/kawa-1.9.90.jar:ij.jar:lib/jts-1.8.jar:lib/jtsio-1.8.jar" />
<arg value="kawa.repl" />
<arg value="-d" />
<arg path="plugins" />
<arg line="--module-static-run --warn-undefined-variable --warn-invoke-unknown-method" />
<arg value="-C" />
<fileset dir="src">
<include name="**/*.scm" />
</fileset>
</apply>
</target>
<target name="javacompile">
<mkdir dir="plugins" />
<javacc target="grammars/MroiLisp.jj"
outputdirectory="src/mroi"
javacchome="lib"
static="false"
/>
<javacc target="grammars/LispToLists.jj"
outputdirectory="src/mroi/common"
javacchome="lib"
static="false"
/>
<javac srcdir="src" destdir="plugins">
<classpath>
<pathelement location="plugins/" />
<pathelement location="lib/kawa-1.9.3.jar"/>
<pathelement location="ij.jar"/>
<pathelement location="lib/jts-1.8.jar"/>
<pathelement location="lib/jtsio-1.8.jar"/>
<pathelement location="lib/junit-4.4.jar"/>
</classpath>
</javac>
</target>
<target name="test" depends="compile">
<junit haltonfailure="yes" printsummary="yes">
<formatter type="plain"/>
<classpath>
<pathelement location="plugins/" />
<pathelement location="lib/kawa-1.9.3.jar"/>
<pathelement location="ij.jar"/>
<pathelement location="lib/jts-1.8.jar"/>
<pathelement location="lib/jtsio-1.8.jar"/>
<pathelement location="lib/junit-4.4.jar"/>
</classpath>
<batchtest>
<fileset dir="plugins" includes="**/*Test.class" />
</batchtest>
</junit>
</target>
<target name="package" depends="compile">
<tar destfile="mroi-${version}.tar.gz" compression="gzip"
basedir="." includes="src/**,lib/**,plugins/**,README,DESIGN,LICENSE,build.xml"/>
</target>
<target name="run" depends="compile">
<java classname="ij.ImageJ" fork="true">
<jvmarg value="-Xmx512m" />
<classpath>
<pathelement location="plugins/" />
<pathelement location="lib/kawa-1.9.90.jar"/>
<pathelement location="ij.jar"/>
<pathelement location="lib/jts-1.8.jar"/>
<pathelement location="lib/jtsio-1.8.jar"/>
<pathelement location="lib/junit-4.4.jar"/>
</classpath>
<arg value="-Dplugins.dir" />
</java>
</target>
<target name="clean">
<delete dir="plugins" />
</target>
</project>