ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <dcor...@imperitek.com>
Subject Re: Delete fails...
Date Thu, 12 Apr 2001 20:11:15 GMT
I tried that, and I tried NTHandle | grep junit.

Nothing is holding the file open.

It *seems* like that cygwin rm also fails (silently) to delete it, but
DEL frequently (if not always) succeeds.

More ideas?

Steve Donie wrote:
> 
> Go to the SysInternals web site and get HandleEx
> http://www.sysinternals.com/ntw2k/freeware/handleex.shtml
> 
> Do a find and see which process has a handle open on junit.jar - I bet
> something does.
> 
> -----Original Message-----
> From: dcorbin@machturtle.com [mailto:dcorbin@machturtle.com]
> Sent: Wednesday, April 11, 2001 11:30 AM
> To: ant-user@jakarta.apache.org
> Subject: Delete fails...
> 
> I've the following ANT script:
> 
> <project name="Junit install" default="install" basedir=".">
>         <property name="archive" value="junit3.5"/>
>         <property name="archivetype" value="zip"/>
> 
>         <target name="prepare">
>                 <available file="is.installed" property="is.installed" />
>         </target>
> 
>         <target name="install" depends="prepare" unless="is.installed">
>                 <unzip src="${archive}.${archivetype}" dest="."/>
>                 <touch file="is.installed" />
>         </target>
> 
>         <target name="clean">
>                 <delete dir="${archive}"/>
>                 <delete file="is.installed"/>
>         </target>
> </project>
> 
> I'm getting the following result:
> 
> Buildfile: build.xml
> 
> clean:
>    [delete] Deleting directory C:\data\Source\CMS\ThirdParty\junit\junit3.5
> 
> BUILD FAILED
> 
> C:\data\Source\CMS\ThirdParty\junit\build.xml:15: Unable to delete file
> C:\data\Source\CMS\ThirdParty\junit\junit3.5\junit.jar
> 
> ATTRIB shows that the file is not readonly:
> C:\data\Source\CMS\ThirdParty\junit>attrib junit3.5\*
>            C:\data\Source\CMS\ThirdParty\junit\junit3.5\junit.jar
> A          C:\data\Source\CMS\ThirdParty\junit\junit3.5\README.html
> A          C:\data\Source\CMS\ThirdParty\junit\junit3.5\src.jar
> 
> This seems to work fine on Linux, and fail on Windows 2000.  Any ideas?

-- 
David Corbin 		
dcorbin@imperitek.com

Mime
View raw message