ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@flashmail.com
Subject RE: FTP ant task (revised) still not working
Date Tue, 11 Mar 2003 22:16:18 GMT
I downloaded commons-net-1.0.0.jar and am
still getting the same error (removed NetComponents.jar).  
I am using ant 1.5.2 (what does 1.6 refer to?).  I am 
using the optional.jar provided in ant 1.5.2 which 
has FTP.class.  any other ideas?

It would be nice if this page were updated (if there are new
dependencies)
   http://ant.apache.org/manual/index.html

This url is referenced in the FTP page as required
dependencies.

Also since FTP.class was in the correct folder shouldn't ant
be complaining about some other class or dependency instead
of FTP (if the problem is that it can not find something)?  

thanks for your help

am

>Are you possibly building from latest sources?
>Note that in 1.6 this requires commons-net.jar in place of
>NetComponents.jar.
>
>NetComponents has moved from oro to jakarta and become commons-net.
>
>-----Original Message-----
>From: j2ee@flashmail.com [mailto:j2ee@flashmail.com] 
>Sent: Tuesday, March 11, 2003 3:53 PM
>To: user@ant.apache.org
>Subject: FTP ant task (revised)
>
>
>I can not get the FTP optional task to work.
>I have the taskdev setup properly.  I have
>all required jars in my classpath (ant, optional.jar
>and the 3rd party jars downloaded and in my lib directory.
>
>The error message from ant is:
>   taskdef class org.apache.tools.ant.taskdefs.optional.net.FTP cannot
>be found.
>
>I have unjar'd the optional.jar and it does indeed have FTP.class
>located
>at:
>	
>${devlib.dir}/org/apache/tools/ant/taskdefs/optional/net/FTP.class
>
>I have checked the spelling more than once.
>---
>
>
>I have many other custom taskdef's setup so I know things
>are configured properly.  What is up with FTP?  The archive seems to
>have a lot of postings but because of all the noise there can not seem
>to find exactly what I am looking for even after a keyword search.
>	
>---
>Here is my taskdef defined in build.xml:
>   <taskdef file="${ant.dir}/custom_anttasks.properties">
>      <classpath refid="devclasspath" />
>   </taskdef>
>
>Here is the custom_anttasks.properties file (checkstyle, pmd and jalopy
>work so I know my taskdef and .properties file is setup properly)
>
>	checkstyle=com.puppycrawl.tools.checkstyle.CheckStyleTask
>	pmd=net.sourceforge.pmd.ant.PMDTask
>	ftp=org.apache.tools.ant.taskdefs.optional.net.FTP
>
>---
>Here is the ftp task
>
>  <target name="devDeploy"
>      description="Puts files (dist/*.jar) on dev server">
>
>
>      <ftp server="${dev.host}"
>         userid="${dev.login}"
>         password="${dev.password}"
>         remotedir="${dev.deploy.dir}"
>         separator="/"
>         verbose="yes">
>
>         <!-- local files to deploy -->
>
>         <fileset dir="${dist.dir}">
>            <include name="**/*.jar"/>
>         </fileset>
>      </ftp>
>   </target>
>---
>Here is my dev classpath setup
>
>   <path id="devclasspath">
>      <fileset dir="${devlib.dir}">
>         <include name="**/*.jar" />
>      </fileset>
>   </path>
>
>other ant targets that depend on jars here is working so I know
>devclasspath is setup properly.
>
>---
>Here is a listing of files in devlib
>
>$ ls -lt
>total 5885
>-r--r--r--    1          mkgroup     27635 Mar 11 11:11 sax-2.0.1.jar
>-r--r--r--    1          mkgroup    350525 Mar 11 11:11 log4j-1.2.6.jar
>-r--r--r--    1          mkgroup     65383 Mar 11 11:11 oro-2.0.6.jar
>-r--r--r--    1          mkgroup     89584 Mar 11 11:11 jdom-1.0b8.jar
>-r--r--r--    1          mkgroup    905948 Mar 11 11:11
>jalopy-1.0b10.jar
>-r--r--r--    1          mkgroup     12807 Mar 11 11:11
>jalopy-ant-0.6.1.jar
>-r--r--r--    1          mkgroup     27052 Mar 11 11:11 jaxp-1.2.jar
>-r--r--r--    1          mkgroup     25898 Mar 11 11:11 aelfred-1.2.jar
>-r--r--r--    1          mkgroup    885250 Mar 10 14:05 xercesImpl.jar
>-r--r--r--    1          mkgroup    108484 Mar 10 14:05 xml-apis.jar
>-r--r--r--    1          mkgroup    668804 Mar 10 14:04
>ant-optional-1.5.2.jar
>-r--r--r--    1          mkgroup    732490 Mar 10 14:04 ant-1.5.2.jar
>-r--r--r--    1          mkgroup     92484 Mar 10 13:31
>NetComponents.jar
>-r--r--r--    1          mkgroup     10403 Mar 10 11:55
>ant-contrib-0.2.jar
>-r-xr-xr-x    1 Administ mkgroup    711466 Mar  6 10:52 pmd-1.03.jar
>-r-xr-xr-x    1 Administ mkgroup     20357 Mar  6 10:52
>commons-logging.jar
>-r-xr-xr-x    1 Administ mkgroup     29871 Mar  6 10:52
>jakarta-regexp-1.2.jar
>-r-xr-xr-x    1 Administ mkgroup     30117 Mar  6 10:52 commons-cli.jar
>-r-xr-xr-x    1 Administ mkgroup    146737 Mar  6 10:52
>commons-collections.jar
>-r-xr-xr-x    1 Administ mkgroup    681198 Mar  6 10:52
>checkstyle-all-3.0.jar
>-r-xr-xr-x    1 Administ mkgroup    110531 Mar  6 10:52
>commons-beanutils.jar
>-r-xr-xr-x    1 Administ mkgroup    281910 Mar  6 10:52
>checkstyle-3.0.jar
>
>checkstyle, pmd, jalopy work so I know my dev classpath is setup
>properly. I know that my taskdef is setup properly.
>---
>
>any help would be appreciated
>
>thanks
>
>am _______________________________________________________________
>Get Your FREE FlashMail Address now at http://www.flashmail.com It's
>Free, Easy, & Fun !!!
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
_______________________________________________________________
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!

Mime
View raw message