Bug 20932 - Cannot add a source directory as the source of a JAR file.
Summary: Cannot add a source directory as the source of a JAR file.
Status: RESOLVED DUPLICATE of bug 22145
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-25 01:56 EDT by Gary Gregory CLA
Modified: 2002-11-21 12:12 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 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 ***