Hi,

Anyone using b3 has probably experienced the useClasspath error saying
that templatePath needs to be set. This is fixed in b4, but until it is
released, I've attached a patch to build-torque.xml that fixes the
behavior.

- Stephen
--- build-torque-old.xml        2002-07-31 10:05:02.000000000 -0500
+++ build-torque.xml    2002-07-31 10:06:02.000000000 -0500
@@ -75,8 +75,22 @@
   <!-- project should be specified in project-schema.xml.               -->
   <!-- ================================================================ -->
 
+  <!-- ================================================================ -->
+  <!-- C H E C K  U S E C L A S S P A T H                               -->
+  <!-- ================================================================ -->
+  <!-- Temporary hack around the propertiesUtil bug. Should             -->
+  <!-- be fixed soon.                                                   -->
+  <!-- ================================================================ -->
+
+  <target name="check-use-classpath">
+    <condition property="torque.internal.useClasspath">
+      <equals arg1="${torque.useClasspath}" arg2="true"/>
+    </condition>
+  </target>
+
   <target
     name="sql"
+    depends="check-use-classpath"
     description="==> generates the SQL for your project">
 
     <echo message="+------------------------------------------+"/>
@@ -92,7 +106,7 @@
 
   <target
     name="sql-classpath"
-    if="useClasspath">
+    if="torque.internal.useClasspath">
 
     <echo message="using classpath"/>
 
@@ -114,7 +128,7 @@
 
   <target
     name="sql-template"
-    unless="useClasspath">
+    unless="torque.internal.useClasspath">
 
     <echo message="using template path ${templatePath}"/>
 
@@ -382,6 +396,7 @@
 
   <target
     name="om"
+    depends="check-use-classpath"
     description="==> generates the Peer-based object model for your project">
 
     <echo message="+------------------------------------------+"/>
@@ -397,7 +412,7 @@
 
   <target
     name="om-classpath"
-    if="useClasspath">
+    if="torque.internal.useClasspath">
 
     <echo message="using classpath"/>
 
@@ -418,7 +433,7 @@
 
   <target
     name="om-template"
-    unless="useClasspath">
+    unless="torque.internal.useClasspath">
 
     <echo message="using template path ${templatePath}"/>
 

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

Reply via email to