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 47288 - Check integrity of nbproject before opening
Summary: Check integrity of nbproject before opening
Status: RESOLVED DUPLICATE of bug 42686
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
: 59807 (view as bug list)
Depends on: 42686 49976
Blocks: 41535
  Show dependency tree
Reported: 2004-08-17 00:00 UTC by Pavel Buzek
Modified: 2008-07-03 20:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2004-08-17 00:00:55 UTC
If the user changes or
project.xml in a way that project system does not
understand it the IDE should refuse to open the
project rather then opening it and then throwing
ecptions all the time.

Maybe even give suggestions about what properties
and/or tags in xml are wrong, but that may be too

Filing here as an umberella issue, probably needs
to be fixed in individual project types once we
decide to do it.
Comment 1 Jesse Glick 2004-08-17 00:19:24 UTC
Agreed. I plan to do something like this; maybe for 4.0, time
permitting, but might need some minor API enhancements to permit
validation against schemas stored in other modules. Most important for
freeform projects, of course.

You can already throw an IOException when loading a project if
necessary - I think this happens if project.xml is malformed (but not
if it is well-formed but invalid).

Re. describing what is wrong with a project.xml - only really relevant
for freeform; can best be handled I think by making the xml/schema
stable and productized. errors are usually less critical; for example,
missing ${src.dir} should just result in the main source dir being
Comment 2 Pavel Buzek 2004-08-17 16:14:55 UTC
FYI: I see j2se does better then web/project. I filed #747322 for
Comment 3 Jesse Glick 2004-08-17 23:55:25 UTC
What's that bug number again?
Comment 4 Pavel Buzek 2004-08-17 23:58:14 UTC
Comment 5 Jesse Glick 2004-09-11 01:03:17 UTC
No full solution available in 4.0. However I added a facility to
display messages in the Output Window in case a freeform project.xml
is invalid according to schema. That should at least cover an
important common case of manual editing of a complex format. J.J. you
may want to mention this in the freeform config guide.

committed   * Up-To-Date  1.10        ant/freeform/nbproject/project.xml
committed   * Up-To-Date  1.10       
committed   * Up-To-Date  1.27       
added       * Up-To-Date  1.1        
Comment 6 Jesse Glick 2005-06-09 22:51:55 UTC
*** Issue 59807 has been marked as a duplicate of this issue. ***
Comment 7 Martin Entlicher 2005-06-10 10:49:47 UTC
*** Issue 59814 has been marked as a duplicate of this issue. ***
Comment 8 Jesse Glick 2008-07-03 20:35:06 UTC

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