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 55149 - project metadata rewritten whenever project is opened
Summary: project metadata rewritten whenever project is opened
Status: RESOLVED DUPLICATE of bug 56611
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 17:50 UTC by athompson
Modified: 2005-03-19 16:53 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 athompson 2005-02-17 17:50:47 UTC
jdk-1.5
win2k
daily 20040214
cvs

1. create a web project with existing sources
2! restart the IDE. the 'build.xml',
'build-impl.xml', 'genfiles.properties', and
'project.xml' files are rewritten even if there
are no changes.

this is EXTREMELY irritating if you're working
with a VCS system. it makes it difficult to know
if there are any actual changes that need to be
checked in. i think P2 because of this. workaround
is to manually do a 'status' command on your
project folder if your VCS system supports this.
Comment 1 zikmund 2005-02-17 18:09:54 UTC
BTW: build-impl.xml will be rewritten on each Build. Other files
should be rewritten only on OK in project's properties.
Comment 2 athompson 2005-02-17 18:39:16 UTC
as far as build-impl.xml is concerned, can you just set the VCS system
to ignore it?
Comment 3 Pavel Buzek 2005-02-18 16:02:48 UTC
The build-impl.xml is intentionally not set as ignored file because
you need it to build the project. If there is a user w/o IDE, she can
still check out and build if you have build-impl.xml in vcs. If you
disagree, file a bug for projects module and mention this issue.

Because the build-impl.xml will be updated anyway I do not see this as
a P2. J2SE project is not modified when saved so this must be a
problem in web/project.
Comment 4 athompson 2005-02-18 17:19:07 UTC
three possible ways to fix this 'build-impl.xml' thing, in order of
desirability. hopefully one is feasable:

1. only recreate the 'build-impl.xml' file if the timestamp on the
other project files is newer, the file is missing, or when project
properties are changed.

2. create the new 'build-impl.xml' file with a different name. then,
you can diff the old and new files and if they are the same, delete
the new one. if different, delete the old and rename the new.

3. notify the VCS system that it needs to refresh the file. this is
least desirable because the user may be using external version control.
Comment 5 athompson 2005-03-02 16:21:08 UTC
will this be addressed for 4.1? it's very annoying...
Comment 6 Pavel Buzek 2005-03-19 16:53:13 UTC
Marking as a duplicate of issue 56611 (because that one is a P2). The core issue
is saving web project if there are no changes, the regeneration of
build-impl.xml is a consequence of that.

*** This issue has been marked as a duplicate of 56611 ***