[JSch-users] Can't use Ant's scp task because of more missing libs
Status: Alpha
Brought to you by:
ymnk
From: Maik H. <mai...@gm...> - 2006-11-09 13:53:44
|
Hi, I'm trying to use Ant's scp task but have failed so far. First, my target: <target name="deploy-qs" depends="dist-qs"> <taskdef name="createEARName" classname="definingcreateearnametask" classpath="${dist.classes.dir}"/> <!-- set the EAR name as property --> <createEARName/> <scp file="${dist.dir}/${logi.ear.name}" todir="some directory" password="a password" trust="true"/> </target> This target is used from within IBM Rational Software Development Platform 6.0.0. I manually set RAD's ANT_HOME to a Ant 1.7 Beta 3 install I have and copied jsch.jar to Ant's lib directory. When running the script I receive the following error message: BUILD FAILED: D:\Projekt\...\build\build.xml:299: Problem: failed to create task or type scp Cause: Could not load a dependent class com/jcraft/jsch/UserInfo It is not enough to have Ant's optional JARs you need the JAR files that the optional tasks depend upon. Ant's optional task dependencies are listed in the manual. Action: Determine what extra JAR files are needed, and place them in one of: -C:\Java-Tools\apache-ant-1.7.0Beta3\lib -C:\D...\.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... How am I supposed which file is missing? And which file is it? Any help is appreciated. Regards, Maik |