You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jm...@apache.org on 2002/03/13 22:28:14 UTC
cvs commit: jakarta-turbine-torque/src/conf build-torque.xml
jmcnally 02/03/13 13:28:14
Modified: src/conf build-torque.xml
Log:
Move stuff added to build.xml to build-torque.xml in preparation for the
removal of build.xml
Revision Changes Path
1.19 +36 -0 jakarta-turbine-torque/src/conf/build-torque.xml
Index: build-torque.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/conf/build-torque.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- build-torque.xml 16 Feb 2002 16:59:54 -0000 1.18
+++ build-torque.xml 13 Mar 2002 21:28:14 -0000 1.19
@@ -67,6 +67,7 @@
controlTemplate="${SQLControlTemplate}"
outputDirectory="${torque.home}/${outputDirectory}/sql"
templatePath="${templatePath}"
+ basePathToDbProps="sql/base/"
sqldbmap="${torque.home}/${outputDirectory}/sql/sqldb.map"
outputFile="report.${project}.sql.generation"
targetDatabase="${database}">
@@ -74,6 +75,41 @@
<include name="*-schema.xml"/>
</fileset>
</torque-sql>
+ </target>
+
+ <!-- Same as the project-sql target except that it does
+ not generate the id-table -->
+ <target
+ name="project-sql-no-idtable"
+ description="==> generates the SQL for your project">
+
+ <echo message="+------------------------------------------+"/>
+ <echo message="| |"/>
+ <echo message="| Generating SQL for YOUR Turbine project! |"/>
+ <echo message="| Woo hoo! |"/>
+ <echo message="| |"/>
+ <echo message="+------------------------------------------+"/>
+
+ <taskdef
+ name="torque-sql"
+ classname="org.apache.torque.task.TorqueSQLTask">
+ <classpath refid="torque-classpath"/>
+ </taskdef>
+
+ <torque-sql
+ contextProperties="${build.properties}"
+ controlTemplate="${SQLControlTemplate}"
+ outputDirectory="${torque.home}/${outputDirectory}/sql"
+ templatePath="${templatePath}"
+ basePathToDbProps="sql/base/"
+ sqldbmap="${torque.home}/${outputDirectory}/sql/sqldb.map"
+ outputFile="report.${project}.sql.generation"
+ targetDatabase="${database}">
+ <fileset dir="${torque.home}/${schemaDirectory}">
+ <include name="*-schema.xml"/>
+ </fileset>
+ </torque-sql>
+
</target>
<!-- ================================================================ -->
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>