ubject: Re: Merge base settings with environment specific ones
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.
g 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 maybe?
>
--
View this message in context:
ain the same thing in multiple
> places and WILL screw up. If that's a game that you're willing to play,
> just copy a.dev.properties to a.properties and that's the end of it.
> Personally, I just keep a.properties and modify settings of that file
> based on what it shoul
ing in multiple
> places and WILL screw up. If that's a game that you're willing to play,
> just copy a.dev.properties to a.properties and that's the end of it.
> Personally, I just keep a.properties and modify settings of that file
> based on what it should be for differ
13, 2009 1:20:58 PM
Subject: Re: Merge base settings with environment specific ones
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
>
>
> it for that environment using your favorite installation tool/>
>
>
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23528278.html
Sent from the Ant - Users mailing list archive
Subject: Re: Merge base settings with environment specific ones
Thanks Eric. If I understood you correctly, it's that program you wrote that
did the trick for you, not the NAnt script. Is it correct? Thanks.
Eric Fetzer wrote:
>
> OK, so here's what I did with NAnt and a C# .Net
t;
>
>
>
> Seems something similar could be done for non-xml files as well using
> global substitution using regex or such...
>
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23527870.html
Sent from the Ant -
. This seemed like a bug to me, but I'm
> sure it's by design...
>
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23526214.html
Sent from the Ant - Users mailing list archive at Nabble.com.
I'm
> sure it's by design...
>
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23526309.html
Sent from the Ant - Users mailing list archive at Nabble.com.
I'm
> sure it's by design...
>
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23526214.html
Sent from the Ant - Users mailing list archive at Nabble.com.
ld have to "unset" those
properties first. This seemed like a bug to me, but I'm sure it's by design...
From: nagish
To: user@ant.apache.org
Sent: Wednesday, May 13, 2009 10:11:23 AM
Subject: Merge base settings with environment specific ones
I
itten.
I would like to get some help on how to write an Ant script like this.
Thanks very much.
--
View this message in context:
http://www.nabble.com/Merge-base-settings-with-environment-specific-ones-tp23524997p23524997.html
Sent from the Ant - Users mailing list archive at Nabble.com.
13 matches
Mail list logo