ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atherton Richard - Z9V <richard.ather...@AXA-RoyaleBelge.be>
Subject RE: Help: Using FTP with ant
Date Tue, 21 Aug 2001 18:04:08 GMT
Rob,

I just stuck the netcomponents.jar in Ant's lib directory (i.e. the lib
under whereever you specify ANT_HOME) and it worked.


-----Original Message-----
From: Rob's Apollo [mailto:rcartier@apollo.homeip.net]
Sent: mardi 21 août 2001 19:58
To: ant-user@jakarta.apache.org
Subject: Help: Using FTP with ant
Importance: High


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="me@myorg.com"
        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


Mime
View raw message