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 - web pages should not have SOURCE classpath
Summary: web pages should not have SOURCE classpath
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 23:53 UTC by David Konecny
Modified: 2009-11-11 08:05 UTC (History)
4 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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