Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367124 - Rhino Debug Launcher has the same CWD as Eclipse
Summary: Rhino Debug Launcher has the same CWD as Eclipse
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 14:48 EST by Jonas Lund CLA
Modified: 2012-01-10 14:46 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 Jonas Lund CLA 2011-12-19 14:48:33 EST
When the Rhino Debug Launcher invokes a script the current working directory is the working directory of Eclipse, so invoking f.ex. load("scriptname.js") will fail to load another script in the same directory as the originating script, also loading other resources will fail (same again.. the current working directory is eclipse's and not the invoking script or project).

Suggested solution: The Java launcher has an option in the arguments tab where one can select the default working directory ${workspace_loc:PROJECTNAME} or specify a custom working directory. Mimicing this behaviour of the Java Launcher would be highly recommended since it works very well.
Comment 1 Michael Rennie CLA 2012-01-10 14:46:50 EST
(In reply to comment #0)
> Suggested solution: The Java launcher has an option in the arguments tab where
> one can select the default working directory ${workspace_loc:PROJECTNAME} or
> specify a custom working directory. Mimicing this behaviour of the Java
> Launcher would be highly recommended since it works very well.

I agree it would be helpful to be able to specify the working directory. In the meantime if you are using the 'Rhino JavaScript' launcher you can always specify the scripts / folder on the 'Include' tab