Search code examples
antrsync

Any analog of rsync for Ant?


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

Thanks for any help


Solution

  • 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.