problem:
i am running ant 1.6.5 and using the scp task. When the task starts, it stops responding, breaking the rest of my ant build in the process. Sometimes the task transfers one file (out of a few 100) and hangs.
solution:
From doing a bit of research i found out that some versions of the library required by this task - jsch - cause ant build to hang. The trick is finding a version of this lib which works with your version of ant.
I know that jsch version 0.1.29 works with ant 1.6.5.
get jsch-0.1.29.jar here
Thank you, very useful
ReplyDeleteThank you it fixed my problem with hanging also
ReplyDeleteUseful here too, thank you.
ReplyDeleteThis solution worked for me:
ReplyDeletehttp://stackoverflow.com/questions/6895547/ant-scp-task-hangs-on-linux