Grails Gant、Groovy scp和Ant
我正在尝试将目录scp到远程服务器,但遇到此错误。请帮忙 只需要一个[file | localfile | remotefile]或一个或多个嵌套文件集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
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")
}
我设法让我的工作方式与你的工作方式相同。:-)无论如何,谢谢你。