Hi all,
The "id-table-init-sql" task in build-torque.xml executes the following task:
<torque-sql
contextProperties="${torque.contextProperties}"
controlTemplate="${torque.template.idTable}"
outputDirectory="${torque.sql.dir}"
outputFile="${torque.database}-id-table-init.sql"
sqldbmap="${torque.sql.dir}/sqldb.map"
suffix="-idtable-init"
targetDatabase="${torque.database}"
templatePath="${torque.templatePath}"
useClasspath="${torque.useClasspath}">
<fileset dir="${torque.schema.dir}"
includes="${torque.schema.init-sql.includes}"
excludes="${torque.schema.init-sql.excludes}"
/>
The purpose of this task is to create entries in the ID_TABLE for any tables
that have idMethod="idbroker" in the Torque *-schema.xml file. I use MySQL
with TDK-2.2b3.
Because outputFile="${torque.database}-id-table-init.sql", I end up with an
empty file called "mysql-id-table-init.sql" in my Torque output directory.
However, most of the other tasks in build-torque.xml generate a report file
rather than an empty sql file, which IMHO is the correct behaviour.
Attached is a patch that causes this task to create a file called
"report.idtable-init.sql.generation" rather than "mysql-id-table-init.sql".
This allows the TDK "init" target to run without errors.
Regards,
-- Rodney
Index: ./src/conf/build-torque.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/conf/build-torque.xml,v
retrieving revision 1.54
diff -u -r1.54 build-torque.xml
--- ./src/conf/build-torque.xml 5 Oct 2002 15:32:26 -0000 1.54
+++ ./src/conf/build-torque.xml 23 Oct 2002 06:25:01 -0000
@@ -401,7 +401,7 @@
contextProperties="${torque.contextProperties}"
controlTemplate="${torque.template.idTable}"
outputDirectory="${torque.sql.dir}"
- outputFile="${torque.database}-id-table-init.sql"
+ outputFile="report.idtable-init.sql.generation"
sqldbmap="${torque.sql.dir}/sqldb.map"
suffix="-idtable-init"
targetDatabase="${torque.database}"
--
To unsubscribe, e-mail: <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>