【发布时间】:2011-09-16 02:34:33
【问题描述】:
使用 ant scp 我可以将文件从本地系统(windows)复制到服务器(linux)。所以我需要的是我想使用 ant 在 linux 系统中的指定目录中按系统日期创建一个文件夹并复制文件到创建的文件夹中..
这是我的 ant 脚本:
<sshexec host="hostname:22" username="****" trust="true"
password="fcubs"
command="mkdir $/home/desktop/<folder to be creted here>"/>
<scp todir="username@hostname:/home/desktop" password="*****" trust="true">
<fileset dir="D:\kkk"/>
</scp>
请帮助我 提前致谢
【问题讨论】: