Skip to content

Commit 30107bb

Browse files
committed
Added blog entry on eclipse-director.sh.
1 parent 25176b6 commit 30107bb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: blog
3+
title: Eclipse command line installation
4+
disqus: true
5+
author: Iulian Dragos
6+
7+
---
8+
9+
When working on the Scala IDE I often need to install and uninstall the Scala plugin. Sometimes I need to use the Scala trunk version, other times I need to reproduce a bug in an older version, or simply I need to change to the next nightly. Although I have several Eclipse installations, I still need to tinker with them.
10+
11+
Doing it using the UI is tedious, and requires two restarts: one when you uninstall the feature, and another one when you (re-)install the new one. On top of it, it requires clicking around -- how many times did I click Cancel instead of Continue, when faced with the *unsigned* warning? -- and in the end it can take several minutes.
12+
13+
## The Eclipse director application
14+
15+
Few people know that Eclipse can be [controlled from the command line](http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html). Features and bundles can be installed or uninstalled without firing up the UI, saving precious minutes. We have added a customized [script](https://github.com/scala-ide/scala-ide/blob/master/eclipse-director.sh) in the Scala IDE [repository](https://github.com/scala-ide/scala-ide). Here's a taste of it:
16+
17+
$ eclipse-director.sh uninstall
18+
Eclipse installation dir is /Applications/eclipse-helios-210
19+
Unnstalling..
20+
Uninstalling org.scala-ide.sdt.feature.feature.group 2.1.0.nightly-2_10-201201110534-4c40dde.
21+
!SESSION 2012-02-10 11:18:07.453
22+
[..]
23+
Operation completed in 12919 ms.
24+
25+
By default, this installs the latest nightly build of the Helium builds, for the specified Scala version(2.9.2-SNAPSHOT or trunk). You can install a different version using `--branch`, or even install from a local repository (directory on disk) using `install-local`.
26+
27+
$ eclipse-director.sh --eclipse-dir /Applications/eclipse-helios-210 install 2.9.2-SNAPSHOT
28+
Eclipse installation dir is /Applications/eclipse-helios-210
29+
Installing 2.9.2-SNAPSHOT..
30+
[..]
31+
Installing org.scala-ide.sdt.feature.feature.group 2.1.0.nightly-2_09-201202091714-4ffdd09.
32+
Operation completed in 46198 ms.
33+
34+
Yo can specify the location of your eclipse installation directory using `--eclipse-dir`.

0 commit comments

Comments
 (0)