Re: Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Torsten Krah
Am Donnerstag, 24. September 2009 13:55:08 schrieb Olivier Lamy:
> Have a look at delimiters [1] parameters in the resources mojo

Hi, thx for this hint.
Did have a look there - delimiters does sounds nice (i need to turn off 
useDefaultDelimiters to get them respected), however its not working as 
expected (at least expected by me ;-)).



org.apache.maven.plugins
maven-resources-plugin
2.4

false

$
@
#
${*}

UTF-8



Using this i get a NullPointerException:
java.lang.NullPointerException
at 
org.codehaus.plexus.interpolation.multi.DelimiterSpecification.parse(DelimiterSpecification.java:54)
at 
org.codehaus.plexus.interpolation.multi.MultiDelimiterStringSearchInterpolator.setDelimiterSpecs(MultiDelimiterStringSearchInterpolator.java:394)


Removing the ${*} (although the docs does mention it as valid and i would like 
to use it too) it runs but not working like expected:

Some exampled i tried:

mvn clean resources:resource -Dtest.value=true

As example using this property file:

test.value=$test.value$
test.value=#test.value#
test.val...@test.value@
test.value=${test.value}

Using only:

$
@

i get this result:

test.value=true
test.value=#test.value#
test.value=true
test.value=${test.value}

Using this one:

$
@
#

the result is:

test.value=true
test.value=#test.value#
test.val...@test.value@
test.value=${test.value}


Whats wrong here? Did i miss something or is my plugin configuration 
incorrect? Might this be a bug?


Torsten

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Torsten Krah
Hi,

i want to migrate from antmod to maven.
I wonder if it is possible to configure additional tokens to replace my 
property placeholders ( not only @...@ and ${} ).

I want to replace $$ ones.

I've read http://maven.apache.org/shared/maven-filtering/usage.html but 
looking at latest trunk or beta3 of the maven shared component the docs 
mention MavenProjectValueSource which is gone already and does only exist in 
beta2 anymore (exists only up to revision 806645).

So what would be the best way to get my custom token filtered?
Is it configurable or have i have to write my own resource mojo (against trunk 
version or beta3, what must be done as the example is outdated, isn't it?).

thx for help

Torsten


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature