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 - Editing build script from prop sheet breaks formating
Summary: Editing build script from prop sheet breaks formating
Status: VERIFIED DUPLICATE of bug 15430
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: -S1S-
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 12:45 UTC by Milan Kubec
Modified: 2003-07-11 12:47 UTC (History)
0 users

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 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.