ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <etrick.j...@ensco.com>
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?

Scenario:

   given a structure com.company.commontools.swingtools.app1
   with a file called 'version.properties' at each level 
(example: com.company.commontools, 
com.company.commontools.swingtools
com.company.commontools.swingtools.app1
com.company.commontools.swingtools.app2)
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="+" 
value="1"/>
       <entry key ="BuildDate" type="date" value="now" 
pattern="YYYY-MM-dd HH:mm:ss"/>
      <fileset dir="./${MODNAME}/${src.dir}" >
         <include name="**/Version.properties"/>


     </fileset>
</propertyfile>

   </target>





Thanks,

Jeff


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message