How to get Java source filtered the same way as resources?

2007-10-20 Thread Olivier Dehon
Hi, Is there a (simple) way to get the java source code in my project filtered the same way resources are? That is, in my java file, I could have: {code} private final static String MAVEN_VERSION = ${version}; {code} and get ${version} replaced at build time? What I want to achieve here is a

Re: How to get Java source filtered the same way as resources?

2007-10-20 Thread Jörg Schaible
Olivier Dehon wrote: Hi, Is there a (simple) way to get the java source code in my project filtered the same way resources are? That is, in my java file, I could have: {code} private final static String MAVEN_VERSION = ${version}; {code} and get ${version} replaced at build time?

Re: How to get Java source filtered the same way as resources?

2007-10-20 Thread Mick Knutson
You could use Spring and inject that value from applicationContext.xml or and external properties file. On 10/20/07, Jörg Schaible [EMAIL PROTECTED] wrote: Olivier Dehon wrote: Hi, Is there a (simple) way to get the java source code in my project filtered the same way resources are?

Re: How to get Java source filtered the same way as resources?

2007-10-20 Thread Mick Knutson
Then you could filter the applicationContext, or the application.propertiesfile. This is what I do in my project (filter application.properties) On 10/20/07, Mick Knutson [EMAIL PROTECTED] wrote: You could use Spring and inject that value from applicationContext.xml or and external properties

Re: How to get Java source filtered the same way as resources?

2007-10-20 Thread Olivier Dehon
Jörg Schaible wrote: Olivier Dehon wrote: Hi, Is there a (simple) way to get the java source code in my project filtered the same way resources are? That is, in my java file, I could have: {code} private final static String MAVEN_VERSION = ${version}; {code} and get ${version} replaced at

Re: How to get Java source filtered the same way as resources?

2007-10-20 Thread Mick Knutson
the benefits Spring gives you above and beyond filtering is WAY worth the effort IMHO. On 10/20/07, Olivier Dehon [EMAIL PROTECTED] wrote: Jörg Schaible wrote: Olivier Dehon wrote: Hi, Is there a (simple) way to get the java source code in my project filtered the same way resources