Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367124

Summary: Rhino Debug Launcher has the same CWD as Eclipse
Product: [WebTools] JSDT Reporter: Jonas Lund <whizzter>
Component: DebugAssignee: Project Inbox <jsdt.debug-inbox>
Status: NEW --- QA Contact: Michael Rennie <Michael_Rennie>
Severity: major    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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