[kepler-dev] [Bug 4280] New: - ant task fails under Windows

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Aug 5 11:39:50 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4280

           Summary: ant task fails under Windows
           Product: Kepler
           Version: 1.x dev
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build system
        AssignedTo: berkley at nceas.ucsb.edu
        ReportedBy: cxh at eecs.berkeley.edu
         QAContact: kepler-dev at kepler-project.org


ant task fails under Window.

bash-3.2$ svn co
https://code.kepler-project.org/code/kepler/trunk/modules/build-area
...
bash-3.2$ cd build-area
bash-3.2$ ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
bash-3.2$ uname -a
CYGWIN_NT-5.2 newton 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
bash-3.2$ ant task
Buildfile: build.xml

task:

clean:
   [delete] Deleting: c:\tmp\cxh\src\kepler\build-area\target\kepler-tasks.jar

BUILD FAILED
c:\tmp\cxh\src\kepler\build-area\build.xml:197: The following error occurred
while executing this line:
c:\tmp\cxh\src\kepler\build-area\kepler-tasks.xml:6: Unable to delete file
c:\tmp\cxh\src\kepler\build-area\target\kepler-tasks.jar

Total time: 0 seconds
bash-3.2$ 


The problem is that Windows is a toy operating system with a toy file
system that does not allow the deletion of open files.  I think Unix 
had this solved in the 1970's :-)

I'm not sure about a workaround here, since ant is a java process and
kepler-tasks.jar is in the CLASSPATH.

If we had tests of the build system, presumably this bug would have been
caught.


More information about the Kepler-dev mailing list