Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Open file from command line in Mac not working
Open file from command line in Mac not working [message #754962] Sat, 05 November 2011 21:31
Matt Taylor is currently offline Matt TaylorFriend
Messages: 3
Registered: April 2011
Junior Member
Goal: From the command line open a file in eclipse.

Environment:

OSX 10.7
Eclipse Indigo Java EE bundle (3.7.1)

Expectation:

1. cd to directory eclipse is installed from.
2. run:
./eclipse --launcher.openFile notice.html
3. Eclipse opens with the file 'notice.html' open/editable

What happens:

Eclipse opens but the file isn't loaded. Sad

I explicitly want to do this from the command line, I'm NOT interested in opening the file via Finder->Open With->Choose Eclipse.app

Here is an article that seems to indicate that I should be able to do this:
aniefer.blogspot.com/2010/05/opening-files-in-eclipse-from-command.html


If there is another way to communicate with an already open eclipse to open a file that would be acceptable as well.

Eventually I'd like to use:

open //path-to-Eclipse.app --args --launcher.openFile //path-to-file

...to communicate my desire for the file to open in the current instance of the running eclipse.

But for now I'm just trying to see if there is ANY way to open a file

Anyone have any ideas?

Thanks in advance for any help/pointers Smile
Previous Topic:Saving the Project in the background without closing open dialogs
Next Topic:How reorder working sets in Eclipse Indigo?
Goto Forum:
  


Current Time: Thu Apr 25 09:18:47 GMT 2024

Powered by FUDForum. Page generated in 0.03179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top