#13 Cannot use task scp though Ant finds jsch.jar

open
nobody
None
5
2014-06-12
2008-07-30
Anonymous
No

I am trying to use scp through Apache Ant, but Ant is failing to use the appropriate classes. Here is the error message I have got from Ant:

INFO - BUILD FAILED
INFO - /home/.../deploy2.xml:55: Could not create task or type of type: scp.
INFO -
INFO - Ant could not find the task or a class this task relies upon.

If I run diagnostics, I receive this information:

------- Ant diagnostics report -------
Apache Ant version 1.6.2 compiled on August 5 2004

-------------------------------------------
Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks : null
optional tasks : 1.6.2
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: ...
jsch-0.1.29.jar (153401 bytes)
jsch.jar (182510 bytes)
ant-jsch.jar (30797 bytes)
jsch-0.1.30.jar (167218 bytes)
jsch-0.1.39.jar (177987 bytes)
jsch-0.1.38.jar (177748 bytes)

-------------------------------------------
Tasks availability
-------------------------------------------
p4opened : Not Available
image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
cvsversion : Not Available
p4changes : Not Available
p4versionstring : Not Available
ddinit : Not Available
jdepend : Missing dependency jdepend.xmlui.JDepend
junit : Missing dependency junit.framework.Test

...

As you can see, I have tried to include several versions of jsch.jar in every combination I can image (the one featured is all the .jars I have downloaded thus far).

Discussion