I started cutting and pasting Torque's Ant snippets into my build file and
tweaking the attributes to my specific project and then thought that I
should be utilizing Torque's own build file instead, and <ant> directly to
it.
The dilemma is, for example, with this:
<torque-om
contextProperties="${build.properties}"
controlTemplate="${OMControlTemplate}"
outputDirectory="${torque.home}/${outputDirectory}/java"
templatePath="${templatePath}"
outputFile="report.${project}.om.generation"
targetPackage="${targetPackage}.om"
targetDatabase="${database}">
<fileset dir="${torque.home}/${schemaDirectory}">
<include name="*-schema.xml"/>
<exclude name="id-table-schema.xml"/>
</fileset>
</torque-om>
I want to change the outputDirectory to one of my choosing, and a few of the
other attributes. If each of those attributes was represented by a single
Ant property I could do this:
<ant dir="${torque.dir}" target="project-om">
<property name="outputDirectory" location="build/gensrc"/> <!-- I
don't want to call it java -->
</ant>
I recommend this refactoring:
<property name="outputDirectory"
location="${torque.home}/${outputDirectory}/java"/>
just prior to running that task (or globally), and then substitute
outputDirectory="${outputDirectory}"
Again, I'd submit patches, but I want to be sure this is cool first. Also,
my time is very constrained right now, so its hard to patch every project
I'm dealing with right now! :) I just figured I'd send this out as food
for thought.
Erik
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>