ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <>
Subject FilSet and PropertyTask
Date Tue, 29 Jan 2002 15:48:42 GMT

I have been tasked to add a version to each of the various 
directory levels in our project. PropertyFile Task does 
exactly what I need, but I am unable to pass it a FileSet.

   Is there a way to pass a FileSet to the PropertyFile Task?


   given a structure
   with a file called '' at each level 
one could use the PropertFile Task to update a build number .

example useage:

<target name="tagIt" description="auto increment the version 
build number and tag the date built" depends="cvsGrabModule">

  <propertyfile  >
       <entry key ="BuildNumber" type="int" operation="+" 
       <entry key ="BuildDate" type="date" value="now" 
pattern="YYYY-MM-dd HH:mm:ss"/>
      <fileset dir="./${MODNAME}/${src.dir}" >
         <include name="**/"/>





To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message