ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Problem to use ant contrib
Date Wed, 30 Apr 2008 09:00:09 GMT
Also, the taskdef defines a namespace uri (antlib:net.sf.antcontrib)
but the script does not bind this to a namespace prefix and in any
case does not use a namespace prefix with the <if> tag.

the definition should be something like this:
<taskdef resource="net/sf/antcontrib/antlib.xml"
              classpath="${lib}/antcontrib.jar"/>
<if>
...

or (ant 1.7)
<taskdef uri="antlib:net.sf.antcontrib"
             classpath="${lib}/antcontrib.jar"/>

<ac:if xmlns:ac=""antlib:net.sf.antcontrib">

..
</ac:if>


Peter


On Wed, Apr 30, 2008 at 9:54 AM, Stefan Bodewig <bodewig@apache.org> wrote:
> On Wed, 30 Apr 2008, Fabien Dubois <fabien.dubois@capgemini.com> wrote:
>
>  >           <taskdef uri="antlib:net.sf.antcontrib"
>  >           resource="net/sf/antcontrib/cpptasks/antlib.xml"
>  >           classpath="${lib}/cpptasks.jar"/>
>  >
>  >             <if>
>  >
>
> > Ant stops this task at the < if > (so there is no problem for the
>  > taskdef):
>
>  I don't think cpptasks.jar contains the if-task, you need the
>  ant-contrib.jar for that.
>
>  Stefan
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message