maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: How to get Java source filtered the same way as resources?
Date Sat, 20 Oct 2007 14:05:32 GMT
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 ?

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message