Hi,

I have a question about maven. In our project, I have one file named 
"config.properties" which be changed in different environment, and also we have 
some files named "config-dev.properties", "config-test.properties" and 
"config-production.properties", in different environment we will replace the 
"config.properties" with "config-dev.properties" and so on.  I know maven has a 
feature called "profile", it can filter some text in my files but it's not my 
want. Because I don't want to put those environment variables to pom.xml (maybe 
some day i will use Ant to build my application), and second I want to perform 
the replacement after every compile, so it can be applied to my test phase or 
package phase(Yeah, if i use maven's profile this will be easy).   So any one 
can help me? I used Ant before, i can control the build process and replace 
files at any time within ant, but how can i replace files and control process 
in maven without its profile and filter text.

Thanks!

Donny

2010/05/11  
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to