On 7/19/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote:
Don't you love when the person who sends the question comes up with the
answer... as if the process of asking the question triggers some brain
activity...
You need to add more dependencies in your project.xml for Maven 1.1
<dependency>
<groupId>netcomponents</groupId>
<artifactId>NetComponents</artifactId>
<version>1.3.8a</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-commons-net</artifactId>
<version>1.6.5</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>1.4.1</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
<goal name="ftp">
<taskdef name="ftp" classname="
org.apache.tools.ant.taskdefs.optional.net.FTP"/>
<ant:ftp server="yourserver.domain.com" userid="foo" password="bar"
action="list" listing="list.txt">
<fileset>
<include name="*.html"/>
</fileset>
</ant:ftp>
</goal>
Benoit
FYI...Commons-net should be a drop-in replacement for NetComponents; you
shouldn't need both. Though the original post is not included, so maybe you
already addressed that.
--
Jamie Bisotti