Title: [PATCH] value in build.xml incorrect in TDK

env:
velocity= 1.3-dev
turbine = 2.2
tdk = built from CVS HEAD
ant = 1.4.1

I think there is a pathing issue with the build.xml generated for projects.

in the "idtable-init-sql" target the torque-sql task has

contextProperties="sql/id-table/turbine.props"

ant(texen?) cannot resolve "sql/id-table/turbine.props" and causes $InitialID to be null within the context of id-table templates which in turn generates bad SQL.

by changing it to

contextProperties="${templatePath}/sql/id-table/turbine.props"

everything works fine.

I checked on older TDK versions and they seemed to have the same value for contextProperties but worked correctly.  If no one else can duplicate this please let me know so I can figure what I screwed up on my development machine ;-)

Scott




 

Index: src/tdk/apps/2/build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-tdk/src/tdk/apps/2/build.xml,v
retrieving revision 1.31
diff -u -r1.31 build.xml
--- src/tdk/apps/2/build.xml    23 Oct 2001 15:35:07 -0000      1.31
+++ src/tdk/apps/2/build.xml    6 Feb 2002 22:42:44 -0000
@@ -286,7 +286,7 @@
     </echo>
 
     <torque-sql
-      contextProperties="sql/id-table/turbine.props"
+      contextProperties="${templatePath}/sql/id-table/turbine.props"
       controlTemplate="${idTableControlTemplate}"
       outputDirectory="${src.dir}/sql"
       templatePath="${templatePath}"

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to