On 17 Jun 2009, at 08:29, Paolo Castagna wrote:

Anders Hammar wrote:
> Found this through Google:
> 
http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm
>
> Not sure if it's the best way to do it though. Never tried filtering
> java source code.

Thanks Anders for your reply.

Yep, I've been searching with Google as well and I found the same page, among others. However, I do not need to filter all the sources, just one
specific file, which contains version and build timestamp information.

As an alternative, one could use Ant via maven-antrun-plugin:

I did this a while back and it's been quite successful.

http://happygiraffe.net/blog/2008/10/01/embedding-the-maven-version-number/

-Dom

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

Reply via email to