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 20:51:11 GMT

Yes, merging or concatenating two files together is non-issue if you
explicitly tell the Ant script what files to merge. But remember the Ant
build script is expected to be used for building anything that follows the
same convention. What this means is that the Ant script can not hardcode the
setting file names in it as they are unknown at the time of writing the Ant

As I said earlier,  the thing that I'm not sure how to do with Ant is that
once the Ant 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:
> Since they don't contain the same settings couldn't you just append one
> file to the end of the other or something similar with <concat> maybe?

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