ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitchell Ackermann" <>
Subject Re: Help: Using FTP with ant
Date Tue, 21 Aug 2001 18:06:08 GMT
> my classpath is "c:\jdk1.3.1\jre;D:\NetComponents-1.3.8a\com"
how about "c:\jdk1.3.1\jre;D:\NetComponents-1.3.8a"

----- Original Message ----- 
From: Rob's Apollo <>
To: <>
Sent: Tuesday, August 21, 2001 12:58 PM
Subject: Help: Using FTP with ant

test xml file for ant

<project name="simpleCompile" default="deploy" basedir=".">
<target name="init">
    <property name="sourceDir" value="src" />
    <property name="outputDir" value="classes" />
    <property name="jsp" value="${sourceDir}/jsp" />
    <property name="deployJSP" value="web/deploy/jsp" />
    <property name="deployProperties" value="web/deploy/conf" />
<target name="clean" depends="init">
    <delete dir="${outputDir}" />
    <delete dir="${deployProperties}" />
    <delete dir="${deployJSP}" />
<target name="prepare" depends="clean">
    <mkdir dir="${outputDir}" />
    <mkdir dir="${deployJSP}" />
    <mkdir dir="${deployProperties}" />
<target name="compile" depends="prepare">
    <javac srcdir="${sourceDir}" destdir="${outputDir}" />
<target name="deploy" depends="compile,init">
    <copy todir="${deployJSP}" >
        <fileset dir="${jsp}" />
<target name="sendit" >
    <ftp action="list"
        listing="data/ftp.listing" >
            <include name="**"/>

my classpath is "c:\jdk1.3.1\jre;D:\NetComponents-1.3.8a\com"
but all I get is

cmd: ant - buildfile simple.xml sendit

D:\ant-test\simple.xml:37: Could not create task of type: ftp. Common
solutions are to use taskdef to declare your task, or, if this is an
optional task, to put the optional.jar in the lib directory of your ant
installation (ANT_HOME).
tried both ways and get the same error

any ideas

Robert Cartier

View raw message