Home » Eclipse Projects » Eclipse Platform » workspace on MacOS X
workspace on MacOS X [message #88826] |
Fri, 04 July 2003 04:57  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #89869 is a reply to message #89781] |
Mon, 07 July 2003 04:21   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Tue Jul 22 02:48:20 EDT 2025
Powered by FUDForum. Page generated in 0.09242 seconds
|