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 140640 - Define schema for ant-build-extender
Summary: Define schema for ant-build-extender
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 142309 (view as bug list)
Depends on:
Blocks: 42686
  Show dependency tree
 
Reported: 2008-07-17 22:28 UTC by Jesse Glick
Modified: 2008-07-31 07:53 UTC (History)
1 user (show)

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 Jesse Glick 2008-07-17 22:28:54 UTC
AntBuildExtender stores metadata in the namespace "http://www.netbeans.org/ns/ant-build-extender/1" but there is no
apparent schema corresponding to this format. Please define one and register it in project.ant's ProjectXMLCatalog.
Comment 1 Milos Kleint 2008-07-18 06:48:13 UTC
is the non-existence of the schema document be critical to people who open old projects in 6.5?
Comment 2 Jesse Glick 2008-07-18 20:48:35 UTC
No, it's not critical.
Comment 3 Milos Kleint 2008-07-30 09:11:19 UTC
http://hg.netbeans.org/main/rev/2006819a03b7
Comment 4 Jesse Glick 2008-07-30 13:45:53 UTC
This caused several sample modules to be considered invalid:

http://deadlock.netbeans.org/hudson/job/validate-project-xmls/639/testReport/

The reason is that you specified

<xs:element ref="extension" minOccurs="1" maxOccurs="unbounded"/>

In fact it seems that AntBuildExtender makes no attempt to call removeConfigurationFragment when the count of extensions
drops to zero. So it should probably be

<xs:element ref="extension" minOccurs="0" maxOccurs="unbounded"/>
                                       ^
Comment 5 Milos Kleint 2008-07-30 14:38:32 UTC
http://hg.netbeans.org/main/rev/f0e20f45bb1a
Comment 6 Jesse Glick 2008-07-30 14:40:07 UTC
*** Issue 142230 has been marked as a duplicate of this issue. ***
Comment 7 Quality Engineering 2008-07-31 04:08:03 UTC
Integrated into 'main-golden', available in build *200807310201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/f0e20f45bb1a
User: Milos Kleint <mkleint@netbeans.org>
Log: #140640 schema correction
Comment 8 Milos Kleint 2008-07-31 07:53:18 UTC
*** Issue 142309 has been marked as a duplicate of this issue. ***