You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Matt Hoover <Ma...@haht.com> on 2002/05/09 00:12:50 UTC

ant script question

I am defiantly a newbie, and if this is the wrong list for this 
question, please direct me to the correct place.

I have the following code snippet as part of a task in my ant build.xml
file:

  <taskdef name="torque-om"
   classname="org.apache.torque.task.TorqueObjectModelTask">
   <classpath>
    <path refid="build.torque.path"/>
   </classpath>
  </taskdef>

  <torque-om

contextProperties="${haht.srcdir}/server/platformapi/processflow/schema/buil
d.properties"
   controlTemplate="${OMControlTemplate}"
   outputDirectory="${haht.srcdir}/server/platformapi/processflow/src"
   templatePath="${templateDir}"
   outputFile="../sql/report.om.generation"
   targetPackage="com.haht.platform.processflow.persistence">
   <fileset dir="${haht.srcdir}/server/platformapi/processflow/schema">
    <include name="processflow-schema.xml"/>
    <exclude name="id-table-schema.xml"/>
   </fileset>
  </torque-om>

The problem that I am having is that every time I run ant,
the java files are recreated.  Is there any way to have the 
task look at the time/date stamps for all of the files, and 
only recreate the java files if an input file is newer?

Thanks for your help in advance,
--matt hoover
software developer
HAHT Commerce, Inc
mailto:matt.hoover@haht.com