ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nagish <>
Subject Re: Merge base settings with environment specific ones
Date Wed, 13 May 2009 19:20:58 GMT

Thanks Eric. What you did certainly is one of the options. I was wondering if
the same thing could also be done with Ant built-in capabilities. One thing
I'm not sure is that once the script gets a set of base setting files, i.e.
those that don't have environment tag embedded in their names, how it can
iterate through the set to pair each base file with the corresponding
environment specific one, i.e. "" with "",
"" with "", ... etc, so that each pair of files
can be merged together to form a new setting file to be packaged into the
application that is being built...

Eric Fetzer wrote:
> Yeah, the NAnt script would use the <exec> task to call the program with
> the argument specifying what environment it was building from.  So in Ant
> terms:
> <for list="dev,qa,uat,prod" param="environment">
>     <exec dir="." executable="configure.exe">
>           <arg line="@{environment}"/>
>     </exec>
>     <now configs are set correctly so you stage it for deploy and package
> it for that environment using your favorite installation tool/>
> </for>

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message