Skip to content

Commit

Permalink
Added Marcos Oomph
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Nov 20, 2014
1 parent c6ddb5e commit eb14c97
Show file tree
Hide file tree
Showing 10 changed files with 290 additions and 5 deletions.
256 changes: 256 additions & 0 deletions Elexis-RM.setup
@@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8"?>
<setup:Project
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
xmlns:pde="http://www.eclipse.org/oomph/setup/pde/1.0"
xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
xmlns:projects="http://www.eclipse.org/oomph/setup/projects/1.0"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/setup/pde/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/PDE.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
name="elexis-rm"
label="Elexis-RM">
<setupTask
xsi:type="setup:CompoundTask"
name="Common">
<setupTask
xsi:type="jdt:JRETask"
version="JavaSE-1.7"
location="${jre.location-1.7}"/>
<setupTask
xsi:type="jdt:JRETask"
version="JavaSE-1.8"
location="${jre.location-1.8}"/>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Xmx"
value="2048m"
vm="true">
<description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup:EclipseIniTask"
option="-Doomph.redirection.elexissetup"
value="=https://raw.githubusercontent.com/ngiger/bootstrap-elexis-3/Elexis-RM.setup->${core.git.clone.location|uri}/Elexis-RM.setup"
vm="true"/>
<setupTask
xsi:type="setup:ResourceCreationTask"
excludedTriggers="STARTUP MANUAL"
content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
encoding="UTF-8">
<description>Initialize JDT's package explorer to show working sets as its root objects</description>
</setupTask>
<setupTask
xsi:type="setup:VariableTask"
name="eclipse.target.platform"
defaultValue="Luna"
storageURI="scope://Workspace"/>
</setupTask>
<setupTask
xsi:type="git:GitCloneTask"
id="core.git.clone"
remoteURI="elexis/elexis-3-core"
checkoutBranch="master">
<annotation
source="http://www.eclipse.org/oomph/setup/InducedChoices">
<detail
key="inherit">
<value>github.remoteURIs</value>
</detail>
<detail
key="label">
<value>${scope.project.label} Github repository</value>
</detail>
<detail
key="target">
<value>remoteURI</value>
</detail>
</annotation>
<description>Elexis 3 Core</description>
</setupTask>
<setupTask
xsi:type="git:GitCloneTask"
id="base.git.clone"
remoteURI="elexis/elexis-3-base"
pushURI=""
checkoutBranch="master">
<annotation
source="http://www.eclipse.org/oomph/setup/InducedChoices">
<detail
key="inherit">
<value>github.remoteURIs</value>
</detail>
<detail
key="label">
<value>${scope.project.label} Github repository</value>
</detail>
<detail
key="target">
<value>remoteURI</value>
</detail>
</annotation>
<description>Elexis 3 Base</description>
</setupTask>
<setupTask
xsi:type="setup.p2:P2Task">
<requirement
name="org.sonatype.tycho.m2e.feature.feature.group"/>
<requirement
name="org.eclipse.mylyn.github.feature.feature.group"/>
<repository
url="http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.8.0/N/LATEST/"/>
<description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup.p2:P2Task">
<requirement
name="de.guhsoft.jinto.feature.group"/>
<repository
url="http://www.guh-software.de/eclipse/"/>
<description>Install Jinto for translation of properties file</description>
</setupTask>
<setupTask
xsi:type="setup.p2:P2Task">
<requirement
name="org.eclipse.jubula.feature.feature.group"/>
<requirement
name="org.eclipse.jubula.feature.launch.rcp.feature.group"/>
<repository
url="http://download.eclipse.org/releases/luna"/>
<description>Install Support for Ruby</description>
</setupTask>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
<workingSet
name="elexis-3-core">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="ch.elexis.sdk"/>
</workingSet>
<workingSet
name="elexis-3-base">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="at.medevit.ch.artikelstamm.elexis.common"/>
</workingSet>
</setupTask>
<setupTask
xsi:type="mylyn:MylynBuildsTask"
id="srv.elexis.info.core"
serverURL="https://srv.elexis.info/jenkins/"
userID="">
<buildPlan
name="Elexis-3.0-Core"/>
<buildPlan
name="Elexis-3.0-Base"/>
</setupTask>
<setupTask
xsi:type="mylyn:MylynQueriesTask"
id="github.elexis-3-core.pullrequests"
connectorKind="githubPullRequests"
repositoryURL="https://github.com/elexis/elexis-3-core"
userID="${github.user.id}"
password="">
<query summary="core pull requests"
url="">
<attribute
key="state"
value="open::"/>
</query>
<description>elexis/elexis-3-core pull requests</description>
</setupTask>
<setupTask
xsi:type="mylyn:MylynQueriesTask"
id="github.elexis-3-base.pullrequests"
connectorKind="githubPullRequests"
repositoryURL="https://github.com/elexis/elexis-3-base"
userID="${github.user.id}"
password="">
<query summary="base pull requests">
<attribute
key="state"
value="open::"/>
</query>
<description>elexis/elexis-3-base pull requests</description>
</setupTask>
<project name="Medelexis"
label="">
<setupTask
xsi:type="git:GitCloneTask"
id="medelexis.git.clone"
remoteURI="https://git.medelexis.ch/medelexis-3.git"
pushURI="https://git.medelexis.ch/medelexis-3.git">
<description>Medelexis 3 plug-ins</description>
</setupTask>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
<workingSet
name="medelexis-3">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="ch.medelexis.releng"/>
</workingSet>
</setupTask>
<project
name="Application"
label="">
<setupTask
xsi:type="git:GitCloneTask"
id="medelexis.application.git.clone"
remoteURI="https://gitext.medelexis.ch/medelexis-3-application.git"
pushURI="https://gitext.medelexis.ch/medelexis-3-application.git">
<description>Medelexis 3 application</description>
</setupTask>
<setupTask
xsi:type="setup.workingsets:WorkingSetTask">
<workingSet
name="medelexis-3-application">
<predicate
xsi:type="predicates:RepositoryPredicate"
project="ch.medelexis.application"/>
</workingSet>
</setupTask>
<stream
name="master">
<setupTask
xsi:type="projects:ProjectsImportTask">
<sourceLocator
rootFolder="${medelexis.application.git.clone.location}"/>
</setupTask>
</stream>
<description>Core Application development setup for Medelexis</description>
</project>
<stream
name="master">
<setupTask
xsi:type="projects:ProjectsImportTask">
<sourceLocator
rootFolder="${medelexis.git.clone.location}"/>
</setupTask>
</stream>
<description>Commercially developed version of Elexis, development environment</description>
</project>
<stream name="master">
<setupTask
xsi:type="projects:ProjectsImportTask">
<sourceLocator
rootFolder="${core.git.clone.location}"/>
<sourceLocator
rootFolder="${base.git.clone.location}"/>
</setupTask>
<setupTask
xsi:type="pde:TargetPlatformTask"
id="ch.elexis.target.juno-target.target"
name="Juno for Elexis 3.0"/>
</stream>
<logicalProjectContainer
xsi:type="setup:ProjectCatalog"
href="index:/org.eclipse.setup#//@projectCatalogs[name='com.github']"/>
<description>Elektronische Praxis</description>
</setup:Project>
Binary file added images/oomp_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_7.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/oomp_8.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 34 additions & 5 deletions readme.textile
Expand Up @@ -4,7 +4,35 @@ h2. A simple way to bootstrap an Eclipse environment for Elexis 3

* *__If you are just looking for the latest builds of Elexis 3 go to the "Jenkins-CI builds for Elexis":https://srv.elexis.info/jenkins/view/3.0/job/Elexis-3.0-Core/lastSuccessfulBuild/artifact/ch.elexis.core.p2site/target/products/__*

Here you find a small ruby script bootstrap_elexis_3_env.rb which installs an Eclipse (Kepler) and a checkout of the elexis-3-core and base repositories into the current directory. This script took less than 3 minutes (depends on the download speed) in my setup.
Here I used to maintain a small ruby script which was for a few months the easiest way to setup an Elexis 3 development environment. But Marco Descher came up with a better alternative based on the Eclipse "Oomp-Installer":https://wiki.eclipse.org/Eclipse_Oomph_Installer

h3. Installation using Eclipse_Oomph_Installer

The following steps are needed:

* Download the Oomph_Installer for your platform from https://wiki.eclipse.org/Eclipse_Oomph_Installer and install into a fresh directory, eg. @/opt/oomph@
* Start ooomp, eg. @./oomph&@ and you should be greeted with something like !images/oomp_1.png! Click next
* Click on "+" in !images/oomp_2.png!
* paste either the path to Marcos @https://raw.githubusercontent.com/elexis/elexis-3-core/master/Elexis.setup@ or my @https://raw.githubusercontent.com/nger/bootstrap-elexis-3/master/Elexis-RM.setup@ (which includes Jinto, Support for Ruby and Jubula) as show !images/oomp_3.png!

* Select the @Elexis@ (or @Elexis-RM@) project and click next in
!images/oomp_4.png!
* You must fill in some values for stuff like path to installed Java7 and Java8 version, which looked in my case like this. Once you are satisfied press Nex.t
!images/oomp_5.png!
* You will be asked to review the steps. Press Next !images/oomp_6.png!
* You will see how your installation progresses, which might take a long time as it downloads something like half a gigabyte.
!images/oomp_7.png!
* You will be prompted to enter your github credentials (or the ssh-passphrase) when the checkout of Elexis-3 !images/oomp_8.png!
* Click finsh

*Missing in both setup is*

* choosing the @3lexisFormatterProfile.xml@ of the @elexis-3-core@ repository as Java Formatting style
* Allow use of an anonymous https access to github repository?

h3. Installation using a ruby script

In this repository you find a small ruby script bootstrap_elexis_3_env.rb which installs an Eclipse (Kepler) and a checkout of the elexis-3-core and base repositories into the current directory. This script took less than 3 minutes (depends on the download speed) in my setup.

Prerequisites:
* Java7. You may install a JDK from "Oracle":http://www.oracle.com/technetwork/java/javase/downloads/index.html
Expand All @@ -14,23 +42,23 @@ Steps:

* @git clone https://github.com/ngiger/bootstrap-elexis-3.git@
* @cd bootstrap-elexis-3@
* @./bootstrap_elexis_3_env.rb@ # At the end it should start the eclipse creating an empty workspace in ./workspace
* @./bootstrap_elexis_3_env.rb@ # At the end it should start the eclipse creating an empty workspace in ./workspace
** Correct your workspace settings by double clicking on the workspace-mechanic button on the lower left !mechanic_1.png!
** Apply the changes as suggested by !mechanic_2.png!
** Afterwards the button should change to Applied. !mechanic_3.png! Workspace mechanic will check regularly whether your workspace is still up to date.
** Afterwards the button should change to Applied. !mechanic_3.png! Workspace mechanic will check regularly whether your workspace is still up to date.
** (Optional) Under Help..Install new software click "Available Software sites", then click on "Import" the file @p2_sites.xml@ in the cloned bootstrap-elexis-3.
*** Select "JInto" from the drop down "Work with". Select OpenSource/Jinto.
* Select Menu/Import... Select Git/Git repositories, then Existing local repository. Click "Add" and browse to the elexis-3-core sub directory of the checkout of your cloned bootstrap-elexis-3 repository. !images/git_import_4.png! Click "Finish", then "Next". In !images/git_import_6.png! Select "Import existing projects"
* Repeat the same procedure for elexis-3-base
* In the "Package Explorer" view open ch.elexis.target/juno-target.target. Wait till the "Resolving Target Definition" task has reached 100%. Then click on "Set as Target Platform". !images/target_definition.png!
* Download the "DemoDB":http://sourceforge.net/projects/elexis/files/elexis%20full%20installation/2.1.7.0/demoDB_2_1_7_mit_Administrator.zip/download and unzip it to your $HOME/elexis directory.
* In the "Package Explorer" view, select @ch.elexis.core.application/ElexisCore.launch@ and select debug/ElexisCore in the context menu. If you are running under MacOSX, please use the (OS X) variant.
* In the "Package Explorer" view, select @ch.elexis.core.application/ElexisCore.launch@ and select debug/ElexisCore in the context menu. If you are running under MacOSX, please use the (OS X) variant.
* You will be prompted for a username and password. Enter test for both. !images/login_prompt.png!
If you have workspace-mechanic installed in your Eclipse installation, all your workspaces are regularly checked whether they have your preferredd settings. They live $INSTALL_DIR/configuration/com.google.eclipse.mechanic/mechanic, as ~/eclipse/mechanic did not work on MacOSX.

Note of June 14, 2014: As the update site for com.wdev91.eclipse.copyright vanished, I uncommented the line in bootstrap_elexis_3_env.rb.

h3. Example install log
h4. Example install log

bc. --2014-02-28 14:13:26-- http://mirror.switch.ch/eclipse/tools/buckminster/products/director_latest.zip
Auflösen des Hostnamen »mirror.switch.ch (mirror.switch.ch)«... 130.59.10.36, 2001:620:0:8::20
Expand Down Expand Up @@ -87,3 +115,4 @@ No bp log location saved, using default.
[000:000] No bp log location saved, using default.

by adding @-vmargs -Dorg.eclipse.swt.browser.DefaultType=mozilla@ to the invocation of eclipse.

0 comments on commit eb14c97

Please sign in to comment.