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
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/
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
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
>>
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
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
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
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
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
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
10 matches
Mail list logo