Bug 20932

Summary: Cannot add a source directory as the source of a JAR file.
Product: [Eclipse Project] JDT Reporter: Gary Gregory <ggregory>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ben
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Gary Gregory CLA 2002-06-25 01:56:14 EDT
Build eclipse-SDK-20020624-win32.zip.
1. Select a Jar file in the Java browser's Projects pane, for 
example "xalan.jar".
2. Right-click and choose Properties.
3. Select Java Source Attachment.
4. Select Browser File System.

You cannot choose a directory. The dialog force you to pick a ZIP or JAT file. 
Since many modules (including many Apache modules) come with a JAR for classes 
and a "src" directory, you cannot attach the dir to the JAR.

Workaround: ZIP the source dir yourself.
Comment 1 Philipe Mulet CLA 2002-06-25 05:46:27 EDT
Indeed, source folders cannot be used for source attachment. Note though that 
attached sources can be directly located inside the same JAR already containing 
binaries (not sure it helps in this case though).

Might revisit post 2.0 to allow this scenario.
Comment 2 Jerome Lanneluc CLA 2002-11-21 12:11:02 EST
Reopening
Comment 3 Jerome Lanneluc CLA 2002-11-21 12:12:37 EST

*** This bug has been marked as a duplicate of 22145 ***