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>
<target name="clean" depends="init">
    <delete dir="${outputDir}" />
    <delete dir="${deployProperties}" />
    <delete dir="${deployJSP}" />
</target>
<target name="prepare" depends="clean">
    <mkdir dir="${outputDir}" />
    <mkdir dir="${deployJSP}" />
    <mkdir dir="${deployProperties}" />
</target>
<target name="compile" depends="prepare">
    <javac srcdir="${sourceDir}" destdir="${outputDir}" />
</target>
<target name="deploy" depends="compile,init">
    <copy todir="${deployJSP}" >
        <fileset dir="${jsp}" />
    </copy>
</target>
<target name="sendit" >
    <ftp action="list"
        server="192.168.1.254"
        userid="anonymous"
        password="[EMAIL PROTECTED]"
        listing="data/ftp.listing" >
        <fileset>
            <include name="**"/>
        </fileset>
    </ftp>
</target>
</project>

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

BUILD FAILED
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


Reply via email to