Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » External ant task for Eclipse
External ant task for Eclipse [message #279890] Tue, 25 January 2005 13:53 Go to next message
Eclipse UserFriend
Originally posted by: prokopiev.stc.donpac.ru

Hi,

How can I use external ant task in Eclipse 3.0.1? I use next line in my
build.xml

<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>

but I get error:

taskdef class org.apache.catalina.ant.DeployTask cannot be found

I move catalina-ant.jar into
/opt/eclipse/plugins/org.apache.ant_1.6.2/lib, but I don't see it in
Window - Preferences - Ant - Runtime - Tasks - Add Task - Location
Re: External ant task for Eclipse [message #279923 is a reply to message #279890] Tue, 25 January 2005 17:03 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
We have a bug when adding JARs to the lib directory of the Ant plugin
https://bugs.eclipse.org/bugs/show_bug.cgi?id=56290
Restarting Eclipse should pick up the new JAR (or use the other workarounds
detailed in the bug).

Alternatively, if you use a taskdef in your buildfile all you need to do is
add the catalina JAR to the Ant runtime classpath.
Window>Preferences>Ant>Runtime>Classpath.
Add the JAR to the global entries.

HTH
Darins

"Eugene Prokopiev" <prokopiev@stc.donpac.ru> wrote in message
news:ct5irt$cgp$1@www.eclipse.org...
> Hi,
>
> How can I use external ant task in Eclipse 3.0.1? I use next line in my
> build.xml
>
> <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
>
> but I get error:
>
> taskdef class org.apache.catalina.ant.DeployTask cannot be found
>
> I move catalina-ant.jar into
> /opt/eclipse/plugins/org.apache.ant_1.6.2/lib, but I don't see it in
> Window - Preferences - Ant - Runtime - Tasks - Add Task - Location
Previous Topic:Launching applications problem
Next Topic:Update Manager upgrade 3.0.0 -> 3.0.1 failed
Goto Forum:
  


Current Time: Thu Apr 25 17:44:29 GMT 2024

Powered by FUDForum. Page generated in 0.03741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top