I want to call project-jdbc in the build-torque.xml from my own build
script. It seems that output schema.xml file is in the wrong place. It
turns out that setOutput method in the TorqueJDBCTransformTask needs to
call project.resolveFile like in other Torque tasks. Attached is a diff
file.
For example, in my build script I have: <ant antfile="build-torque.xml"
dir="${torque.dist}/torque" target="project-jdbc"/>. In the
build.properties file in the ${torque.dist}/torque directory, I specify
outputDirectory=../ so I expect the final schema.xml file in the
${torque.dist} but it's not. It's in the parent directory of my current
working directory. But project-sql task puts the final sql file in the
right place. The patch in the diff file should fix this.
Howard
Index: TorqueJDBCTransformTask.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/task/TorqueJDBCTransformTask.java,v
retrieving revision 1.9
diff -r1.9 TorqueJDBCTransformTask.java
156c156
< xmlSchema = v;
---
> xmlSchema = project.resolveFile(v).toString();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>