Take a look at the Ant documentation about the required libs for the FTP task. You need not just the ant-optionals, but also the NetComponents. Download here:
http://www.savarese.org/oro/downloads/index.html#NetComponents Hope it helps, -Mo. "Maven Users List" <[EMAIL PROTECTED]> schrieb am 15.09.03 17:36:23: > > Thanks for your quick reply Moritz! > > I tried adding: > > <ant:taskdef > name="ftp" > > classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/> > > so that the goal now appears as: > > > <goal name="upload"> > > <ant:taskdef > name="ftp" > > classname="org.apache.tools.ant.taskdefs.optional.net.FTP"/> > > > <ant:ftp server="www0" port="21" > userid="${ftp.user}" password="${ftp.pw}" > verbose="true"> > <fileset dir="${maven.build.dir}"> > <include name="${maven.war.final.name}"/> > </fileset> > </ant:ftp> > </goal> > > but when I ran it, I got: > > "<ant:taskdef> taskdef class > org.apache.tools.ant.taskdefs.optional.net.FTP cannot > be found" > > Is there anything else that I need to do? > > Thank you. > > > > --- Moritz Petersen <[EMAIL PROTECTED]> wrote: > > Hi, > > > > you need to define the task first. Take a look at > > the checkstyle plugin, where the task is defined as > > follows: > > > > <ant:taskdef > > name="checkstyle" > > > > > classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> > > </ant:taskdef> > > > > <attainGoal > > name="checkstyle:determine-properties" /> > > > > <!-- Create the directory for the checkstyle > > cache in case it doesn't exist already --> > > <ant:dirname > > property="maven.checkstyle.cache.dir" > > file="${maven.checkstyle.cache.file}"/> > > <ant:mkdir > > dir="${maven.checkstyle.cache.dir}"/> > > > > <ant:echo>Using ${checkstyleProperties} for > > checkstyle ...</ant:echo> > > > > <ant:checkstyle > > properties="${checkstyleProperties}" > > > > > failOnViolation="${maven.checkstyle.fail.on.violation}" > > cacheFile="${maven.checkstyle.cache.file}"> > > <ant:fileset > > dir="${pom.build.sourceDirectory}" > > includes="${maven.checkstyle.includes}" > > excludes="${maven.checkstyle.excludes}"/> > > <ant:formatter type="xml" > > > toFile="${maven.build.dir}/checkstyle-raw-report.xml"/> > > <j:choose> > > <j:when > > test="${maven.checkstyle.usefile}"> > > <ant:formatter type="plain" > > > > > toFile="${maven.build.dir}/checkstyle-raw-report.txt"/> > > </j:when> > > <j:otherwise> > > <ant:formatter type="plain"/> > > </j:otherwise> > > </j:choose> > > </ant:checkstyle> > > > > > > > > Cheers, > > > > -Mo. > > > > > > "Maven Users List" <[EMAIL PROTECTED]> schrieb > > am 15.09.03 16:41:40: > > > > > > Hello. > > > > > > I have the following goal defined in maven.xml, > > but > > > when I execute it, nothing happens. > > > > > > > > > <goal name="upload"> > > > <ant:ftp server="www0" port="21" > > > userid="${ftp.user}" password="${ftp.pw}" > > > verbose="true"> > > > <fileset dir="${maven.build.dir}"> > > > <include name="${maven.war.final.name}"/> > > > </fileset> > > > </ant:ftp> > > > </goal> > > > > > > > > > I also have ant-optional-1.5.3-1.jar in my > > > MAVEN_HOME/lib directory. > > > > > > I'm using Maven 1.0-Beta10. > > > > > > Thank you. > > > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ______________________________________________________________________________ Zwei Mal Platz 1 mit dem jeweils besten Testergebnis! WEB.DE FreeMail und WEB.DE Club bei Stiftung Warentest! http://f.web.de/?mc=021183 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
