You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Lamprey, Charles" <Ch...@fairisaac.com> on 2005/06/24 01:10:43 UTC

Newbie Question on Jeffy Test Syntax

I'm trying to validate the content of a project.properties file using a
plugin.  For example, I have:

 

stuff=something

 

in my project.properties file.

 

In my plugin's plugin.jelly file I have:

 

   <goal name="myplugin:debug">

   

                        <ant:echo>stuff : ${stuff}</ant:echo>

 

                        <j:if test="${stuff == something}" >

                           <ant:echo>We got something 1</ant:echo>

                        </j:if>

 

                        <j:if test="${stuff == 'something'}" >

                           <ant:echo>We got something 2</ant:echo>

                        </j:if>

 

                        <j:if test="${stuff == null}" >

                           <ant:echo>We got nothing</ant:echo>

                        </j:if>

            </goal>

 

The only print I get is the first one which is outside of the j:if
tests.

 

Chuck Lamprey

chuckl@cerb.com