ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: ant-contrib question
Date Fri, 04 Jan 2008 21:45:09 GMT
I think you need to do a taskdef...

Something like

<taskdef  resource="net/sf/antcontrib/antlib.xml"/>

Of course, you probably want to get your namespace inline...

Check the docs :)

Z W wrote:
> Hi Gurus
>
> I'm trying to use tasks in ant-contrid.
> So I downloaded ant-contrib-1.0b3-bin and put ant-contrib-1.0b3.jar file in
> $ANT_HOME\lib
>
> I also do the following
>
>
> <?xml version="1.0"?>
>
> <project name="test"
>
> default="main"
>
> xmlns:ac="antlib:net.sf.antcontrib">
>
>  :
>
> :
>
>
>
> But I'm getting this error
>
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apach
> e/tools/ant/antlib.xml. It could not be found.
>
>
> I'm using Ant 1.7
>
> Any help is appreciated.
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
QA Engineer OpenQabal    http://openqabal.dev.java.net


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


Mime
View raw message