Installing SSH and SCP in ANT 1.8.2 OSX



jsch-0.1.50.jar - contains the supporting classes for ssh and scp.
ant-jsch-1.8.2.jar - contains the tasks definitions for ANT.

They are not the same thing even though both have the word jsch in it.

Open a command line terminal
Type at the prompt

machine:direct usrname: ant -diagnostics | grep ant.library.dir

You should get something like the following:
ant.library.dir : /usr/share/ant/lib

Move the jar files into the directory /usr/share/ant/lib

Start using the ssh and scp tasks.

comments powered by Disqus