Bug 13744 - jar export wizard: wrong path to resource folders
Summary: jar export wizard: wrong path to resource folders
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-13 12:38 EDT by Stefan J. Morgenroth CLA
Modified: 2002-04-16 09:06 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 Stefan J. Morgenroth CLA 2002-04-13 12:38:17 EDT
Ther jar export wizard creates since last integration build 20020412 a wrong
path to the resource path of eg. images. The wizard adds a "src/" below the
image or resource path.
I have my sources in "src/" and the binaries in "bin/".
Comment 1 Dani Megert CLA 2002-04-15 11:46:53 EDT
I think it is releated to bug: 13799

Please re-check your JAR aren't the files _twice_ in the JAR once with the
correct path and once with the wrong path?

If they aren't twice, what did you check:
[ ] Export generated class ....
[ ] Export java ...
[ ] Create source folder structure
Comment 2 Stefan J. Morgenroth CLA 2002-04-15 14:11:42 EDT
> I think it is releated to bug: 13799

Don't know. The bug description is really short and like you can see 13799 is
newer than this submission.

> Please re-check your JAR aren't the files _twice_ in the JAR once with the
> correct path and once with the wrong path?

Nope. If so it should be able to load the resource files which have the right
path... It looks like this: 

jarfile.jar:

SystemEnvironment.class 314          224  13.04.2002 17:57  com\project\util\
URLReader.class       1.086          629  13.04.2002 17:57  com\project\util\
MANIFEST.MF              79           79  15.04.2002 20:12  META-INF\
icon_logo.gif   988          596  10.04.2002 18:28  src\com.project.images\
about.gif               423          393  10.04.2002 18:28 
src\com.project.images\menu\
open.gif                228          224  10.04.2002 18:28 
src\com.project.images\menu\
stop.gif                254          248  10.04.2002 18:28 
src\com.project.images\menu\


> If they aren't twice, what did you check:

[X] Export generated class files and resources
[ ] Export java source files and resources

or

[X] Export generated class files and resources
[X] Export java source files and resources

no differences

> [ ] Create source folder structure

I do not have such an option in the jar export wizard of my integration build
20020412.
Comment 3 Dani Megert CLA 2002-04-16 02:33:07 EDT
> [ ] Create source folder structure
This is on the second page but should be disabled if class files are generated.
Comment 4 Dani Megert CLA 2002-04-16 06:26:14 EDT
Moving from P1 to P2. The problem is caused by the dot(s) in the name of the
resource folder.

Will have to investigate if it is caused by the exporter itself or by the Java
Model.

Comment 5 Dani Megert CLA 2002-04-16 08:59:49 EDT
Combination of problems caused the bug. Most notably that the Java Model treats
folders with dots as non-java resources.

Fixed > 20020415 (released to todays integration build).