有任何类似于rsync的Ant吗? [英] Any analog of rsync for Ant?

查看:107
本文介绍了有任何类似于rsync的Ant吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些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.

这篇关于有任何类似于rsync的Ant吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆