Please add commons-net to the ant/lib in the EAP distribution

Can you add apache commons-net-xxx.jar to lib/ant/lib in the distribution?

Its required to do ftp-upload via an Ant task and while it's not a big thing to add it after each installation, it would be easier to have it installed automatically.

7 comments
Comment actions Permalink

While you are at it, you can also add JSCh - required for the ssh, scp and sshexec tasks.

0
Comment actions Permalink

workaround is to install apache ant separately and then configure your build.xml to use that custom ant installation.

Then, if you upgrade IDEA, you don't have to do anything.

But I agree that Jetbrains should probably just include commons-net-xxx.jar since that is used for ftp which is very common.

This link as a list of 3rd party jarfile dependencies for ant tasks. I don't think Jetbrains should include all of these; Only the ones needed for the most basic/common tasks.

http://ant.apache.org/manual/install.html#librarydependencies

0
Comment actions Permalink

Dimitar Dimitrov wrote:

While you are at it, you can also add JSCh - required for the ssh, scp and sshexec tasks.


I'd also say ship ivy, and the maven ant tasks with the bundled ant as
well :)

0
Comment actions Permalink

I guess one could ask why aren't all those packaged with apache-ant ?

0
Comment actions Permalink

You can simply place any desired additional APIs in ${user.home}/.ant/lib and ant will pick them up (unless the -nouserlib is set at the command line.) See
http://ant.apache.org/manual/running.html#libs for more info. And thanks to JIRA feature 5135/9780 being implemented a while ago, IDEA will automatically include anything in that directory as well. So no need to put them back after each installation of IDEA.

IMHO, that is the better way to do things since IDEA's Ant distribution should be exactly the same as the standard distribution. Otherwise you get into those "but it works on my PC" or "but it works in IDEA but not on the build server" type of issues.

So -1 on adding any non-standard ant jars to IDEA's ant.

0
Comment actions Permalink

You can simply place any desired additional APIs in ${user.home}/.ant/lib


Nice, thank you. Didin't know about that. You're right: With this feature it's not neccessary to put the file into the distribution.

But it seems that there should be some easy to find FAQ somewhere with answers to problems like this.

0
Comment actions Permalink

Mark Vedder wrote:

You can simply place any desired additional APIs in
${user.home}/.ant/lib and ant will pick them up (unless the
-nouserlib is set at the command line.) See


Ahh nice - I wasn't aware of ~/.ant/lib - nice.

0

Please sign in to leave a comment.