ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Donie <>
Subject RE: Delete fails...
Date Wed, 11 Apr 2001 20:58:32 GMT
Go to the SysInternals web site and get HandleEx

Do a find and see which process has a handle open on junit.jar - I bet
something does.

-----Original Message-----
From: []
Sent: Wednesday, April 11, 2001 11:30 AM
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 name="install" depends="prepare" unless="is.installed">
                <unzip src="${archive}.${archivetype}" dest="."/>
                <touch file="is.installed" />

        <target name="clean">
                <delete dir="${archive}"/>
                <delete file="is.installed"/>

I'm getting the following result: 

Buildfile: build.xml

   [delete] Deleting directory C:\data\Source\CMS\ThirdParty\junit\junit3.5


C:\data\Source\CMS\ThirdParty\junit\build.xml:15: Unable to delete file 

ATTRIB shows that the file is not readonly:
C:\data\Source\CMS\ThirdParty\junit>attrib junit3.5\*
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?

View raw message