Menu

#366 delete task holding directory open

cvs
open
nobody
Tasks (408)
5
2005-04-11
2005-04-11
John Cole
No

Just upgraded to 1927 and one of my scripts started
failing with the following error:

-----------------------------------
[unzip] Unzipping
'C:\src\NAnt\UtilityCenter\2x\lib\ProjectionFiles\ProjectionFiles.zip'
to 'C:\src\NAnt\UtilityCenter\2x\lib\ProjectionFiles'
(1192485 bytes).

BUILD FAILED

C:\src\NAnt\UtilityCenter\2x\lib\ProjectionFiles\default.build(111,4):
Directory
'C:\src\NAnt\UtilityCenter\2x\lib\ProjectionFiles\Coordinate
Systems\Geographic Coordinate Systems\' could not be
created.
The process cannot access the file
"C:\src\NAnt\UtilityCenter\2x\lib\ProjectionFiles\Coordinate
Systems\Geographic Coordinate Systems\" because it is
being used by another process.
-------------------------------------

It seems like the 'other process' is a delete task just
before the unzip task.

Here is a build file snippet that reproduces this problem:

----------------------------------
<delete dir="Coordinate Systems"
if="${directory::exists('Coordinate Systems')}" />
<unzip zipfile="ProjectionFiles.zip" />
----------------------------------

There are a lot of directories and files in the zip
file (I'm attaching it to this issue).

Discussion

  • John Cole

    John Cole - 2005-04-11

    Logged In: YES
    user_id=892481

    I would have attached the zip file, but I keep getting a
    document contains no data error when submitting it.

     
  • Gert Driesen

    Gert Driesen - 2005-04-12

    Logged In: YES
    user_id=707851

    John, can you reproduce it every time ?

    If you can, then please send me the zip file and the build file
    you use for testing it: drieseng@users.sourceforge.net

    Thanks !

     
  • Gert Driesen

    Gert Driesen - 2005-10-10

    Logged In: YES
    user_id=707851

    John, managed to package up a repro for this issue ? If not, I'l
    be forced to close this report.

    I hope you understand ...

     

Log in to post a comment.