You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ebersole, Steven" <st...@vignette.com> on 2004/01/14 18:06:08 UTC

maven jelly tag and build.properties properties

How is it possible to reference a property defined in one of the maven properties files (specifically the ~/build.properties) in one of the maven jelly tags?  The tag I am trying to use is <maven:makeRelativePath/>.  What I have tried so far is:

1) <maven:makeRelativePath var="testDest" basedir="${basedir}" path="${maven.test.dest}" separator="/" />
2) <maven:makeRelativePath var="testDest" basedir="${basedir}" path="${context.getVariable('maven.test.dest')}" separator="/" />

Plus some other off the wall stuff.  But I could not get anything I tried to work.  I keep getting "<maven:makeRelativePath> You must define an attribute called 'path' for this tag" error message.

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


Re: maven jelly tag and build.properties properties

Posted by Gilles Dodinet <rh...@free.fr>.
Ebersole, Steven wrote:

>How is it possible to reference a property defined in one of the maven properties files (specifically the ~/build.properties) in one of the maven jelly tags?  The tag I am trying to use is <maven:makeRelativePath/>.  What I have tried so far is:
>
>1) <maven:makeRelativePath var="testDest" basedir="${basedir}" path="${maven.test.dest}" separator="/" />
>2) <maven:makeRelativePath var="testDest" basedir="${basedir}" path="${context.getVariable('maven.test.dest')}" separator="/" />
>  
>

what if you try  
path='${pom.getPluginContext("maven-test-plugin").getVariable("maven.test.dest")}' 
?

-- gd


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