jvanzyl 01/08/30 10:36:45
Modified: src/conf build.xml
Log:
- adding targets to test using templates in the torque JAR.
Revision Changes Path
1.5 +58 -0 jakarta-turbine-torque/src/conf/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/conf/build.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- build.xml 2001/08/29 12:51:15 1.4
+++ build.xml 2001/08/30 17:36:45 1.5
@@ -260,6 +260,64 @@
</target>
+ <!-- ================================================================ -->
+ <!-- G E N E R A T E P R O J E C T S Q L -->
+ <!-- ================================================================ -->
+ <!-- Generate the SQL for your project, these are in addition -->
+ <!-- to the base Turbine tables! The tables you require for your -->
+ <!-- project should be specified in project-schema.xml. -->
+ <!-- ================================================================ -->
+
+ <target name="project-sql-classpath" depends="init-tasks">
+
+ <echo message="+------------------------------------------+"/>
+ <echo message="| |"/>
+ <echo message="| Generating SQL for YOUR Turbine project! |"/>
+ <echo message="| Woo hoo! |"/>
+ <echo message="| |"/>
+ <echo message="+------------------------------------------+"/>
+
+ <torque-sql
+ contextProperties="${build.properties}"
+ controlTemplate="${SQLControlTemplate}"
+ outputDirectory="${torque.home}/${outputDirectory}/sql"
+ useClasspath="true"
+ outputFile="report.${project}.sql.generation"
+ xmlFile="${torque.home}/${schemaDirectory}/${project}-schema.xml"
+ targetDatabase="${database}"
+ />
+
+ </target>
+
+ <!-- ================================================================ -->
+ <!-- G E N E R A T E P R O J E C T P E E R B A S E D O M -->
+ <!-- ================================================================ -->
+ <!-- Generate the Peer-based object model for your project. -->
+ <!-- These are in addition to the base Turbine OM! -->
+ <!-- ================================================================ -->
+
+ <target name="project-om-classpath" depends="init-tasks">
+
+ <echo message="+------------------------------------------+"/>
+ <echo message="| |"/>
+ <echo message="| Generating Peer-based Object Model for |"/>
+ <echo message="| YOUR Turbine project! Woo hoo! |"/>
+ <echo message="| |"/>
+ <echo message="+------------------------------------------+"/>
+
+ <torque-om
+ contextProperties="${build.properties}"
+ controlTemplate="${OMControlTemplate}"
+ outputDirectory="${torque.home}/${outputDirectory}/java"
+ useClasspath="true"
+ outputFile="report.${project}.om.generation"
+ targetPackage="${targetPackage}.om"
+ xmlFile="${torque.home}/${schemaDirectory}/${project}-schema.xml"
+ targetDatabase="${database}"
+ />
+
+ </target>
+
<!-- =================================================================== -->
<!-- C O M P I L E O M -->
<!-- =================================================================== -->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]