You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Patrick Waugh <pt...@gmail.com> on 2008/11/15 08:49:23 UTC

Ant NOT finding jars even in ant/lib (without classpath=)

Somehow I have screwed up my configuration as I can no longer have
<taskdef> automatically find installed external tasks in either:

~/.ant/lib  or
/usr/share/ant/lib

I'm using Eclipse Ganymede, and am not sure how to fix this.  If
anyone has a clue what I likely did let me know.  I'm using Ant 1.7.1.

Patrick

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


Re: Ant NOT finding jars even in ant/lib (without classpath=)

Posted by Patrick Waugh <pt...@gmail.com>.
James,

On Sat, Nov 15, 2008 at 2:55 AM, James Abley <ja...@gmail.com> wrote:
>
> Does it work on the command line? It may just be an Eclipse configuration
> thing.

Hey thanks.  I did finally figure it out.  It is indeed an Eclipse
configuration thing.

For anyone else who might have this problem, here's how you fix it.

Windows->Preferences, click on Ant, expand click on Runtime
In the right pane click "Restore defaults", and this will add in any
.jar's existing in the ~/.ant/lib directory.

Be sure to fix ANT_HOME again if you are using a more recent Ant then
that included with Eclipse.

Then, in the future, if you add another one then manually add it here,
or it will only be found from the command line ant.

Patrick

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


Re: Ant NOT finding jars even in ant/lib (without classpath=)

Posted by James Abley <ja...@gmail.com>.

Does it work on the command line? It may just be an Eclipse configuration 
thing.

Cheers,

James

On 15 Nov 2008, 7:49 AM, "Patrick Waugh" <pt...@gmail.com> wrote:

Somehow I have screwed up my configuration as I can no longer have
<taskdef> automatically find installed external tasks in either:

~/.ant/lib  or
/usr/share/ant/lib

I'm using Eclipse Ganymede, and am not sure how to fix this.  If
anyone has a clue what I likely did let me know.  I'm using Ant 1.7.1.

Patrick

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