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 242232 - Filter out generated sources, if BuildHelper has more precise information.
Summary: Filter out generated sources, if BuildHelper has more precise information.
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE, SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2014-02-22 21:44 UTC by lkishalmi
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed trivial patch (3.42 KB, patch)
2014-02-22 22:00 UTC, lkishalmi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description lkishalmi 2014-02-22 21:44:21 UTC
I've recently bumped into #167379 when building a Maven module using axis2 wsdl2code.

At first I thought what could happen if we check if there is an src folder under target/generated-sources/<tool> and if yes point that one as source root as it is quite unlikely that someone would use that package name.

Then I found a description mentioning BuildHelper in #167379. I could set up my project to have the correct sources as well, unfortunately the wrongly identified generated source root remained there. So I thought it would be better if it is present then we should listen on BuildHelper instead of blindly pointing every folder under generated-sources as a source root.

So if BH states that .../generated-sources/axis2/wsdl2code/src is a source root then there is no use to add one of its parents like .../generated-sources/axis2 as a source root.
Comment 1 lkishalmi 2014-02-22 22:00:40 UTC
Created attachment 145495 [details]
Proposed trivial patch

A naive but working approach to address this issue.
It also try to set the display name of the generated source according to it's parent name if the folder name is src.
Comment 2 Martin Balin 2016-07-07 08:38:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss