Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ANT optional task in the WSAD 5
ANT optional task in the WSAD 5 [message #37809] Mon, 19 May 2003 10:10 Go to next message
Eclipse UserFriend
Originally posted by: Francis.Li.fmr.com

I would like to use some optional task in the ANT for ftp the ear file and
telnet to other machine to install ear file. I am using WSAD5 (eclipse 2).
I have checked the optional.jar file inclided in the ANT plugin, it is
there in the plugin directory and plugin.xml. but the eclipse couldn't
find it. Any suggestion ?

Error I got ....

Arguments: -Dbasedir=C:\wsad5\workspace\simple
Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
create task of type: ftp. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).
Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
create task of type: ftp. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).
C:\wsad5\workspace\simple\PM\build.xml:37: Could not create task of type:
ftp. Common solutions are to use taskdef to declare your task, or, if this
is an optional task, to put the optional.jar in the lib directory of your
ant installation (ANT_HOME).
at org.apache.tools.ant.UnknownElement.makeTask(UnknownElement. java:153)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownEl ement.java:83)
at org.apache.tools.ant.Task.perform(Task.java:216)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560 )
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:262)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:234)
at
org.eclipse.ui.externaltools.internal.core.AntFileRunner.exe cute(AntFileRunner.java:56)
at
org.eclipse.ui.externaltools.internal.core.DefaultRunnerCont ext.executeRunner(DefaultRunnerContext.java:428)
at
org.eclipse.ui.externaltools.internal.core.DefaultRunnerCont ext.run(DefaultRunnerContext.java:479)
at
org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.r un(AntLaunchWizard.java:117)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:98)
Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
create task of type: ftp. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).
Re: ANT optional task in the WSAD 5 [message #38203 is a reply to message #37809] Mon, 19 May 2003 12:42 Go to previous message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

Are you using a taskdef?
Are you adding the task using the Tasks preference page?
What does your build file look like?

You must define optional tasks. See the Ant or Eclipse documentation for
more details.

HTH
Darins

"Francis Li" <Francis.Li@fmr.com> wrote in message
news:baaolh$723$1@rogue.oti.com...
> I would like to use some optional task in the ANT for ftp the ear file and
> telnet to other machine to install ear file. I am using WSAD5 (eclipse 2).
> I have checked the optional.jar file inclided in the ANT plugin, it is
> there in the plugin directory and plugin.xml. but the eclipse couldn't
> find it. Any suggestion ?
>
> Error I got ....
>
> Arguments: -Dbasedir=C:\wsad5\workspace\simple
> Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
> create task of type: ftp. Common solutions are to use taskdef to declare
> your task, or, if this is an optional task, to put the optional.jar in the
> lib directory of your ant installation (ANT_HOME).
> Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
> create task of type: ftp. Common solutions are to use taskdef to declare
> your task, or, if this is an optional task, to put the optional.jar in the
> lib directory of your ant installation (ANT_HOME).
> C:\wsad5\workspace\simple\PM\build.xml:37: Could not create task of type:
> ftp. Common solutions are to use taskdef to declare your task, or, if this
> is an optional task, to put the optional.jar in the lib directory of your
> ant installation (ANT_HOME).
> at org.apache.tools.ant.UnknownElement.makeTask(UnknownElement. java:153)
> at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownEl ement.java:83)
> at org.apache.tools.ant.Task.perform(Task.java:216)
> at org.apache.tools.ant.Target.execute(Target.java:184)
> at org.apache.tools.ant.Target.performTasks(Target.java:202)
> at org.apache.tools.ant.Project.executeTarget(Project.java:601)
> at org.apache.tools.ant.Project.executeTargets(Project.java:560 )
> at
>
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.ja
va:262)
> at java.lang.reflect.Method.invoke(Native Method)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:234)
> at
>
org.eclipse.ui.externaltools.internal.core.AntFileRunner.exe cute(AntFileRunn
er.java:56)
> at
>
org.eclipse.ui.externaltools.internal.core.DefaultRunnerCont ext.executeRunne
r(DefaultRunnerContext.java:428)
> at
>
org.eclipse.ui.externaltools.internal.core.DefaultRunnerCont ext.run(DefaultR
unnerContext.java:479)
> at
>
org.eclipse.ui.externaltools.internal.ui.AntLaunchWizard$1.r un(AntLaunchWiza
rd.java:117)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
..java:98)
> Build exception: C:\wsad5\workspace\simple\PM\build.xml:37: Could not
> create task of type: ftp. Common solutions are to use taskdef to declare
> your task, or, if this is an optional task, to put the optional.jar in the
> lib directory of your ant installation (ANT_HOME).
>
Previous Topic:Loading default Editors
Next Topic:Bug with the Task view?
Goto Forum:
  


Current Time: Wed Oct 15 15:35:05 EDT 2025

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

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

Back to the top