Bug 5520 - Class files which are source not shown
Summary: Class files which are source not shown
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P5 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 5583
Blocks:
  Show dependency tree
 
Reported: 2001-11-05 05:06 EST by Dani Megert CLA
Modified: 2003-01-17 07:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2001-11-05 05:06:04 EST
Build 20011101

Class files in source folders (assuming source folder project setup) should be 
treated as source and hence be visible.

The problem appears in the Packages view and the JAR exporter
Comment 1 Dirk Baeumer CLA 2002-01-08 09:46:33 EST
What are we doing in a setup where the output folder == source folder and the 
source folder contains additional class files. Do we show all class files. I 
would be suprised to see all class files. I think as long as we don't know 
which class file have been created we should stick to the current 
implementation.
Comment 2 Dani Megert CLA 2002-01-08 11:38:10 EST
Agree. I thought that it is not possible to declare a source folder as output
folder.
Comment 3 Dirk Baeumer CLA 2002-01-09 04:32:54 EST
Should be reconsidered when core supports tagging of compiler generated files
Comment 4 Dirk Baeumer CLA 2002-07-25 13:55:10 EDT
Philippe, now that we can tag compiler generated files are you thinking about 
only filtering those class files in the Java Model which are compiler 
generated. This would give use "easy" access to these class files. Then the 
package explorer would show them as normal resources.
Comment 5 Dirk Baeumer CLA 2002-07-25 13:55:43 EDT
Moving to Core for commenting
Comment 6 Philipe Mulet CLA 2002-09-13 04:59:43 EDT
Sounds a good idea, however this would break the rule telling a source folder 
only cares about sources. 
Maybe we should rather support allowing to map a library folder onto it, and 
have library folders ignore generated files (optionally).
Comment 7 Philipe Mulet CLA 2002-09-18 07:45:49 EDT
I'd rather vote for informing the user when this occurs (marker?) and encourage 
to use a library folder instead.
Comment 8 Philipe Mulet CLA 2002-09-25 05:25:53 EDT
Kent = what about flagging those as we build ? Like we do for duplicate 
resources, we could have a new "ignored classfile located in source folder" 
warning (I'm sure you'll find a better wording for it).
Comment 9 Kent Johnson CLA 2002-09-25 10:59:54 EDT
The builder does not look for .class files inside a source folder unless the 
output folder is the same as one of the source folders... then we only see 
the 'extra' .class files inside the output folder if/when they're needed by the 
compiler.

I'm not in favour of searching for additional .class files inside every source 
folder and everyone of its package folders. Its a waste of time.

FYI: Core is investigating moving the output folder outside the project's 
directory structure. Changing the source/output folder separation issue now 
increases the complexity of the problem.
Comment 10 Philipe Mulet CLA 2003-01-17 07:27:55 EST
Closing, won't change