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.
Summary: | LayerGeneratingProcessor creates garbage in generated-layer.xml in incremental environment | ||
---|---|---|---|
Product: | platform | Reporter: | Jan Lahoda <jlahoda> |
Component: | Filesystems | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | A test project |
This is probably for me. Was unintentional, and happened only for the rarer case of folders being generated directly using .folder(). (In most cases <folder>s are generated indirectly using .file(), which creates intermediate parent folders as needed but does not add any comment about the origin.) core-main #ccf1426567d9 Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ccf1426567d9 User: Jesse Glick <jglick@netbeans.org> Log: #180154: do not duplicate comments after an incremental build. |
Created attachment 93764 [details] A test project [recent builds] Steps to reproduce: 1. Download the attached project, unpack, open in the IDE. 2. Build the project 3. Build tests for the project (ant test-build from the cmd. line), take a look at the generated layer at: aptest/build/test/unit/classes/META-INF/generated-layer.xml 4. Touch o.n.aptest.Test1.java, build tests again (ant test-build) 5. Check the layer. The layer contains duplicated comment referring o.n.aptest.Test1 - repeating step 4 will produce more of these comments. Although this may look like a minor problem, it may cause major problems in massively incremental environments, like NetBeans indexing. For example, the generated-layer.xml for java.hints has currently around 200KB, but I have seen a more than 3MB layer produced by the IDE.