You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Donald McLean <dm...@stsci.edu> on 2009/10/14 16:23:27 UTC

Error using Ant

I'm using 1.7.1 and got this error message:

Could not load definitions from resource 
org/apache/tools/ant/antlib.xml. It could not be found.

The build that I'm trying to run is failing for no reason that I can 
find. The error message appears to be coming from the first "property" 
statement.

<project name="Utilities" default="redeliverdebug" basedir=".">

     <property name="src" value="${basedir}"/>

Any help would be appreciated.

Donald

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


Re: Error using Ant

Posted by Stefan Bodewig <bo...@apache.org>.
On 2009-10-14, Donald McLean <dm...@stsci.edu> wrote:

> I'm using 1.7.1 and got this error message:

> Could not load definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be found.

Looks like either an incomplete or mixed up installation.

Try running "ant -diagnostics" to see what Ant itself thinks about its
environment.

Stefan

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


Re: Error using Ant

Posted by Francis GALIEGUE <fg...@one2team.com>.
On Wed, Oct 14, 2009 at 16:23, Donald McLean <dm...@stsci.edu> wrote:
> I'm using 1.7.1 and got this error message:
>
> Could not load definitions from resource org/apache/tools/ant/antlib.xml. It
> could not be found.
>
> The build that I'm trying to run is failing for no reason that I can find.
> The error message appears to be coming from the first "property" statement.
>
> <project name="Utilities" default="redeliverdebug" basedir=".">
>
>    <property name="src" value="${basedir}"/>
>
> Any help would be appreciated.
>

No, it doesn't come from here. It comes from the find that you do a
<taskdef> of ant-contrib and don't have ant-contrib in your classpath.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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