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.
Summary: | Check integrity of nbproject before opening | ||
---|---|---|---|
Product: | projects | Reporter: | Pavel Buzek <pbuzek> |
Component: | Ant Project | Assignee: | Milan Kubec <mkubec> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | issues, jlahoda, johnjullion |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 42686, 49976 | ||
Bug Blocks: | 41535 |
Description
Pavel Buzek
2004-08-17 00:00:55 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. project.properties errors are usually less critical; for example, missing ${src.dir} should just result in the main source dir being skipped. Thanks. FYI: I see j2se does better then web/project. I filed #747322 for web/project. What's that bug number again? 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 ant/freeform/src/org/netbeans/modules/ant/freeform/Bundle.properties committed * Up-To-Date 1.27 ant/freeform/src/org/netbeans/modules/ant/freeform/FreeformProject.java added * Up-To-Date 1.1 ant/freeform/src/org/netbeans/modules/ant/freeform/ProjectXmlValidator.java *** Issue 59807 has been marked as a duplicate of this issue. *** *** Issue 59814 has been marked as a duplicate of this issue. *** *** This issue has been marked as a duplicate of 42686 *** |