ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: DELETE exception
Date Tue, 11 Dec 2001 23:03:07 GMT
It is likely that windows is locking the file because you have it open in an 
editor or some other application has it opened.

On Wed, 12 Dec 2001 09:56, Dmitri G. Chtchekine wrote:
>  I get exception trying to delete some files (OS is Windows NT).
>  Strangely some files get deleted, and on some ant failes.
>  All files have same permissions.
>  Here is the code:
>    <delete file="${build.dir}\${package.root.dcmtools}\Certifier.ini"/>
>    <delete file="${build.dir}\${package.root.dcmtools}\BulkLoad.ini"/>
>    <delete file="${build.dir}\${package.root.dcmtools}\MainMenu.ini"/>
>    <delete file="${build.dir}\${package.root.dcmtools}\ProductDelete.ini"/>
>    <delete file="${build.dir}\${package.root.dcmtools}\Reports.ini"/>
>
>  Here is output:
>
>  [delete] Deleting:
>  C:\java\buildclasses\dcmtools\Certifier.ini
>     [delete] Deleting:
>  C:\java\buildclasses\dcmtools\BulkLoad.ini
>     [delete] Deleting:
>  C:\java\buildclasses\dcmtools\MainMenu.ini
>     [delete] Deleting:
>  C:\java\buildclasses\dcmtools\ProductDelete.ini
>
>  BUILD FAILED
>
>  d:\ant\buildpii.xml:726: Unable to delete file
>  C:\java\buildclasses\dcmtools\ProductDelete.ini
>          at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:267)
>          at org.apache.tools.ant.Task.perform(Task.java:217)
>          at org.apache.tools.ant.Target.execute(Target.java:164)
>          at org.apache.tools.ant.Target.performTasks(Target.java:182)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256)
>          at
>  org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:120)
>          at org.apache.tools.ant.Task.perform(Task.java:217)
>          at org.apache.tools.ant.Target.execute(Target.java:164)
>          at org.apache.tools.ant.Target.performTasks(Target.java:182)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>          at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>          at org.apache.tools.ant.Main.runBuild(Main.java:454)
>          at org.apache.tools.ant.Main.start(Main.java:153)
>          at org.apache.tools.ant.Main.main(Main.java:176)
>
>
>  TIA!

-- 
Cheers,

Pete

-----------------------------------------------------------
 "Remember, your body is a temple; however, it's also your 
 dancehall and bowling alley"   -- Dharma Montgomery
-----------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message