Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Upgrade strategies
Upgrade strategies [message #92325] Sat, 12 July 2003 01:50 Go to next message
Jeffrey Bonevich is currently offline Jeffrey Bonevich
Messages: 35
Registered: July 2009
Member
Greetings -

I wanted to share my only significant frustration with Eclipse after a
year and half of using it with the group. That is, upgrades. They are a
pain. The usual routine I find myself doing is:

(1) Download the latest release, unzip it, and drop it in a shared
directory for all my eclipse versions. Looks like this:
/
+-usr/
+-local/
+-eclipse/
|
+-eclipse
|
+-eclipse-2.0
|
+-eclipse-2.1
|
+-eclipse-2.1.1
|
+-eclipse-3.0-M1
|
+-current -> eclipse-2.1.1
|
+-features -> current/features
|
+-plugins -> current/plugins
|
+-workspace

where /usr/local/eclipse/eclipse is a shell script:
(cd /usr/local/eclipse/current; \
./eclipse -data /usr/local/eclipse/workspace &)

(2) Back-up workspace

(3) Copy plugins that I custom installed from current/plugins to the new
version's plugin directory; repeat with features

(4) rm current; ln -s eclipse-3.0-M1 current

(5) run ./eclipse and pray to god that nothing broke

Many times I have had to blow away workspace/.metadata and reconstruct
projects; sometimes have had to blow away even the .project files in
each module. Many times the plugins fail so I will have to retrieve
more recent versions. At least it forces me to keep current.

Things are getting worse now that I have multiple workspace directories
here and there.

Is anyone else manageing to make this process easier? Am I missing some
crucial thing that would simplify my life 100 times. Are there any
plans to apply the Update Manager to the core and plugins of Eclipse
itself ("Physician, heal thy self" vs "The shoemaker's children"
syndrome). I for one would love to see the latter. Netbeans at least
had it (did not always work, but hey! you take what you can get).

--
Jeffrey Bonevich
Ann Arbor, Michigan
bonevich at covad dot net
jeff at bonevich dot com
http://www.bonevich.com

"Make me a fire and I'm warm for a night. Set me
on fire and I'm warm for the rest of my life."
- Ancient Didactical Saying
Re: Upgrade strategies [message #92658 is a reply to message #92325] Sat, 12 July 2003 23:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: oshteynbuk.nyc.rr.com

You can use Ant script at
http://home.nyc.rr.com/olegs/eclipse/antscript/readme.htm

It does what you have described and a little bit more.

oleg


Jeffrey Bonevich wrote:
> Greetings -
>
> I wanted to share my only significant frustration with Eclipse after a
> year and half of using it with the group. That is, upgrades. They are a
> pain. The usual routine I find myself doing is:
>
> (1) Download the latest release, unzip it, and drop it in a shared
> directory for all my eclipse versions. Looks like this:
> /
> +-usr/
> +-local/
> +-eclipse/
> |
> +-eclipse
> |
> +-eclipse-2.0
> |
> +-eclipse-2.1
> |
> +-eclipse-2.1.1
> |
> +-eclipse-3.0-M1
> |
> +-current -> eclipse-2.1.1
> |
> +-features -> current/features
> |
> +-plugins -> current/plugins
> |
> +-workspace
>
> where /usr/local/eclipse/eclipse is a shell script:
> (cd /usr/local/eclipse/current; \
> ./eclipse -data /usr/local/eclipse/workspace &)
>
> (2) Back-up workspace
>
> (3) Copy plugins that I custom installed from current/plugins to the new
> version's plugin directory; repeat with features
>
> (4) rm current; ln -s eclipse-3.0-M1 current
>
> (5) run ./eclipse and pray to god that nothing broke
>
> Many times I have had to blow away workspace/.metadata and reconstruct
> projects; sometimes have had to blow away even the .project files in
> each module. Many times the plugins fail so I will have to retrieve
> more recent versions. At least it forces me to keep current.
>
> Things are getting worse now that I have multiple workspace directories
> here and there.
>
> Is anyone else manageing to make this process easier? Am I missing some
> crucial thing that would simplify my life 100 times. Are there any
> plans to apply the Update Manager to the core and plugins of Eclipse
> itself ("Physician, heal thy self" vs "The shoemaker's children"
> syndrome). I for one would love to see the latter. Netbeans at least
> had it (did not always work, but hey! you take what you can get).
>
Re: Upgrade strategies [message #92794 is a reply to message #92658] Sun, 13 July 2003 20:03 Go to previous messageGo to next message
Jeffrey Bonevich is currently offline Jeffrey Bonevich
Messages: 35
Registered: July 2009
Member
Oleg -

Thanx for the info. I was thinking along these lines too, glad someone
else beat me to it.

Too bad no one from the actual development/project side has responded
with an appropriate strategy that Eclipse plans to address. I will have
to locate the thread you mentioned at your site.

jeff

oleg shteynbuk wrote:
> You can use Ant script at
> http://home.nyc.rr.com/olegs/eclipse/antscript/readme.htm
>
> It does what you have described and a little bit more.
>
> oleg
>
>
> Jeffrey Bonevich wrote:
>
>> Greetings -
>>
>> I wanted to share my only significant frustration with Eclipse after a
>> year and half of using it with the group. That is, upgrades. They are
>> a pain. The usual routine I find myself doing is:
>>
>> (1) Download the latest release, unzip it, and drop it in a shared
>> directory for all my eclipse versions. Looks like this:
>> /
>> +-usr/
>> +-local/
>> +-eclipse/
>> |
>> +-eclipse
>> |
>> +-eclipse-2.0
>> |
>> +-eclipse-2.1
>> |
>> +-eclipse-2.1.1
>> |
>> +-eclipse-3.0-M1
>> |
>> +-current -> eclipse-2.1.1
>> |
>> +-features -> current/features
>> |
>> +-plugins -> current/plugins
>> |
>> +-workspace
>>
>> where /usr/local/eclipse/eclipse is a shell script:
>> (cd /usr/local/eclipse/current; \
>> ./eclipse -data /usr/local/eclipse/workspace &)
>>
>> (2) Back-up workspace
>>
>> (3) Copy plugins that I custom installed from current/plugins to the
>> new version's plugin directory; repeat with features
>>
>> (4) rm current; ln -s eclipse-3.0-M1 current
>>
>> (5) run ./eclipse and pray to god that nothing broke
>>
>> Many times I have had to blow away workspace/.metadata and reconstruct
>> projects; sometimes have had to blow away even the .project files in
>> each module. Many times the plugins fail so I will have to retrieve
>> more recent versions. At least it forces me to keep current.
>>
>> Things are getting worse now that I have multiple workspace
>> directories here and there.
>>
>> Is anyone else manageing to make this process easier? Am I missing
>> some crucial thing that would simplify my life 100 times. Are there
>> any plans to apply the Update Manager to the core and plugins of
>> Eclipse itself ("Physician, heal thy self" vs "The shoemaker's
>> children" syndrome). I for one would love to see the latter.
>> Netbeans at least had it (did not always work, but hey! you take what
>> you can get).
>>
>

--
Jeffrey Bonevich
Ann Arbor, Michigan
bonevich at covad dot net
jeff at bonevich dot com
http://www.bonevich.com

"Make me a fire and I'm warm for a night. Set me
on fire and I'm warm for the rest of my life."
- Ancient Didactical Saying
Re: Upgrade strategies [message #92854 is a reply to message #92325] Mon, 14 July 2003 08:14 Go to previous message
Eclipse User
Originally posted by: daniel.megert.gmx.net

Jeffrey Bonevich wrote:

> Greetings -
>
> I wanted to share my only significant frustration with Eclipse after a
> year and half of using it with the group. That is, upgrades. They are
> a pain.

I filed a feature request for Update Manager to allow time
stamp/non-version based updates a while ago:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=29776

This could ease updating a lot but it was closed as wontfix. I added
some comments below which might help to improve your update process a bit.

> The usual routine I find myself doing is:
>
> (1) Download the latest release, unzip it, and drop it in a shared
> directory for all my eclipse versions. Looks like this:
> /
> +-usr/
> +-local/
> +-eclipse/
> |
> +-eclipse
> |
> +-eclipse-2.0
> |
> +-eclipse-2.1
> |
> +-eclipse-2.1.1
> |
> +-eclipse-3.0-M1
> |
> +-current -> eclipse-2.1.1
> |
> +-features -> current/features
> |
> +-plugins -> current/plugins
> |
> +-workspace
>
> where /usr/local/eclipse/eclipse is a shell script:
> (cd /usr/local/eclipse/current; \
> ./eclipse -data /usr/local/eclipse/workspace &)
>
> (2) Back-up workspace
>
> (3) Copy plugins that I custom installed from current/plugins to the
> new version's plugin directory; repeat with features

1. Put all your custom plug-ins at one location outside the Eclipse
install tree (e.g. C:/eclipse/customPlugins) and keep them there.
2. Create a file called .link with the following content:
path=C:/eclipse/customPlugins
3. Create a batch file that starts eclipse but before starting, creates
a folder called "links" into the eclipse root directory and then copies
above .link file into "links" folder

NOTE: Plug-ins which you put into C:/eclipse/customPlugins must be in
eclipse/plugins, e.g.:
C:/eclipse/customPlugins/eclipse/plugins/<myCustomPlugin1>

> (4) rm current; ln -s eclipse-3.0-M1 current

Well you could leave that step away since you might want to go back to
that version and disk space is cheap anyway ;-)

> (5) run ./eclipse and pray to god that nothing broke
>
> Many times I have had to blow away workspace/.metadata and reconstruct
> projects; sometimes have had to blow away even the .project files in
> each module. Many times the plugins fail so I will have to retrieve
> more recent versions. At least it forces me to keep current.

Well I'm developing on the newest builds every week and I think the only
time when I threw my workspace away was because I decided to do so (to
get to a clean and fresh state).
There's now also a workspace restorer plug-in that should help you in
such situations.

HTH
Dani
Previous Topic:GUI locks up when running a custom made plug-in java program
Next Topic:CVS Replace with
Goto Forum:
  


Current Time: Wed Oct 22 10:01:01 GMT 2014

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

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