Powered by
Movable Type 3.14
this site is a java.blog

October 04, 2004

Beware of Apache Ant Tar task

I was almost fooled by the happy

[tar] Nothing to do: filename.tar is up to date.

message, but then better sense prevailed and I reran my build script after deleting the filename.tar file. The tar file created on the second run was bigger (and hence, different) than the former one.

But why did I suspect the Ant message at the first instance? Because, the previous run had failed with the following message:

BUILD FAILED
build.xml:51: Problem creating TAR: No space left on device

However, after freeing up disk space, I had expected Ant to remove the half-built tar file and recreate it.

Posted by pankaj at October 4, 2004 06:07 PM
Comments
Post a comment
















Disclaimer: Views expressed here are my own and do not represent those of my employer.
© 2001-2005 Pankaj kumar. All Rights Reserved.