You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Robert r. Sanders" <ro...@ipov.net> on 2003/12/03 16:41:07 UTC
Filterset, insert Filename(s).
Hi,
I have been using ANT for basic build tasks for some time now.
Currently I am working on a build script for assembling some
documentation and other files, and I would like to use a filterset to
replace a token with the name of the file that is being copied. Is
there some easy way to accomplish this with an ANT task?
Thanks.
--
Robert r. Sanders
Chief Technologist
iPOV
www.ipov.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Filterset, insert Filename(s).
Posted by "Robert r. Sanders" <ro...@ipov.net>.
Thanks, I'll take a look into the <foreach>.
Erik Hatcher wrote:
> On Wednesday, December 3, 2003, at 10:41 AM, Robert r. Sanders wrote:
>
>> Hi,
>> I have been using ANT for basic build tasks for some time now.
>> Currently I am working on a build script for assembling some
>> documentation and other files, and I would like to use a filterset to
>> replace a token with the name of the file that is being copied. Is
>> there some easy way to accomplish this with an ANT task?
>
>
> You won't be able to do that with <copy>, but you could use the
> <foreach> from ant-contrib (@ SourceForge) to do something like this.
>
> I'm now a big fan of VPPFilter from the vpp project at SourceForge -
> it's way slick - I prefer this over filtersets, but for simple token
> replacements, vpp would be overkill.
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
--
Robert r. Sanders
Chief Technologist
iPOV
www.ipov.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Filterset, insert Filename(s).
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Wednesday, December 3, 2003, at 10:41 AM, Robert r. Sanders wrote:
> Hi,
> I have been using ANT for basic build tasks for some time now.
> Currently I am working on a build script for assembling some
> documentation and other files, and I would like to use a filterset to
> replace a token with the name of the file that is being copied. Is
> there some easy way to accomplish this with an ANT task?
You won't be able to do that with <copy>, but you could use the
<foreach> from ant-contrib (@ SourceForge) to do something like this.
I'm now a big fan of VPPFilter from the vpp project at SourceForge -
it's way slick - I prefer this over filtersets, but for simple token
replacements, vpp would be overkill.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org