Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Executing FTP ant task
Executing FTP ant task [message #631807] Fri, 08 October 2010 20:27 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Hi,

I am trying to executing ANT's ftp task from commons net libraries. When I add jars in Eclipse and execute action, task executes. Running it from Hudson I get error
Could not create type ftp due to java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClientConfig

In my ant script I am using other libraries such as svn and am able to execute them by defining them using typedef ant call. Is there something extra I have to do to make it work outside of Eclipse? I tried to put jars into lib directory of where ANT is installed, but this does not work.

thanks,
Alex
Re: Executing FTP ant task [message #917073 is a reply to message #631807] Wed, 19 September 2012 19:52 Go to previous messageGo to next message
Daniel Desjardins is currently offline Daniel DesjardinsFriend
Messages: 11
Registered: May 2012
Junior Member
Hello,
what was your solution, I am having the exact same problem. All threads point in putting
common-net-1.4.1.jar and
jakarta-oro-2.0.8.jar
into my "ant" plugin folder (C:\eclipse-3.7.2-win32\plugins\org.apache.ant_1.8.2.v20120109-1030 in my case)

But I still get the error after.

Any tip would really help.

Thanks!
Re: Executing FTP ant task [message #917589 is a reply to message #917073] Thu, 20 September 2012 08:14 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
My guess is that you will need to install some extra bundles into your headless bucky to make this run. Manually putting
stuff in under the plugins folder doesn't seem right. That's not what the IDE install is doing anyway.

- thomas

On 2012-09-19 21:52, Daniel Desjardins wrote:
> Hello,
> what was your solution, I am having the exact same problem. All threads point in putting common-net-1.4.1.jar and
> jakarta-oro-2.0.8.jar into my "ant" plugin folder (C:\eclipse-3.7.2-win32\plugins\org.apache.ant_1.8.2.v20120109-1030 in
> my case)
>
> But I still get the error after.
>
> Any tip would really help.
>
> Thanks!
Re: Executing FTP ant task [message #917892 is a reply to message #917589] Thu, 20 September 2012 14:36 Go to previous messageGo to next message
Daniel Desjardins is currently offline Daniel DesjardinsFriend
Messages: 11
Registered: May 2012
Junior Member
Hello,
Thanks for your input, what do you mean by "bucky"?

I am using the headless build, I would need to open Eclipse to add those? Could you provide me some guidelines on how to do this?

Thanks!
Re: Executing FTP ant task [message #918261 is a reply to message #917892] Thu, 20 September 2012 22:13 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-20-09 16:36, Daniel Desjardins wrote:
> Hello,
> Thanks for your input, what do you mean by "bucky"?
>
The nickname for "Buckminster" ;-)

> I am using the headless build, I would need to open Eclipse to add
> those? Could you provide me some guidelines on how to do this?
>

You can use the p2 director application to install things into any
Eclipse p2 based application (such as eh... "bucky" :-).

p2 director is available inside every Eclipse IDE, and is also available
as a separate command line tool. Google for it and you will find examples.

The headless bucky also has a command that allows you to install things
into it (with a slightly different command line syntax).

The "Bucky Book" available from Buckminster's download site has a
description of this as well.

It goes something like:

buckminster install «repository-url» «feature-id» [ «version» ]

Regards
- henrik
Re: Executing FTP ant task [message #919256 is a reply to message #917073] Fri, 21 September 2012 20:59 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
I tried loading FTP libraries in my ant script and using action on top of that to perform the action during the build, something like this:

<taskdef name="ftp" classname="org.apache.tools.ant.taskdefs.optional.net.FTP">
   <classpath>
     <pathelement location="${basedir}/build/tools/ant-commons-net.jar" />
     <pathelement location="${basedir}/build/tools/commons-net-2.0.jar" />
   </classpath>
</taskdef>
<target name="copy.qa.64">
  <ftp action="put" server="${server}" remotedir="${nightly64}" userid="${user}" password="${password}" verbose="true">
    <fileset>
      <include name="**/*.zip" />
      <include name="**/*.tar.gz" />
    </fileset>
   </ftp>
</target>

But that did not work - the jars files were never loaded. So I ended up adding the needed jars on the server to ${ANT_HOME}/lib directory and running ftp tasks like that.
Previous Topic:Setting up a Buckminster development workspace
Next Topic:Debugging the resolution of a CVS provider based on a tag?
Goto Forum:
  


Current Time: Fri Mar 29 07:05:03 GMT 2024

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

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

Back to the top