Creating backups with ant?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yaroslav_bulatov
Posted On:   Monday, June 9, 2003 02:30 PM

Can someone direct me to examples of creating backups with ant?
In particular I'm trying to have all modified source files backed-up with each compilation, but only if the last backup was more than 1 hour ago.

Re: Creating backups with ant?

Posted By:   Eugene_Kuleshov  
Posted On:   Monday, June 9, 2003 09:08 PM

The following code should set a backup.required property if there is no backup file for more then 1 hour.


















In order to include only changed files you can also use element of parameters of or tasks

Re: Creating backups with ant?

Posted By:   Ekkasit_Takoungsakdakun  
Posted On:   Monday, June 9, 2003 07:46 PM

This is my Web application backup. This backup all excepts jar, lib, class files.
I hope it give you an idea.


















description="Generate source for project">
tarfile="${build.dir}/${tarball.tar}"
basedir="."
longfile="gnu">














About | Sitemap | Contact