-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.xml
More file actions
31 lines (27 loc) · 1.08 KB
/
build.xml
File metadata and controls
31 lines (27 loc) · 1.08 KB
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
<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" release="21">
<exclude name="**/package-info.java"/>
<classpath refid="master-classpath" />
<compilerarg value="-Xlint:-options" />
<compilerarg value="--add-modules" />
<compilerarg value="jdk.incubator.vector" />
</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>