I've come across at least 2 plugins with the constructs I've documented
(jetspeed and torque). The question is, did they ever work as written? Is
it possible that they were simply never tested?
Making the change you suggest works, as well as renaming
maven.jetspeed.debug to maven_jetspeed_debug. However, this isn't a
workable solution because I didn't write the plugins in question.
Can anyone clarify the situation? Did the original expression work in the
past, and the plugin hasn't been updated? Or is something else going on
here?
Jagadeesh Danala <[EMAIL PROTECTED]>
07/16/2004 01:11 PM
Please respond to "Maven Users List"
To: Maven Users List <[EMAIL PROTECTED]>
cc:
Subject: Re: Problems with if tests in plugins
Hi
The problem is with your expression
<j:if test ="${maven.jetspeed.debug}"> should work if the value of the
property is set to true.
Regards
Jagadeesh
[EMAIL PROTECTED] wrote:
>I'm using the jetspeed plugin for maven, and I'm experiencing a problem
>with how jelly:core "if" tags are being handled.
>
>The plugin has the following code:
>
> <j:if test="${maven.jetspeed.debug == 'true'}">
> <echo>[DEBUG] maven.src.dir = ${maven.src.dir}</echo>
> <echo>[DEBUG] maven.war.src = ${maven.war.src}</echo>
> <echo>[DEBUG] maven.build.dir = ${maven.build.dir}</echo>
> <echo>[DEBUG] maven.war.build.dir =
>${maven.war.build.dir}</echo>
> <echo>[DEBUG] maven.dependency.classpath =
>${maven.dependency.classpath}</echo>
> </j:if>
>
>The problem I see is with the test parameter. I can't make it evaluate
to
>true! I've tried adding a "maven.jetspeed.debug = true" to various files
>($HOME/build.properties, ./build.properties, ./project.properties, etc)
as
>well as using "-Dmaven.jetspeed.debug=true" on the command line, to no
>avail.
>
>This problem also occurs in the Torque plugin for maven. It causes the
>torque:om-zip goal to fail, because the properties that indicate what
>parts of the generated OM stuff should get zipped up can't be made to
>evaluate as true.
>
>I've tried this with every release of maven I could find: 1.0rc1 through
>1.0final, and the behavior is the same.
>
>Repeated searches through google, jakarta, and the mailing lists haven't
>provided an answer. Does anyone have any ideas as to what's going on?
>
>---------------------------------------------------------------------
>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]