Ant 的任何 rsync 模拟? [英] Any analog of rsync for Ant?
本文介绍了Ant 的任何 rsync 模拟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一些类似于 rsync
的蚂蚁.问题是将文件从源目录复制到以前用脚本完成的子目录集
I need some analog of rsync
for ant. The issue is to copy files from source directory to the set of subdirectories that was previously accomplished with script
rsync -r --ignore-existing $BASE_DIR/common/config/* $BASE_DIR/config
感谢您的帮助
推荐答案
您可以使用 exec调用 Ant 的 rsync,您可以使用 java 任务调用 Jarsync 或 java-sync 或者你可以创建一个自定义蚂蚁任务调用这些库中的任何一个.
You can use exec to call rsync from Ant, you could use the java task to call Jarsync or java-sync or you could create a custom ant task to call either of those libraries.
这篇关于Ant 的任何 rsync 模拟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文