JSCH ライブラリを必要とするSSHEXEC ANT タスクを使用しようとしています。
タスクを使用しようとするとSSHEXEC
、次のようになります。
BUILD FAILED
/home/www/test/build/build.xml:140: Problem: failed to create task or type sshexec
Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.SSHExec was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/usr/share/ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
私はjsch-0.1.50.jar
(最新のもの)を に/usr/share/ant/lib
配置/root/.ant/lib
し、次のことも試しました:
ant my-sshexec-target-name -lib /path/to/jsch-0.1.50.jar
そして、同じエラーが発生し続けます。jsch.jar
また、すべて同じ場所でファイルの名前を単純に変更しようとしました。同じ結果です。ここで何が間違っていますか?
アップデート
また、私は走っant -diagnostics
てこれを見ました:
...
-------------------------------------------
Tasks availability
-------------------------------------------
p4reopen : Not Available (the implementation class is not present)
image : Not Available (the implementation class is not present)
sshexec : Not Available (the implementation class is not present)
wlrun : Not Available (the implementation class is not present)
p4label : Not Available (the implementation class is not present)
p4revert : Not Available (the implementation class is not present)
p4submit : Not Available (the implementation class is not present)
scp : Not Available (the implementation class is not present)
p4change : Not Available (the implementation class is not present)
p4delete : Not Available (the implementation class is not present)
p4integrate : Not Available (the implementation class is not present)
rexec : Not Available (the implementation class is not present)
stlist : Not Available (the implementation class is not present)
telnet : Not Available (the implementation class is not present)
etc...
注: sshexec : 利用できません (実装クラスは存在しません)
どういう意味ですか?