Java ant-scp故障
这就是我试图将scp复制到远程机器的方式,我试图将整个目录复制到目标目录Java ant-scp故障,java,ant,scp,Java,Ant,Scp,这就是我试图将scp复制到远程机器的方式,我试图将整个目录复制到目标目录 <target name="report-test-results" depends="run-junit-tests"> <scp todir="root:somepassword@192.168.8.120:/home/hrishikesh/webui-test-results/"> <fileset dir="${basedir}/test-results
<target name="report-test-results" depends="run-junit-tests">
<scp todir="root:somepassword@192.168.8.120:/home/hrishikesh/webui-test-results/">
<fileset dir="${basedir}/test-results"/>
</scp>
</target>
签出
scp
任务的。您需要将其包含在类路径中。关于如何修复此问题,错误输出非常清楚:
Action: Determine what extra JAR files are needed, and place them in one of:
-ANT_HOME\lib
-the IDE Ant configuration dialogs
在您的例子中,您缺少JSCHJAR文件,可以从下载。在Eclipse-Windows>Preferences>Ant>Classpath中添加JAR文件
您可以从Maven Central Repository获取数据。bang on target…它明确表示不要惊慌,但我做到了。不管怎样,我的问题解决了,谢谢。也要感谢krock。在Debian上安装
libjschJava
包就足够了。
Action: Determine what extra JAR files are needed, and place them in one of:
-ANT_HOME\lib
-the IDE Ant configuration dialogs