Re: Project versioning

2008-11-21 Thread Stephen Connolly
iltered > >>> src/test/resources/verbatim > >>> > >>> If only I could come up with a good version for webapps > >>> > >>> 2008/11/20 Brian E. Fox <[EMAIL PROTECTED]> > >>> > >>>> No you can't filter onl

Re: Project versioning

2008-11-21 Thread Raffaele
atim >>> >>> If only I could come up with a good version for webapps >>> >>> 2008/11/20 Brian E. Fox <[EMAIL PROTECTED]> >>> >>>> No you can't filter only one file that I recall, but you can make >>>> something like src/

Re: Project versioning

2008-11-20 Thread Stephen Connolly
November 20, 2008 10:00 AM To: users@maven.apache.org Subject: Re: Project versioning Ok guys thank you all, There is only one thing that I'm continuing to not understand In my src/main/resources I have many many files. I would like to filter only one of those files but putting this

Re: Project versioning

2008-11-20 Thread Raffaele
gt;> something like src/main/filtered-resources and enable filtering on that >> folder only. >> >> -Original Message- >> From: Raffaele [mailto:[EMAIL PROTECTED] >> Sent: Thursday, November 20, 2008 10:00 AM >> To: users@maven.apache.org >>

Re: Project versioning

2008-11-20 Thread Stephen Connolly
ilter only one file that I recall, but you can make > something like src/main/filtered-resources and enable filtering on that > folder only. > > -Original Message- > From: Raffaele [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2008 10:00 AM > To: users@mave

RE: Project versioning

2008-11-20 Thread Brian E. Fox
bject: Re: Project versioning Ok guys thank you all, There is only one thing that I'm continuing to not understand In my src/main/resources I have many many files. I would like to filter only one of those files but putting this in my pom src/main

Re: Project versioning

2008-11-20 Thread Raffaele
Ok guys thank you all, There is only one thing that I'm continuing to not understand In my src/main/resources I have many many files. I would like to filter only one of those files but putting this in my pom src/main/resources true

RE: Project versioning

2008-11-20 Thread Raffaele
Thanks Brian, but could you point me to some snippet/example/doc about filtering ? However, are you saying something like this --> - I write a properties file inserting a property, for example "version = ${version}" - "mvn package" valorizes that properties file with current version number ? Th

Re: Project versioning

2008-11-20 Thread Stephen Connolly
Alternatively, you could pull the version info from the pom.xml that gets stashed in a sub-folder of META-INF by default but this might require a bit of work since the version could have been inherited from the parent version... Safest way is as Brian suggests... and it has the added advantage

RE: Project versioning

2008-11-20 Thread Brian E. Fox
Normally you just have a properties file that is filtered during the build and at runtime your code reads the value. -Original Message- From: Raffaele [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 8:53 AM To: users@maven.apache.org Subject: Project versioning Hi all, I wo