netbeans automated deployment with ant and rsync


since i have a few chances to correctly remember rsync deployment command and since a wrong command could be a disaster, let’s try to automatically perform it via netbeans-ant integration:

cp options:
-R -> nicely manages symbolic links

rsync options:
-a -> stands for “archive” and syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions.
-n -> dry-run
-P -> nice verbosity
-z -> compress

then i create deploy.ant in ~/eERP/:

activate ant plugin in netbeans.
right click on deploy.ant -> run target… -> dev-to-test-deployment

-> perfect!

View original post