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 180154 - LayerGeneratingProcessor creates garbage in generated-layer.xml in incremental environment
Summary: LayerGeneratingProcessor creates garbage in generated-layer.xml in incrementa...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 08:33 UTC by Jan Lahoda
Modified: 2010-02-03 21:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A test project (6.95 KB, application/octet-stream)
2010-02-02 08:33 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-02-02 08:33:29 UTC
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.
Comment 1 Jesse Glick 2010-02-02 09:43:55 UTC
This is probably for me.
Comment 2 Jesse Glick 2010-02-03 13:31:04 UTC
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
Comment 3 Quality Engineering 2010-02-03 21:54:04 UTC
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.