Bug 16857

Summary: Empty folder creation
Product: [Eclipse Project] JDT Reporter: Ralph Schaer <ralphschaer>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED WONTFIX QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ralph Schaer CLA 2002-05-22 11:31:08 EDT
Eclipse 2.0 Build: 20020521

1. Create Java Project
2. Enter Project Name: Test
3. Next
4. Build output folder: Test\WEB-INF\classes
5. Finish
6. Create class: Test
7. Now Eclipse creates a Test.class in Test\WEB-INF\classes
   But it also creates an empty folder Test\WEB-INF\classes\WEB-INF

I can delete the WEB-INF folder in Test\WEB-INF\classes. But every
time Eclipse compiles a class it recreates the WEB-INF folder in Test\WEB-
INF\classes
Comment 1 Kent Johnson CLA 2002-05-23 10:27:39 EDT
I realize this looks strange... but if you do not define source folders then 
the root of the project is the source folder. We start looking for .java files 
at the root and thus will look in WEB-INF for .java files (and all of its 
subfolders except 'classes'). We predefine all possible package names in the 
output folder as well as all folders which may contain additional resources to 
copy.

I suggest you define source folders if you do not want WEB-INF to show up in 
the output folder.
Comment 2 Philipe Mulet CLA 2002-06-03 07:24:19 EDT
Current behavior is acceptable. We may want to revisit this post 2.0 by only 
considering non empty java packages as true packages...
Comment 3 Philipe Mulet CLA 2002-06-03 07:24:44 EDT
Ok
Comment 4 Philipe Mulet CLA 2002-06-03 07:24:55 EDT
Verified