Tuesday, June 26, 2007

ant SCP task hangs

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

4 comments:

  1. Thank you, very useful

    ReplyDelete
  2. Thank you it fixed my problem with hanging also

    ReplyDelete
  3. This solution worked for me:

    http://stackoverflow.com/questions/6895547/ant-scp-task-hangs-on-linux

    ReplyDelete