I've had various problems when the variable has a . or - in it.  I use a 
workaround like this:

    <property name="buildnumber" value="${build.number}" />
    <j:if test="${empty(buildnumber)}" >
      <fail>Usage:  maven -Dbuild.number=xxxxx releaseNotes</fail>
    </j:if>

If I put <j:if test="${empty(build.number)}" >, it doesn't work.  This is a 
different code example then yours, but you can apply the idea.

-jake


On Wednesday 14 January 2004 03:25 pm, Ebersole, Steven wrote:
> Same error message.  Tried using a bunch of different plugin contexts
> (test, java, idea)...
>
>
> -----Original Message-----
> From: Gilles Dodinet [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 14, 2004 1:43 PM
> To: Maven Users List
> Subject: Re: maven jelly tag and build.properties properties
>
> 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.d
>est")}' ?
>
> -- gd
>
>
> ---------------------------------------------------------------------
> 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to