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.
If the user changes proejct.properties 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 much. Filing here as an umberella issue, probably needs to be fixed in individual project types once we decide to do it.
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?
sorry: http://www.netbeans.org/issues/show_bug.cgi?id=47322
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 ***