Ant FTP Tasks [message #1821503] |
Thu, 13 February 2020 17:53 |
Michael Wohlstadter Messages: 5 Registered: February 2020 |
Junior Member |
|
|
I have been using Eclipse for a number of years, but this is an issue that isn't really tied to a project.
For most of my projects I have build scripts written for Ant. Some of those scripts use the ftp task to transfer files. I define the task with the tag:
<taskdef name="ftp" classname="org.apache.tools.ant.taskdefs.optional.net.FTP" />
And make sure that the commons-net (currently commons-net-3.6.jar) is in the classpath.
In the past that was all I had to do. However, after upgrading to 2019-12, I am now getting a class not found error on the taskdef.
taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.net.FTP cannot be found: org/apache/
commons/net/ftp/FTPConnectionClosedException using the classloader AntClassLoader[ < list of jars including the net-commons one> ]
Is there a different way to call the ftp task in Ant scripts?
Thanks,
Michael
[Updated on: Thu, 13 February 2020 19:03] Report message to a moderator
|
|
|
|
|
Re: Ant FTP Tasks [message #1821559 is a reply to message #1821521] |
Fri, 14 February 2020 17:07 |
Michael Wohlstadter Messages: 5 Registered: February 2020 |
Junior Member |
|
|
Full error message:
taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.net.FTP cannot be found: org/apache/
commons/net/ftp/FTPConnectionClosedException using the classloader AntClassLoader[C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-antlr.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-bcel.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-bsf.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-log4j.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-oro.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-regexp.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-resolver.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-apache-xalan2.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-commons-logging.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-commons-net.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-imageio.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-jai.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-javamail.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-jdepend.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-jmf.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-jsch.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-junit.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-junit4.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-junitlauncher.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-launcher.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-netrexx.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-swing.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-testutil.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant-xz.jar;C:
\Users\***\.p2\pool\plugins\org.apache.ant_1.10.7.v20190926-0324\lib\ant.jar;C:\Program
Files\Java\jre1.8.0_40\lib\tools.jar;C:\Program Files\Java\jre1.8.0_40\lib\commons-net-3.6.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\89\0\.cp\ant_tasks\resources-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\171\0\.cp\ant_tasks\director-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\178\0\.cp\lib\jarprocessor-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\180\0\.cp\ant_tasks\metadataRepository-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\183\0\.cp\ant_tasks\pdepublishing-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\186\0\.cp\lib\repository-tools-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\205\0\.cp\ant_tasks\helpbase-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\216\0\.cp\jdtCompilerAdapter.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\657\0\.cp\ant_tasks\emf.ant.tasks.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\668\0\.cp\ant_tasks\importer.ecore.tasks.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\669\0\.cp\ant_tasks\importer.java.tasks.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\670\0\.cp\ant_tasks\importer.rose.tasks.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\689\0\.cp\lib\apitooling-ant.jar;C:
\Users\***\.p2\pool\plugins\org.eclipse.pde.build_3.10.600.v20191011-0535\lib\pdebuild-ant.jar;C:
\Program Files\Eclipse\configuration\org.eclipse.osgi\693\0\.cp\ant_tasks\pde-ant.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\828\0\.cp\lib\xinclude.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\65\0\.cp\lib\antsupportlib.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\66\0\.cp\lib\loggers.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\66\0\.cp\lib\antdebug.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\66\0\.cp\lib\remote.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\67\0\.cp\lib\antrunner.jar;C:\Program
Files\Eclipse\configuration\org.eclipse.osgi\67\0\.cp\lib\remoteAnt.jar]
[Updated on: Fri, 14 February 2020 17:09] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09900 seconds