-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuild.xml
28 lines (24 loc) · 971 Bytes
/
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
<project name="bartMachine" basedir="." default="clean">
<description>
This script builds the bartMachine code into the bart_java.jar file which gets called from R in the R package
</description>
<path id="master-classpath">
<fileset dir=".">
<include name="*.jar" />
<exclude name="bart_java.jar" />
</fileset>
</path>
<target name="compile" description="compile the source code">
<mkdir dir="class_files"/>
<javac srcdir="src" destdir="class_files" includeantruntime="false" target="1.8" source="1.8">
<exclude name="**/package-info.java"/>
<classpath refid="master-classpath" />
</javac>
</target>
<target name="dist" depends="compile" description="generate the jar file" >
<jar destfile="bartMachine/inst/java/bart_java.jar" basedir="class_files" />
</target>
<target name="clean" description="Clean up" depends="dist">
<delete dir="class_files" />
</target>
</project>