The Artima Developer Community
Sponsored Link

Java Buzz Forum
Changing workspace directories in Eclipse on Mac OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ted Leung

Posts: 813
Nickname: twl
Registered: Jan, 2003

Ted Leung is principal of Sauria Associates, LLC. He is a member of the Apache Software Foundation
Changing workspace directories in Eclipse on Mac OS X Posted: Dec 24, 2003 3:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Ted Leung.
Original Post: Changing workspace directories in Eclipse on Mac OS X
Feed Title: Ted Leung on the air : computers/programming/java
Feed URL: http://www.sauria.com/blog/computers/programming/java?flav=rss
Feed Description: Ted Leung on the air: Open Source, Java, Python, and ...
Latest Java Buzz Posts
Latest Java Buzz Posts by Ted Leung
Latest Posts From Ted Leung on the air : computers/programming/java

Advertisement
Today I was playing with the Eclipse on Mac OS X, and I wanted to move the workspace directory out of the Eclipse install directory. On the Windows version of Eclipse (and I assume the Linux version), you can specify the -data flag to the Eclipse launcher to do the job. Unfortunately, this doesn't work on the Mac. I posted a query to eclipse.tools.jdt and got instructions on what to do.
You'll have to edit the Info.plist file:

- do a Control-click (or right button mouse click) on the Eclipse application
- from the context menu select "Show Package Contents"
- in the new folder double click on "Contents"
- open the file "Info.plist" with your favorite text editor
- at the end of your file (after the "Eclipse" key) change the existing
  arguments or add a new argument (enclosed in a <string> </string> pair).

Be aware that there is already a "-data" argument.

If you want to have your workspace in your home directory, you can use a '~'
character as a shortcut for your home directory.

So with the following two arguments your workspace will be created in your
Document folder:
    <string>-data</string><string>~/Documents/workspace</string>
I've been hoping that the Eclipse folks would steal a feature from IBM's Websphere Studio Application Developer, which allows you to select a workspace directory from a dialog at startup. This plist editing on the Mac is a really good reason for doing the dialog. What if I wanted to switch among a few workspace directories?

Read: Changing workspace directories in Eclipse on Mac OS X

Topic: Poll: What is Your Web Start Project of the Year 2003? Previous Topic   Next Topic Topic: Taking a trip, real benefits of open source

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use