-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
50 lines (35 loc) · 1.33 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
<?xml version="1.0"?>
<!--
This is the front-end ant build file for the Mesquite.R Java package for
R<->Mesquite interaction. It simply calls the real ant build file, which
is in the src/java directory, where the Java sources are.
-->
<project name="Mesquite.R" default="build">
<!--
############################################################
Properties section
############################################################
-->
<property name="java.dir" location="java"/>
<!--
############################################################
Targets section
############################################################
-->
<target name="redeploy"
description="rebuild the java library and copy to inst/java">
<ant antfile="${java.dir}/build.xml" dir="${java.dir}" target="redeploy"/>
</target>
<target name="clean"
description="remove classes and build directories before packaging">
<ant antfile="${java.dir}/build.xml" dir="${java.dir}" target="clean"/>
</target>
<target name="build" depends="redeploy,clean"
description="Build the R package, recompiling the Java sources">
<exec executable="R" dir="${basedir}/..">
<arg value="CMD"/>
<arg value="build"/>
<arg value="pkg"/>
</exec>
</target>
</project>