You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ri...@capgroup.com on 2004/05/11 00:51:56 UTC
Looking for example: using id of type as a reference.
Is there an example of the task that uses a type like filterset where the
filterset is referenced by its id as in (I need to reuse filtersets from
different places in the build):
<!-- Define the filterset reference by id -->
<filterset id="filterset.reference">
<! -- Blah, blah, blah: add nested filter elements -->
</filterset>
<target name="target-one", description="do first thing with filterset
using id">
<!-- Yakity, yakity, yak : do something with the filterset by
referencing it via its id -->
</target>
<target name="target-two", description="do second thing with filterset
using id">
<!-- Yadda, yadda, yadda : do something ELSE with the filterset by
referencing it via its id yet again-->
</target>
This is quest is for something similiar to extendsible and re-usable
classpaths....
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Looking for example: using id of type as a reference.
Posted by "Mani G. Iyer" <iy...@rcn.com>.
One example as given in the Manual under filtersets is:
<filterset id="myFilterSet" begintoken="%" endtoken="*">
<filter token="DATE" value="${TODAY}"/>
</filterset>
<copy file="${build.dir}/version.txt" toFile="${dist.dir}/version.txt">
<filterset refid="myFilterSet"/>
</copy>
HTH
mani
-----Original Message-----
From: Richard_Landon@capgroup.com [mailto:Richard_Landon@capgroup.com]
Sent: Monday, May 10, 2004 6:52 PM
To: user@ant.apache.org
Subject: Looking for example: using id of type as a reference.
Is there an example of the task that uses a type like filterset where
the
filterset is referenced by its id as in (I need to reuse filtersets from
different places in the build):
<!-- Define the filterset reference by id -->
<filterset id="filterset.reference">
<! -- Blah, blah, blah: add nested filter elements -->
</filterset>
<target name="target-one", description="do first thing with filterset
using id">
<!-- Yakity, yakity, yak : do something with the filterset by
referencing it via its id -->
</target>
<target name="target-two", description="do second thing with filterset
using id">
<!-- Yadda, yadda, yadda : do something ELSE with the filterset
by
referencing it via its id yet again-->
</target>
This is quest is for something similiar to extendsible and re-usable
classpaths....
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org