maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin Gurbisz <Marcin.Gurb...@pentacomp.com.pl>
Subject using antcontrib in maven
Date Thu, 01 Apr 2004 12:06:34 GMT
Hi,

I've tried ant tasks from antcontrib:
<goal name="test">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties"
        classpathref="maven.dependency.classpath"/>
    <if>
     <equals arg1="${foo}" arg2="bar" />
     <then>
       <echo message="The value of property foo is bar" />
     </then>
     <else>
       <echo message="The value of property foo is not bar" />
     </else>
    </if>
</goal>

Output is:
test:
    [echo] The value of property foo is bar
    [echo] The value of property foo is not bar

Why it does not work?

Regards,
Marcin

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


Mime
View raw message