# ant-user mailing list archives

##### Site index · List index
Message view
Top
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Replacing Text In a File with a Property Value
Date Fri, 06 Aug 2004 08:11:25 GMT
Have a look at <copy> with a nested <filterset>.

Also, one of the most special Ant tasks out there is VPPCopy (or its

http://vpp.sourceforge.net

VPP is a Velocity Pre-Processor - using it for generation from
templated text files is one of its strong suits.

Erik

On Aug 5, 2004, at 11:50 AM, RPearse@360commerce.com wrote:

> The Install Anywhere task does not allow you to pass in variables to be
> used within the installer creation. So, I have a bunch of iap_xml files
> that have hardcoded install build locations.
>
> I need these to be dynamic because my build system builds official
> builds
> in different locations every time. Also, I don't want my builds tied to
> the file system structure.
>
> So, I'm attempting to replace c:\foo\bar with my current installer
> build
> directory stored in ${assemble.dir}. However, the replace target will > explicitly put in${assemble.dir} instead of c:\real\installer\dir. The
> same thing happens with copy and filterchains.
>
> How can I tell Ant to use the value stored in \${assemble.dir} and not
> the
> actual text?
>
> Thanks,
>
> Robert
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org