Re: Properties within source code

2012-11-18 Thread Anders Lindgren
Hi Nick, I think you missed the filtering part. I are supposed to enable the filtering by true See http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html As you can see there, it also possible to put you variables in a separate properties file. Hopes it helps /Anders On Fr

RE: Properties within source code

2012-11-16 Thread Nick Cuneo (ncuneo)
aven Users List Subject: Re: Properties within source code I know that this may not address your question directly, but I suggest that you change your approach. Rather than build two different artifacts for debugging or not debugging, I suggest that you make the a runtime configuration. Look in

Re: Properties within source code

2012-11-16 Thread Stephen Connolly
There is support for generating source code from some form of template. Usually requires a plugin for the "template" engine, or antrun and build-helper:add-source You would keep the "template" outside if src/main/java and then the generated source goes to something like target/generated-source/...

Re: Properties within source code

2012-11-16 Thread John Kramer
I know that this may not address your question directly, but I suggest that you change your approach. Rather than build two different artifacts for debugging or not debugging, I suggest that you make the a runtime configuration. Look into various logging frameworks (log4j, log back) that will