Hi,
MavenProjectValueSource interpolate values only with pom (expression
starting with pom or project) (in beta-2).
It doesn't use pom.properties.
You have to add an other filterWrapper :
mavenResourcesExecution.addFilerWrapperWithEscaping( new
PropertiesEscapingBackSlashValueSource( true, project
.getProperties() ), "@{", "}", null );
mavenResourcesExecution.addFilerWrapperWithEscaping( new
MavenProjectValueSource( project, true ), "@{", "}",
null );
Note it's more easy in beta-2 too add filtering "rules".
You will find a patch for your mojo here [1] (the it is ok now :-) ).
HTH,
--
Olivier
[1] http://people.apache.org/~olamy/izpack-plugin-interpolation.patch
2008/10/4 Dan Tran <[EMAIL PROTECTED]>:
> Hello all,
>
> I am current using maven-filtering-beta-1 & 2 to interpolate
> @{variable} so here is the codesnip
>
> // support @{} izpack ant format
> mavenResourcesExecution.addFilerWrapper( new MavenProjectValueSource(
> project, true ), "\\@", "(.+?)\\}", "@{", "}" );
>
> The real source is at
> http://svn.codehaus.org/izpack/izpack-maven/trunk/izpack-maven-plugin/src/main/java/org/izpack/mojo/IzPackMojo.java
> at interpolateDescriptorFile()
>
> The test case is at
>
> http://svn.codehaus.org/izpack/izpack-maven/trunk/izpack-maven-plugin/src/it/izpack-172/
>
> The file i am trying to interpolate is under src/izpack/install.xml
>
>
> can someone give it a quick scan to see if I manage to use the API correctly.?
>
> Full appreciate the helps
>
> Thanks
>
> -D
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]