I agree with the other guys in that it is way better to externalise
your configuration.
In the meantime, it is probably easier to put each foo.xml in
different directories, say src/main/resources-prod and src/main/
resources-dev. Then use profiles to select different build
configurations. Refer to <http://maven.apache.org/plugins/maven-resources-plugin/
> for information on how to do resources configuration.
Alternatively, you could use the same foo.xml and filter copy it,
specifying the property values to be substituted in profiles instead.
Cheers
On 10/10/2008, at 1:27 AM, Johan Hammar wrote:
Hi!
In my project I have two files, foo-dev.xml and foo-production.xml, in
src/main/resources. When I package the project as a war-file I want to
rename or copy one of those files to foo.xml. Which file to rename or
copy depends on which profile I run maven with. Is this possible and
where can I learn more about this?
Regards,
Johan Hammar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]