Daily photograph for 2008-11-18 - "bloom"

Today's photograph on my photoblog, "Photo-Persistence"

Archive ant target

Lance has a snippet you should add to your ant scripts to make backups of your code. I have a similar target (listed below), but I like the way he does his with prefixes and additional excludes. I first created this when I was doing solo development and didn’t have cvs in place. Also very nice if you need to make regular backups. I’ll have to remember to update my scripts like his.


<!-- ========================================================
archive: zip up the source since i don't always have CVS available
-->
<target name="archive">
<tstamp>
<format property="archive.time" pattern="MM_dd_yyyy-hh_mm_aa"/>
</format>
</tstamp>
<jar jarfile="${archive.dir}/${app.name}_${archive.time}.zip" basedir="${home.dir}" excludes="**/*.zip"/>
</jar>
</target>

Leave a Reply