jvanzyl 01/07/01 20:28:05
Modified: build build.properties build.xml
Log:
- adding a check for the generated OM so it isn't generated on
every build.
Revision Changes Path
1.4 +1 -0 jakarta-turbine/build/build.properties
Index: build.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine/build/build.properties,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.properties 2001/06/22 01:20:19 1.3
+++ build.properties 2001/07/02 03:28:03 1.4
@@ -21,3 +21,4 @@
optimize = off
deprecation = off
jdom.jar = jdom-b6.jar
+omStatusFile = ../bin/src/report.turbine.om.generation
1.16 +12 -3 jakarta-turbine/build/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine/build/build.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- build.xml 2001/07/02 02:23:06 1.15
+++ build.xml 2001/07/02 03:28:04 1.16
@@ -336,10 +336,19 @@
<!-- ================================================================== -->
<!-- Create the Turbine SQL for all the supported DBs. -->
<!-- ================================================================== -->
- <target name="turbine-om" depends="torque-compile"
+
+ <target name="check-om">
+ <available property="omGenerated" file="${omStatusFile}"/>
+ </target>
+
+ <target name="turbine-om"
+ depends="torque-compile,check-om"
+ unless="omGenerated"
description="--> generates the Turbine OM/Peer classes">
- <ant antfile="build-turbine-om.xml"
- dir="${basedir}"/>
+
+ <ant antfile="build-turbine-om.xml" dir="${basedir}"/>
+ <echo message="om has been generated" file="${omStatusFile}"/>
+
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]