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 31210

Summary: Editing build script from prop sheet breaks formating
Product: projects Reporter: Milan Kubec <mkubec>
Component: AntAssignee: issues@projects <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Milan Kubec 2003-02-19 12:45:34 UTC
Any editing made by property sheet or adding
target, task breaks formating of first lines above
<project> elem. All separate comment lines are put
in one row and <project> element on the end.
<?xml version="1.0" encoding="UTF-8"?>
<!-- comment -->
<!-- comment -->
<!-- comment -->
<!-- comment -->
<project basedir="i" default="all" name="changeme">
...

then looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!-- comment --><!-- comment --><!-- comment
--><!-- comment --><project basedir="i"
default="all" name="changeme">
Comment 1 Jesse Glick 2003-02-19 16:35:12 UTC
Also see issue #17683.

*** This issue has been marked as a duplicate of 15430 ***
Comment 2 Milan Kubec 2003-02-19 16:42:36 UTC
I know about those issues about reformating xml, but I though that
this issue was different. It's about particular comment lines above
<project> elem. Any other independent comment elements inside the
script are not reordered.
Comment 3 Jesse Glick 2003-02-19 18:28:22 UTC
The Ant module just takes comment elements, whitespace, etc. etc. as
reported by the Xerces parser, and dumps them right back out again
using the Xerces serializer. In the case of comments and whitespace
before or after the document root element, it apparently does a bad
job. Perhaps a bug in Xerces, I don't know.
Comment 4 Milan Kubec 2003-07-11 12:47:40 UTC
Verified.