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

3 comments:

Anonymous said...

Thank you, very useful

Navjeet said...

Thank you it fixed my problem with hanging also

A Guerrero said...

Useful here too, thank you.

Post a Comment