forrest integrated.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 1 Apr 2006 19:13:31 +0000 (19:13 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sat, 1 Apr 2006 19:13:31 +0000 (19:13 +0000)
build/header.xml
build/trailer.xml

index a06b43311cb72e95759b586d0fce6914db25f98a..a9b5691db84c95d8bae2007f767de100ff6743bc 100644 (file)
@@ -12,6 +12,7 @@
 <property name="project.home" value=".."/>
 <property name="build.dir" value="${project.home}/build"/>
 <property name="lib.dir" value="${project.home}/lib"/>
+<property environment="env"/>
 
 <target name="download.dep">
   <if>
index 6df4e18ca3274ec21c5618f97f233041d6970083..f5b63efc525de30f63ae580da051afd905c631bd 100644 (file)
     </emma>
   </target>
 
+<!-- =======================================================================
+   FORREST
+   ======================================================================-->
+  <target name="forrest" description="runs Forrest">
+    <property name="forrest.home" location="${env.FORREST_HOME}" />
+    <property name="forrest.ant.home" location="${forrest.home}/tools/ant" />
+    <java classname="org.apache.tools.ant.Main" fork="true" failonerror="true" maxmemory="128M">
+      <classpath>
+        <fileset dir="${forrest.ant.home}/lib">
+          <include name="*.jar" />
+        </fileset>
+        <pathelement path="${java.home}/../lib/tools.jar" />
+      </classpath>
+      <sysproperty key="ant.home" value="${forrest.ant.home}" />
+      <sysproperty key="forrest.home" value="${forrest.home}" />
+      <sysproperty key="basedir" value="${basedir}" />
+      <sysproperty key="java.endorsed.dirs" value="${forrest.home}/lib/endorsed" />
+      <arg line="-f ${forrest.home}/main/forrest.build.xml" />
+    </java>
+  </target> 
 
 <!--  ============================================================================
       Database targets