Resolving "java.io.IOException:Failed to delete" build error in Vine (Windows specific)

Sometimes during the build process Ant is reporting error like this:
java.io.IOException:Failed to delete {CATALINA_HOME}\webapps\gridsphere\WEB-INF\vine\backup\grid\xslt\web-undeploy.xml while trying to rename {CATALINA_HOME}\webapps\gridsphere\WEB-INF\vine\backup\grid\xslt\rep604943897.tmp
The error appears only on fast Windows machines - quick processor and low processor usage increase the chance for this error.

The problem was addressed by Apache Ant developers:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45960
and is resolved in Ant svn version which can be downloaded from:
http://svn.apache.org/repos/asf/ant/core/trunk
then execute build.bat, set ANT_HOME to dist directory of downloaded Ant and set the path to %PATH%;%ANT_HOME%/bin to reflect the new Ant installation in your system.
Check your new Ant installation with
ant -version
it should return:
Apache Ant version 1.8.0alpha compiled on {current_date}