Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » workspace on MacOS X
workspace on MacOS X [message #88826] Fri, 04 July 2003 04:57 Go to next message
Eclipse UserFriend
Originally posted by: stessaris.yahoo.co.uk

I got a couple of questions related to the location of Eclipse workspace
on MacOS X platform.

1) I didn't find any way of specifying an alternative path for the
workspace, which is created by
default in the installation directory of Eclipse. This is obviously less
than ideal, especially on
computers with multiple users. Is there any way of changing this behaviour?

2) For my development I use two different boxes, a MacOS X and a Linux,
and I'd like to share the
workspace between the two computers. Usually I use a tool called unison
(http://
www.cis.upenn.edu/~bcpierce/unison/) to keep the filesystems in sync. My
question is, can I do
it with the Eclipse workspaces? I assume that I must avoid the sync of the
toplevel .metadata
directory which seems to contain platform specific information, but is the
rest safe to sync?

Thanks in advance for any help or suggestion.

Cheers,
--sergio
Re: workspace on MacOS X [message #88956 is a reply to message #88826] Fri, 04 July 2003 07:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 4.7.2003 10:57 Uhr, in article be3fi1$bm3$1@rogue.oti.com, "Sergio
Tessaris" <stessaris@yahoo.co.uk> wrote:

> I got a couple of questions related to the location of Eclipse workspace
> on MacOS X platform.
>
> 1) I didn't find any way of specifying an alternative path for the
> workspace, which is created by
> default in the installation directory of Eclipse. This is obviously less
> than ideal, especially on
> computers with multiple users. Is there any way of changing this behaviour?

Right now the only way change the workspace location is by opening the
Info.plist file in the Eclipse application bundle: open the context menu on
the Eclipse application, select "Show Package Contents", drill down to
Contents, open Info.plist in your favorite text editor.
At the end of the file you find an entry "Eclipse" followed by
and array of strings. These strings are the command line arguments passed to
Eclipse on startup. Argument "-data" specifies the location of the
workspace. Change the following argument "workspace" to any relative or
absolute pathname. You can use the tilde character (~) to specify a path
relative to a user's home directory. So with ~/Documents/workspace the
workspace is created in the user's document folder.

>
> 2) For my development I use two different boxes, a MacOS X and a Linux,
> and I'd like to share the
> workspace between the two computers. Usually I use a tool called unison
> (http://
> www.cis.upenn.edu/~bcpierce/unison/) to keep the filesystems in sync. My
> question is, can I do
> it with the Eclipse workspaces? I assume that I must avoid the sync of the
> toplevel .metadata
> directory which seems to contain platform specific information, but is the
> rest safe to sync?

Synchronizing two workspaces is most easily done with Eclipse's builtin CVS
support. I don't know unison, but CVS support in Eclipse "knows" what files
need to be copied so it does not copy files which cannot be shared like
..class files or .CVS directories etc.

--andre
Re: workspace on MacOS X [message #89104 is a reply to message #88956] Fri, 04 July 2003 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stessaris.yahoo.co.uk

Andre, thank you for your prompt answer. Unfortunately, modifying the
Info.plist doesn't solve the problem, because the string is interpreted
literally instead of shell-like. This means than the value
"~/Documents/workspace" makes the workspace in (my case)
"/Applications/eclipse/~/Documents/workspace" :o(. I also tried to use
the $HOME variable without any success.

Cheers,
--sergio

Andre Weinand wrote:
> On 4.7.2003 10:57 Uhr, in article be3fi1$bm3$1@rogue.oti.com, "Sergio
> Tessaris" <stessaris@yahoo.co.uk> wrote:
>
>
>>I got a couple of questions related to the location of Eclipse workspace
>>on MacOS X platform.
>>
>>1) I didn't find any way of specifying an alternative path for the
>>workspace, which is created by
>>default in the installation directory of Eclipse. This is obviously less
>>than ideal, especially on
>>computers with multiple users. Is there any way of changing this behaviour?
>
>
> Right now the only way change the workspace location is by opening the
> Info.plist file in the Eclipse application bundle: open the context menu on
> the Eclipse application, select "Show Package Contents", drill down to
> Contents, open Info.plist in your favorite text editor.
> At the end of the file you find an entry "Eclipse" followed by
> and array of strings. These strings are the command line arguments passed to
> Eclipse on startup. Argument "-data" specifies the location of the
> workspace. Change the following argument "workspace" to any relative or
> absolute pathname. You can use the tilde character (~) to specify a path
> relative to a user's home directory. So with ~/Documents/workspace the
> workspace is created in the user's document folder.
>
>
>>2) For my development I use two different boxes, a MacOS X and a Linux,
>>and I'd like to share the
>>workspace between the two computers. Usually I use a tool called unison
>>(http://
>>www.cis.upenn.edu/~bcpierce/unison/) to keep the filesystems in sync. My
>>question is, can I do
>>it with the Eclipse workspaces? I assume that I must avoid the sync of the
>>toplevel .metadata
>>directory which seems to contain platform specific information, but is the
>>rest safe to sync?
>
>
> Synchronizing two workspaces is most easily done with Eclipse's builtin CVS
> support. I don't know unison, but CVS support in Eclipse "knows" what files
> need to be copied so it does not copy files which cannot be shared like
> .class files or .CVS directories etc.
>
> --andre
>
Re: workspace on MacOS X [message #89340 is a reply to message #89104] Fri, 04 July 2003 17:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 4.7.2003 16:48 Uhr, in article be4471$rbm$1@rogue.oti.com, "Sergio
Tessaris" <stessaris@yahoo.co.uk> wrote:

> Andre, thank you for your prompt answer. Unfortunately, modifying the
> Info.plist doesn't solve the problem, because the string is interpreted
> literally instead of shell-like. This means than the value
> "~/Documents/workspace" makes the workspace in (my case)
> "/Applications/eclipse/~/Documents/workspace" :o(. I also tried to use
> the $HOME variable without any success.

What version of Eclipse are you using?
Tilde expansion requires Eclipse 3.0.
--andre
Re: workspace on MacOS X [message #89648 is a reply to message #89340] Sun, 06 July 2003 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ridesmet.FAKE.users.sourceforge.net

In article <BB2BBF56.1C6DF%Andre_Weinand@oti.com>,
Andre Weinand <Andre_Weinand@oti.com> wrote:

> What version of Eclipse are you using?
> Tilde expansion requires Eclipse 3.0.

This also worked on a nightly build post 2.1. It no longer works on
2.1.1. If I look at the Info.plist from the 2.1.1 build, I see the Java
key again instead of the Eclipse key where tilde expansion worked. Am I
wrong to state that this should have to work in 2.1.1 too?

Ringo
Re: workspace on MacOS X [message #89781 is a reply to message #89340] Mon, 07 July 2003 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stessaris.yahoo.co.uk

Andre Weinand wrote:
> On 4.7.2003 16:48 Uhr, in article be4471$rbm$1@rogue.oti.com, "Sergio
> Tessaris" <stessaris@yahoo.co.uk> wrote:
>
>
>>Andre, thank you for your prompt answer. Unfortunately, modifying the
>>Info.plist doesn't solve the problem, because the string is interpreted
>>literally instead of shell-like. This means than the value
>>"~/Documents/workspace" makes the workspace in (my case)
>>"/Applications/eclipse/~/Documents/workspace" :o(. I also tried to use
>>the $HOME variable without any success.
>
>
> What version of Eclipse are you using?
> Tilde expansion requires Eclipse 3.0.
> --andre

Well, I'm using 2.1.0... this explains. Can I upgrade to 3.0 and use the
plugins developed for 2.1 or it's not "safe"?

Anyway, I'll give a go to the 3.0.

Thanks,
--sergio
Re: workspace on MacOS X [message #89827 is a reply to message #89648] Mon, 07 July 2003 04:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 6.7.2003 21:32 Uhr, in article
ridesmet-97C73B.21323906072003@eclipse.org, "Ringo De Smet"
<ridesmet@FAKE.users.sourceforge.net> wrote:

> In article <BB2BBF56.1C6DF%Andre_Weinand@oti.com>,
> Andre Weinand <Andre_Weinand@oti.com> wrote:
>
>> What version of Eclipse are you using?
>> Tilde expansion requires Eclipse 3.0.
>
> This also worked on a nightly build post 2.1. It no longer works on
> 2.1.1. If I look at the Info.plist from the 2.1.1 build, I see the Java
> key again instead of the Eclipse key where tilde expansion worked. Am I
> wrong to state that this should have to work in 2.1.1 too?

Yes, I added that feature right after the 2.1 release when fixing the
Install/Update mechanism (for the 3.0 stream).
It hasn't been ported to the maintenance stream 2.1.1 because I considered
the Install/Update fix "too high risk".

--andre
Re: workspace on MacOS X [message #89869 is a reply to message #89781] Mon, 07 July 2003 04:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 7.7.2003 9:48 Uhr, in article beb8k1$tr7$1@eclipse.org, "Sergio Tessaris"
<stessaris@yahoo.co.uk> wrote:

>
>
> Andre Weinand wrote:
>> On 4.7.2003 16:48 Uhr, in article be4471$rbm$1@rogue.oti.com, "Sergio
>> Tessaris" <stessaris@yahoo.co.uk> wrote:
>>
>>
>>> Andre, thank you for your prompt answer. Unfortunately, modifying the
>>> Info.plist doesn't solve the problem, because the string is interpreted
>>> literally instead of shell-like. This means than the value
>>> "~/Documents/workspace" makes the workspace in (my case)
>>> "/Applications/eclipse/~/Documents/workspace" :o(. I also tried to use
>>> the $HOME variable without any success.
>>
>>
>> What version of Eclipse are you using?
>> Tilde expansion requires Eclipse 3.0.
>> --andre
>
> Well, I'm using 2.1.0... this explains. Can I upgrade to 3.0 and use the
> plugins developed for 2.1 or it's not "safe"?

Chances are high that this will work.
I would use the integration build I20030625 (instead of 3.0 M1 which had a
couple of problems). I'm using I20030625 for daily work without problems.

However, to be safe, you should make a copy of the workspace and use that
with I20030625 (plus any of your additional plugins). If there is a problem,
you can always go back to your original workspace.

[Please note, you don't have to switch to 3.0 just for becoming able to
change the workspace location. You could always set the "-data" argument in
the Info.plist file. Just tilde-expansions works only in the 3.0 stream.]

--andre
Re: workspace on MacOS X [message #90051 is a reply to message #89827] Mon, 07 July 2003 13:21 Go to previous message
Eclipse UserFriend
Originally posted by: ridesmet.FAKE.users.sourceforge.net

In article <BB2EF80B.1C731%Andre_Weinand@oti.com>,
Andre Weinand <Andre_Weinand@oti.com> wrote:

> Yes, I added that feature right after the 2.1 release when fixing the
> Install/Update mechanism (for the 3.0 stream).
> It hasn't been ported to the maintenance stream 2.1.1 because I considered
> the Install/Update fix "too high risk".

Well, I just installed that integration build you mentioned in another
post within this thread, and I must say that the performance
improvements against the 2.1 release are *huge*! :-)

I can only say that you (and all the other Carbon SWT committers) have
done a magnificent job!

Tnx,

Ringo
Previous Topic:TreeViewer big icon
Next Topic:Plugin with debugger support
Goto Forum:
  


Current Time: Tue Jul 22 02:53:21 EDT 2025

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

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

Back to the top