You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dan tran <da...@gmail.com> on 2004/12/19 05:51:21 UTC

String's equals method on maven's property

Let's say I have this below property in my project.properties

   myproperty=myvalue

The following code in maven.xml will not work

<goal name="mygoal>
  
   <ant:echo><${myproperty}</ant:echo>  <!_-- always works -->
   <j:if test=${myproperty.equals('myvalue')} >
      <dosomething/>
   </j:if

</goal>

dosomething  tag does not got invoked.


However, run this 

   maven -Dmyproperty=myvalue mygoal

it works


Any thought?

-D

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