You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by j2...@flashmail.com on 2003/03/11 22:41:11 UTC

FTP optional task does not work with correct setup

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:


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>

---
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 !!!