ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <>
Subject Re: storing optional (ftp) task jar dependency under my project instead of under /ant/lib
Date Tue, 12 Jul 2005 16:29:53 GMT

You have several other alternatives to keep your ant
distribution clean of external libs:
1) Put commons-net-1.1.0.jar in $HOME\.ant\lib (my
favourite way)
2) Place it an arbitrary directory say
/path/to/thirdparty/jars and use -lib option of ant
launching script.

3) (Requires more coding and its benefits are
doubtful). Move ant-commons-net.jar from $ANT_HOME/lib
to some other folder and in your build script
<taskdef> ftp task like this:
<taskdef name="ftp" classname="...">
    <pathelement location="/path/to/commons-net.jar"/>


--- Asle Pedersen <> wrote:

> Is it possible to "embed" the ant ftp task in a
> project. I would like
> to just depend on a standard ant-installation to use
> the ftp task and
> have the commons-net-1.1.0.jar in my project instead
> of under /ant/lib
> which is suggested by the documentation. I have
> tried different
> methods to do this but none have worked so far. Any
> suggestions?
> Regards,
> Asle
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Sell on Yahoo! Auctions – no fees. Bid on great items.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message