ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: FilSet and PropertyTask
Date Wed, 30 Jan 2002 00:09:00 GMT
No, it currently cannot take a fileset.


----- Original Message -----
From: "Jeff" <etrick.jeff@ensco.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, January 29, 2002 10:48 AM
Subject: FilSet and PropertyTask


>
>
> 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>
>
>


--
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