Bug 280740 - .classpath paths are non-portable Windows to Linux. Absolute. Not relative.
Summary: .classpath paths are non-portable Windows to Linux. Absolute. Not relative.
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL: http://www.unitedswe.com/
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-06-18 06:43 EDT by Tim Jowers CLA
Modified: 2009-08-03 10:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Jowers CLA 2009-06-18 06:43:26 EDT
Build ID: M20090211-1700

Steps To Reproduce:
1. Create a project with some dependent jars.
2. Commit to source control.
3. Open project on Windows. Notice the build paths have to be updated manually.
4. Update them manually and build.
5. Commit changes.
6. Open project on Linux or other.
7. Update to HEAD.
8. Notice it no longer builds.
9. Update manually to proper paths.
10. Build and commit fix.

Repeat ad infinitum. 


More information:
Please support relative paths for project jars.
Please use relative paths rather than absolute paths as the default.
Comment 1 Remy Suen CLA 2009-06-18 08:21:23 EDT
.classpath files are created by JDT.
Comment 2 Olivier Thomann CLA 2009-06-18 15:57:03 EDT
Could you please give details? Classpath variables should be used in this case.
Comment 3 Olivier Thomann CLA 2009-06-26 10:47:47 EDT
Are the jars within the projects?
Comment 4 Tim Jowers CLA 2009-06-26 11:12:43 EDT
No. We have several projects and had the jars one level up above those. We now have created a new directory and are using a project with just jars. I think that may be the work-around.

We used the project preferences button to "add external jars". That's where I think the path gets set to absolute rather than relative. No big deal I guess.
Comment 5 Olivier Thomann CLA 2009-06-26 11:17:01 EDT
Yes, if you use external jars, you end up with absolute paths.
You could still use a classpath variable pointing to the parent folder.
Comment 6 Olivier Thomann CLA 2009-07-16 12:20:17 EDT
The classpath variables are made to fix this kind of issues.
Is it working for you ?
Comment 7 Olivier Thomann CLA 2009-07-22 14:11:18 EDT
Closing as WORKSFORME.
Classpath variables should be used in this case. If they don't work, please let us know what the problem is.
Comment 8 Frederic Fusier CLA 2009-08-03 10:58:10 EDT
Verified for 3.6M1