This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 234938 - build-impl.xml error
Summary: build-impl.xml error
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 13:40 UTC by unai
Modified: 2016-06-03 17:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description unai 2013-08-24 13:40:44 UTC
[ JDK VERSION : <1.7.0_21 ]

Oftentimes, when building via "Clean and build" on a big projects (which
depends on another local project, as a library) I get an error stating that the
MyOwnLibraryWhatever.jar cannot be deleted, as if a filesystem lock was on it
or something.
Sample build output:

ant -f C:\\Users\\LT\\Documents\\NetBeansProjects\\MyProject clean jar
init:
deps-clean:
Updating property file:
C:\Users\LT\Documents\NetBeansProjects\MyProject\build\built-clean.properties
MyOwnLibraryWhatever.init:
MyOwnLibraryWhatever.deps-clean:
Updating property file:
C:\Users\LT\Documents\NetBeansProjects\MyProject\build\built-clean.properties
Deleting directory
C:\Users\LT\Documents\NetBeansProjects\MyOwnLibraryWhatever\build
C:\Users\LT\Documents\NetBeansProjects\MyProject\nbproject\build-impl.xml:1396:
The following error occurred while executing this line:
C:\Users\LT\Documents\NetBeansProjects\MyProject\nbproject\build-impl.xml:1432:
The following error occurred while executing this line:
C:\Users\LT\Documents\NetBeansProjects\MyProject\nbproject\build-impl.xml:1385:
Unable to delete file
C:\Users\LT\Documents\NetBeansProjects\MyOwnLibraryWhatever\dist\MyOwnLibraryWha
tever.jar
BUILD FAILED (total time: 0 seconds)

Insisting, i.e. keeping repeating the Clean and Build action again, for a few
(3 or 4) times, will eventually result in a successful build (or simply waiting
long enough for this "lock" to be released).
Comment 1 Tomas Zezula 2013-08-29 12:59:22 UTC
Seems a file locking problem on Windows.
Comment 2 Tomas Zezula 2016-06-03 17:06:32 UTC
Fixed jet-main 2f4bac15b236