This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 40027 - Ant does not implement the FTP ant task
Summary: Ant does not implement the FTP ant task
Status: VERIFIED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-12 15:28 UTC by kitfox
Modified: 2005-07-15 07:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2004-02-12 15:28:33 UTC
I tried to invoke the ftp ant task through a
target I created by double clicking on the target
name from the Explorer/Filesystems window.  It did
not execute, and the error message suggests the
necessary library was not included in the ant
distribution with NetBeans 3.5.


        <ftp server="${ftp.server}"
userid="${ftp.user}" password="${ftp.pw}"
remoteDir="${ftp.remoteDir}">
            <fileset dir="${tmp.dir}">
                <include
name="${cvs.filename}${DSTAMP}.zip"/>
            </fileset>
        </ftp>



java.lang.NoClassDefFoundError:
com/oroinc/net/ftp/FTPClient
        at
org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:917)
        at
org.apache.tools.ant.Task.perform(Task.java:319)
        at
org.apache.tools.ant.Target.execute(Target.java:309)
        at
org.apache.tools.ant.Target.performTasks(Target.java:336)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:331)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
BUILD FAILED
Comment 1 Marek Grummich 2004-02-13 09:07:50 UTC
I guess, you forgot to add corresponding libraries
(commons-net-1.1.0.jar, NetComponents.jar) to the ant classpath. You
can add them through the 'Additional classpath' property in the Ant
settings  (Options dialog). Please, give me know if it helps you.
Comment 2 kitfox 2004-02-13 10:55:59 UTC
Where is this 'additional classpath' property?  Best I could figure
out was to modify Options/Building/Ant Settings/Properties, but I've
not got it working yet.

I currently have commons-net-1.1.0.jar on my classpath, which command
line Ant is able to find.  Could NetBeans be tweaked to look there too?

Mark McKay

Comment 3 Marek Grummich 2004-02-13 11:08:46 UTC
Sorry, it was my mistake. I thought you have NetBeans 3.6 Beta 1.
'Aditional classpath' property isn't in the NetBeans 3.5. For NetBeans
3.5 the proper place for jars and libraries is
modules/patches/org-apache-tools-ant-module (look at ide help 'Ant
classpath and custom task').
Comment 4 Jesse Glick 2004-02-15 01:56:13 UTC
See

http://ant.netbeans.org/faq.html
Comment 5 Marian Mirilovic 2005-07-15 07:43:21 UTC
closed