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 build time?
What I want to achieve here is a way of interrogating my app for its
maven version number at run time, without having to rely on an external
file or resource.
Thanks for any hints.
Why not use the manifest ?
I do not want to pay the price of reading that information from an external
resource, when it can be made available statically when the code is
compiled.
I guess I will have to write a plugin similar to the resources plugin
and apply it at the "generate-sources" phase on the source files that need
to be filtered.
-Olivier
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]