Bug 16857 - Empty folder creation
Summary: Empty folder creation
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-22 11:31 EDT by Ralph Schaer CLA
Modified: 2002-06-03 07:24 EDT (History)
0 users

See Also:


Attachments

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