ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Filtering on ${} instead of @@
Date Thu, 11 Sep 2008 14:48:18 GMT
Hi all, I searched the archives but couldn't find a solution. For
example, I have a file named filter_me.txt with its contents:

${foo}

In filter_me.properties I have:

foo=bar

I'd like to use a simple filter like:

 <target name="filter_me">
        <property file="filter_me.properties"/>
        <filter token="foo" value="${foo}" />
        <copy todir="target/somedir" filtering="true" overwrite="true" >
                <fileset dir="src">
                <include name="*.txt*"/>
        </copy>
 </target>

Is there any way to replace "${foo}" with "bar" via ant as shown in
this example ? I can't use @foo@ for non-tecnical reasons.

Thanks,
Robert

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


Mime
View raw message