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.
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">
Also see issue #17683. *** This issue has been marked as a duplicate of 15430 ***
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.
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.
Verified.