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
Grails Gant、Groovy scp和Ant_Grails_Ant_Groovy_Scp_Gant - Fatal编程技术网

Grails Gant、Groovy scp和Ant

Grails Gant、Groovy scp和Ant,grails,ant,groovy,scp,gant,Grails,Ant,Groovy,Scp,Gant,我正在尝试将目录scp到远程服务器,但遇到此错误。请帮忙 只需要一个[file | localfile | remotefile]或一个或多个嵌套文件集 ant.scp(todir:"user@mycompany.com:/home/user/db",keyfile:"test.pem") { fileset(dir:"/home/test") } 您使用哪一版本的ant和groovy? 我使用ant 1.8.2、groovy 1.8.6、jsch 0.1.4

我正在尝试将目录scp到远程服务器,但遇到此错误。请帮忙

只需要一个[file | localfile | remotefile]或一个或多个嵌套文件集


    ant.scp(todir:"user@mycompany.com:/home/user/db",keyfile:"test.pem") {
        fileset(dir:"/home/test")
    }

您使用哪一版本的ant和groovy? 我使用ant 1.8.2、groovy 1.8.6、jsch 0.1.46、ant jsch 1.6.2,ant此脚本可以工作:

ant = new AntBuilder()
ant.scp(todir:"user1@mycorp.com:~/temp",keyfile:"/tmp/user1.pem",verbose:true, trust:true, passphrase:""){
    fileset(dir:"/user1/temp")
}

我设法让我的工作方式与你的工作方式相同。:-)无论如何,谢谢你。