When running certain build.xml targets, the net has a hit or miss when deleting the ivy banner directory. Locked files are executed using eclipse, using the explorer in the directory or reloading ant from eclipse, which refuses to delete it before restarting eclipse. It is very time consuming. Some reason eclipse holds onto these files after running ant build / clean.
These are not all projects and only at certain times for unknown reasons.
There is such a discussion. Eclipse will not delete files
but it does not answer the question of how to get eclipse to run ant without having to restart every time.
Is there a way to use the eclipse-console to see how the file processes what holds it? or someone knows the main reason why eclipse / ant / ivy will not release these objects after a build or two (the first time after a new start, Eclipse works fine), but then some subsequent builds of ant after that become unhappy.
In my case, this is eclipse, which will probably block the file. Restarting Eclipse is not a solution. Otherwise, I will just return to the command prompt window. I tried to configure launch in the same jvm and all kinds of settings.
Do i need to debug eclipse plugins? Is there an easier way to find out what doesn't release the lock in Eclipse and plugins? This is my first time ever to see this, and I suspect it is causing IVY.
Running juno, ivy, spring, ant and problems with run-as ant Build from Eclipse that clean cannot remove the lib / build directory from artifacts.
eclipse.buildId=M20130204-1200 java.version=1.6.0_43 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product !ENTRY org.apache.ivyde.eclipse 1 0 2013-06-04 11:36:50.344 !MESSAGE starting IvyDE plugin
ant target:
<target name="clean-retrieved" > <delete includeemptydirs="true" > <fileset dir="${basedir}"> <include name="lib/**" /> </fileset> </delete> </target>
ERROR:
clean-retrieved: BUILD FAILED C:\scripts\common-build-targets.xml:238: Unable to delete file C:\scripts\lib\build\annotations-1.3.8.jar <<just first jar file in directory..