[Rmesquite-commits] r19 - pkg

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Dec 20 06:27:50 CET 2009


Author: hlapp
Date: 2009-12-20 06:27:50 +0100 (Sun, 20 Dec 2009)
New Revision: 19

Added:
   pkg/build.xml
Log:
The front-end build file. Will build the package by default.


Added: pkg/build.xml
===================================================================
--- pkg/build.xml	                        (rev 0)
+++ pkg/build.xml	2009-12-20 05:27:50 UTC (rev 19)
@@ -0,0 +1,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="src/java"/>
+
+  <!--
+
+      ############################################################
+      Targets section
+      ############################################################
+
+    -->
+  
+  <target name="redeploy" 
+          description="rebuild the java library and copy to inst/java">
+    <ant antfile="${java.dir}/build.xml" target="redeploy"/>
+  </target>
+
+  <target name="clean" 
+          description="remove classes and build directories before packaging">
+    <ant antfile="${java.dir}/build.xml" 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>



More information about the Rmesquite-commits mailing list