ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: pass parameters from one file to another
Date Tue, 29 Sep 2009 15:41:34 GMT
Then combine both property file "A" and property file "B" into property file
"C" (using the same <propertyfile> task Francis Galiegue showed you. Then,
use property file "C".

Remember once a property is set, it cannot be (easily) changed. Maybe you
should load in file "B" before file "A"? That would select "build" first
from property file "B" before property file "A" is loaded.

Or maybe you can set build on the command line? That will override any
property value from your properties files.

On Fri, Sep 25, 2009 at 8:05 AM, paul collins <
paul.pcollins.collins@gmail.com> wrote:

> I was supplied a script by Francis Galiegue see below which passes a
> parameter value from one property file to another one, which works for me
> see below, but I have comments in file B see below for example that I want
> to keep, but these are removed when I run this script. From reading the ANT
> manual if I use the entry kek term I lose my comments in the file B, is
> there another way of doing this?
>
> ###############################################################################
> #   Edit this file before doing a release.
> #   When finished changes, simply save and close to resume build process
>
>
> <property file="A"/>
>
> <target name="something">
>   <propertyfile file="B">
>       <entry key="build" value="${build}" operation="="/>
>
>   </propertyfile>
> </target>
>
> Note that operation="=" is the default.
>



-- 
David Weintraub
qazwart@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message