Bug 300532 - [launcher] resolve relative paths for file open
Summary: [launcher] resolve relative paths for file open
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M6   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 178927
Blocks: 4922 301030
  Show dependency tree
 
Reported: 2010-01-22 13:35 EST by Andrew Niefer CLA
Modified: 2015-03-25 05:02 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2010-01-22 13:35:50 EST
Consider a running eclipse, we want to open a file in that running eclipse.
in some directory, we invoke the launcher with --launcher.openFile and pass a relative path.

This new eclipse launcher passes the relative path to the running eclipse but that eclipse won't know how to resolve the path since its current working directory would be different.

The launcher passing off the paths will need to resolve relative paths before sending the open message.
Comment 1 Andrew Niefer CLA 2010-02-08 16:42:02 EST
This was done as part of bug 301033

Relative paths are resolved first against the current working directory and second against the eclipse program directory (this is a side effect of reusing code).