我需要通過scp複製war文件。Ant scp任務不工作,即使在jsch上ant/lib
我已經加入了jsch-0.1.42.jar
到$ANT_HOME/lib
但我仍然收到此錯誤:
Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found. This looks like one of Ant's optional components.
這是以防萬一運行ant -diagnostics
的結果:
你在類路徑上有jsch兩次,選擇一個jsch-0.1.29.jar(153401字節) jsch-0.1.42.jar(185746字節) – 2010-03-03 18:58:29
是的,它不適用於它們中的任何一個。 – 2010-03-03 19:00:32