Thanks Tom but now I am having another problem :(
When using this task I am receiving a
" The 'project-sql' target is deprecated. Please use the 'sql' target instead. "
Velocity continues anyway but after some instructions it gives me a: " build-torque.xml:214: Exception thrown by 'properties.load'. For more information consult the velocity log, or invoke ant with the -debug flag. " (the error is the same if I use the undeprecate sql target)
The velocity report last logs
2004-06-18 16:00:27,459 - Velocimacro : initialization complete. 2004-06-18 16:00:27,459 - Velocity successfully started. 2004-06-18 16:00:27,912 - ResourceManager : found sql/base/Control.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 2004-06-18 16:00:27,927 - Method load threw exception for reference $properties in template sql/base/Control.vm at [2,19]
I have been looking for the sql/base/Control.vm and found it inside the Torque jar (this was different from the previous versions of Torque :( ) I think it is this line...
#set ( $dbprops = $properties.load("sql/base/$targetDatabase/db.props") )
I checked the OJB documentation and I verified that these statements were on my build.xml.
<property file="build.properties"/> <property file="mysql.profile"/> <!-- shouldn't this be <property file="profile/mysql.profile"/> I tried both alternatives and the error continued to persist -->
These were included... next
I tried adding the properties directly to the target
<ant dir="${plugin.ojb}" antfile="build-torque.xml" target="project-sql">
<property file="build.properties"/> <property file="profile/mysql.profile"/>
... </ant> </target>
didn't work either
Tried uncommenting the mysql.profile line on the build.properties and that didnt work either.
I am really making an effort here to solve this one by my own but I am becoming out of ideas.
Yesterday, I enhanced the ojb-blank build file with an xdoclet and torque target which you'll might find useful. You can view it here:
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/ojb-blank/build.xml?rev=1.2&view=markup http://cvs.apache.org/viewcvs.cgi/db-ojb/src/ojb-blank/build.properties?rev=1.2&view=markup
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
