tarlog / tarlog-plugins

Automatically exported from code.google.com/p/tarlog-plugins
10 stars 5 forks source link

"Open in Command Prompt" does not work if Eclipse workspace does not reside on boot volume C #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy Eclipse workspace to drive D:
2. Open Eclipse workspace
3. Run "Open in Command Prompt" on a project folder

What is the expected output?
Command Prompt CDed to workspace folder on D: drive

What do you see instead?
Command Prompt stuck on C: drive

What version of the product are you using? On what operating system?
1.2.0

Please provide any additional information below.
Looking at the source code the problem is probably related to the way cmd.exe 
is invoked in OpenCommandPrompt.java:

Runtime.getRuntime().exec("cmd /k start cmd /k \"cd " + path + "\"")

The /D switch must be added to the cd command, i.e.:
Runtime.getRuntime().exec("cmd /k start cmd /k \"cd /D " + path + "\"")

Original issue reported on code.google.com by skra...@gmail.com on 20 Aug 2008 at 3:32

GoogleCodeExporter commented 9 years ago
Great! Thank you!
I have added this fix to 1.2.1

Original comment by tarlog on 23 Aug 2008 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by tarlog on 26 Aug 2008 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by tarlog on 13 Sep 2009 at 5:44