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 257195 - Netbeans 8.1 Clean and Build Loses File Updates
Summary: Netbeans 8.1 Clean and Build Loses File Updates
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: thilinajava
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-17 15:46 UTC by geodepe
Modified: 2017-01-04 03:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nto (1.59 MB, patch)
2017-01-04 03:56 UTC, thilinajava
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description geodepe 2015-12-17 15:46:09 UTC
Working on Java JSP JSTL Web Application.

Things have been working fine for several weeks.

Last couple of days, I can not make proper build.

When I make changes to a file and press save the browser shows the changes.

But when I press Clean and Build to get my dist/WAR updated, it fails to build
with
Deleting directory C:\Users\gdd030\Documents\NetBeansProjects\FieldNotifications\build
C:\Users\gdd030\Documents\NetBeansProjects\FieldNotifications\nbproject\build-impl.xml:1433: Unable to delete file C:\Users\gdd030\Documents\NetBeansProjects\FieldNotifications\build\web\WEB-INF\lib\eclipselink.jar
BUILD FAILED (total time: 3 seconds)

I then press the Build button, and netbeans creates the new WAR file with the current date, but the file changes are lost.

Building jar: C:\Users\gdd030\Documents\NetBeansProjects\FieldNotifications\dist\FieldNotifications.war
do-dist:
dist:
BUILD SUCCESSFUL (total time: 1 second)

I checked the History tab and saw that there was a datetime where the changes are correct, but the current version has lost changes. 

I rebooted and now the History does not show the changes anymore and the date is older.

Not sure what to do.

I don't know if this is because of the failed build trying to remove the eclipselink.jar and I don't know how the eclipselink.jar got in my lib directory. Should I get rid of it manually?
Comment 1 geodepe 2015-12-17 20:40:57 UTC
I unchecked 'Compile on Save' option in project properties -> build -> compiling.

It seems to be working now i.e it is not losing my changes and I was able to post to server. 

I still am concerned about the issue. I lost many hours re-working code because of this problem.
Comment 2 thilinajava 2017-01-04 03:56:57 UTC
Created attachment 163334 [details]
nto