ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harold Putman <>
Subject Re: Get dependant Libarary without -lib
Date Thu, 28 Mar 2013 11:35:12 GMT
Nevermind. I read the stackoverflow
carefully and when I followed all the instructions it totally worked:

Here's my sample script. I have
commons-net-3.2.jar <> in my
current working directory.

<project name="test" default="main" xmlns:jt="antlib:net.sf.enitsys.jtools">
<property name="libpath" value="."/>

<taskdef uri="antlib:net.sf.enitsys.jtools"
<jt:classloader loader="system" classpath="${libpath}/commons-net-3.2.jar"/>

<target name="main">
<ftp server="" userid="anonymous" password="" action="list"
<fileset includes="*"/>

On Thu, Mar 21, 2013 at 10:49 AM, Harold Putman <> wrote:

> I am using the <ftp> task which requires commons-net-3.2.jar.
> I can make this work by specifying "-lib commons-net-3.2.jar" when I
> invoke ant, but I would like to put something in my build file to load this
> library without needed -lib.
> This article from 2009 explains how to solve it
> But it doesn't work for me (ant 1.8.4). Is there a new way to do this now?
> Thanks in advance.

Web Technology Specialist
*Lexmark International, Inc. <>*
740 W New Circle Rd.
Lexington, KY 40550
+1(859) 232-2839

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message