Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ant-scp故障_Java_Ant_Scp - Fatal编程技术网

Java ant-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

这就是我试图将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"/>
    </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