Hi,
I'm using Maven 2.2 on Mac 10.5.6. I'm building a web application for JBoss
5.1 AS. I was wondering how I would include a different properties file
based on the value someone specified in the "mvn" build command. For
example, if someone entered
mvn -Denv=dev jboss:redeploy
I would want to include a different file in my WAR than if they specified
mvn -Denv=test jboss:redeploy
. Here is how I currently have my pom.xml set up, which builds the same
regardless of environment ...
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</build>
Any ideas how I can adjust the build process based on a command line
parameter? Thanks, - Dave
--
View this message in context:
http://old.nabble.com/Building-using-different-files-based-on-a-build-flag--tp26634795p26634795.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]