You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Everton, Dan" <Da...@Australia.Boeing.com> on 2001/12/06 23:24:41 UTC
Fixes for the TorqueDataSQLTask task in Torque
We've had some problems using the datasql task in Torque-3.0-dev mostly
path related.
The following patch fixes those problems.
Index: src/conf/build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-torque/src/conf/build.xml,v
retrieving revision 1.19
diff -u -r1.19 build.xml
--- src/conf/build.xml 2001/11/26 18:59:18 1.19
+++ src/conf/build.xml 2001/12/06 22:04:59
@@ -209,6 +209,7 @@
dataXmlFile="${torque.home}/${schemaDirectory}/${project}-data.xml"
dataDTD="${torque.home}/${schemaDirectory}/${project}-data.dtd"
targetDatabase="${database}"
+ sqldbmap="${basedir}/${outputDirectory}/sql/sqldb.map"
/>
</target>
Index: src/java/org/apache/torque/task/TorqueDataSQLTask.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/task/Torqu
eDataSQLTask.java,v
retrieving revision 1.5
diff -u -r1.5 TorqueDataSQLTask.java
--- src/java/org/apache/torque/task/TorqueDataSQLTask.java 2001/11/08
16:47:45 1.5
+++ src/java/org/apache/torque/task/TorqueDataSQLTask.java 2001/12/06
22:04:59
@@ -89,11 +89,11 @@
/**
* Sets the DataXmlFile attribute of the TorqueDataSQLTask object
*
- * @param v The new DataXmlFile value
+ * @param dataXmlFile The new DataXmlFile value
*/
- public void setDataXmlFile(String v)
+ public void setDataXmlFile(String dataXmlFile)
{
- dataXmlFile = v;
+ this.dataXmlFile = project.resolveFile(dataXmlFile).toString();
}
/**
@@ -140,11 +140,11 @@
/**
* Sets the DataDTD attribute of the TorqueDataSQLTask object
*
- * @param v The new DataDTD value
+ * @param dataDTD The new DataDTD value
*/
- public void setDataDTD(String v)
+ public void setDataDTD(String dataDTD)
{
- dataDTD = v;
+ this.dataDTD = project.resolveFile(dataDTD).toString();
}
/**
Dan
--
Dan Everton
EngNET Coordinator
Central Engineering, Boeing Australia Limited
Phone: +61 07 3306 3288 -- Email: dan.everton@boeing.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Fixes for the TorqueDataSQLTask task in Torque
Posted by Martin Poeschl <mp...@marmot.at>.
Everton, Dan wrote:
> We've had some problems using the datasql task in Torque-3.0-dev mostly
> path related.
>
> The following patch fixes those problems.
thanx!
i commited your patch and added the DataSQL task to the testbed :-)
martin
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>