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 143542

Summary: web pages should not have SOURCE classpath
Product: javaee Reporter: David Konecny <dkonecny>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: NEW ---    
Severity: blocker CC: issues, jpokorsky, mkleint, pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:

Description David Konecny 2008-08-11 23:53:48 UTC
Only roots which contain Java files should be returned from ClassPath.getClassPath(aFile, SOURCE). This is not true for
Web project which for project's web pages returns SOURCE type of classpath which contains both web pages and Java sources.

In offline discussion with tzezula, mkleint and ppisl we've agreed that this should be changed:
* web pages should not have any SOURCE classpath; and
* new classpath type should be introduced (e.g. WEB_SOURCES) which should return web pages but not Java sources
Such a change needs to be properly tested as it may break existing code relying on current implementation.

This problem exists since initial version of project system (NB 4.0)
Comment 1 Milos Kleint 2008-08-12 06:16:51 UTC
same applies to maven based projects