ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kavanagh <...@dotech.com>
Subject Re: copy task addition
Date Wed, 28 May 2003 05:52:35 GMT
OK, so I made a FilterProperties class that does the token filtering 
like I wanted. I've attached the code for that class and the diff for 
the FilterChain.java file.
In the <copy> task, you can now use

<filterchain>
    <filterproperties/>
</filterchain>

and filter for tokens of the form @token@ based on the project properties.
As a refresher, I needed this because I wanted to read properties from 
${user.dir} and ${base.dir} and use the same @token@ notation.
What's the chance this could be added to the next release. It is pretty 
harmless.

David

Stefan Bodewig wrote:

>On Tue, 27 May 2003, David Kavanagh <dak@dotech.com> wrote:
>
>  
>
>>My stuff must function differently,
>>    
>>
>
><expandproperties/> will replace ${foo} style constructs while you
>need to replace @foo@ IIUC.
>
>  
>
>>but I can see that implementing it as a filterchain option would be
>>better than the attribute I chose to use.
>>    
>>
>
>Yes, I think so.
>
>Stefan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>  
>


Mime
View raw message