ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "didge" <di...@foundrylogic.com>
Subject RE: Extending Token Filtering
Date Tue, 23 Dec 2003 18:03:35 GMT
Jonathan,

Check out http://vpp.sf.net.  It's easy to install and let's you use
Velocity style templates which can support much more powerful configuration
and conditional expansion than what can be achieved with ant's token filter
functionality.  Many people use it for exactly this purpose.

didge

> -----Original Message-----
> From: Fullam, Jonathan [mailto:Jonathan.Fullam@RIAG.com]
> Sent: Tuesday, December 23, 2003 9:20 AM
> To: 'user@ant.apache.org'
> Subject: Extending Token Filtering
>
>
> Hello,
>
> I need to be able to do token replacement upon doing a move or
> copy task but
> I need more specific functionality than is provided with ANT.
>
> For instance:
>
> If the filters file contains the following:
>
> 	key=value1
>
> And the file to be filtered contains:
>
> 	someProperty=@key-defaultValueHere@
>
> Then the resultant file should contain the following:
>
> 	someProperty=value1
>
>
> Now if the filters file doesn't contain
>
> 	key=value1 (or any other value for key)
>
> Then the resultant file will contain
>
> 	someProperty=defaultValueHere
>
>
> Does anybody have any suggestions on how I might accomplish this in ANT.
> Any help is greatly appreciated.
>
> Thanks,
> Jonathan
>
>
>
>


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


Mime
View raw message