Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@indrat
Created December 23, 2011 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indrat/1513071 to your computer and use it in GitHub Desktop.
Save indrat/1513071 to your computer and use it in GitHub Desktop.
run the p2 director to install features into a local eclipse
#!/bin/bash
# eclipse
repoUrls=http://download.eclipse.org/releases/indigo,http://download.eclipse.org/eclipse/updates/3.7,http://download.eclipse.org/eclipse/updates/3.6,http://download.eclipse.org/eclipse/updates/3.5,http://download.eclipse.org/eclipse/updates/3.4
repoUrls=$repoUrls,http://www.eclipse.org/modeling/emf/updates/,http://download.eclipse.org/modeling/emf/updates/releases/
repoUrls=$repoUrls,http://download.eclipse.org/birt/update-site/2.6
repoUrls=$repoUrls,http://download.eclipse.org/webtools/repository/indigo
repoUrls=$repoUrls,http://download.eclipse.org/tools/gef/updates/releases/
repoUrls=$repoUrls,http://download.eclipse.org/technology/dltk/updates
repoUrls=$repoUrls,http://download.eclipse.org/tools/cdt/releases/indigo
#scala
#repoUrls=$repoUrls,http://download.scala-ide.org/nightly-update-wip-exp-backport-2.8.1.final
repoUrls=$repoUrls,http://download.scala-ide.org/releases-29/stable/site
features=org.scala-ide.sdt.feature.feature.group,org.scala-ide.sdt.weaving.feature.feature.group,org.scala-ide.sdt.source.feature.feature.group
#http://download.scala-ide.org/releases/2.0.0-beta
# pydev
repoUrls=$repoUrls,http://pydev.org/updates
features=$features,org.python.pydev.feature.feature.group,org.python.pydev.mylyn.feature.feature.group
#groovy
#features=$features,org.codehaus.groovy.eclipse.feature.feature.group
#glance
repoUrls=$repoUrls,http://eclipse-glance.googlecode.com/svn/site
features=$features,com.xored.glance.ui.feature.feature.group
# mechanic
repoUrls=$repoUrls,http://workspacemechanic.eclipselabs.org.codespot.com/git.update/mechanic
features=$features,com.google.eclipse.mechanic.feature.group
# m2eclipse
#repoUrls=$repoUrls,http://m2eclipse.sonatype.org/sites/m2e,http://m2eclipse.sonatype.org/sites/m2e-extras
repoUrls=$repoUrls,http://download.eclipse.org/technology/m2e/releases
#features=$features,org.maven.ide.eclipse.feature.feature.group,org.maven.ide.eclipse.subclipse.feature.feature.group,org.sonatype.tycho.m2e.feature.feature.group
features=$features,org.eclipse.m2e.feature.feature.group,org.eclipse.m2e.logback.feature.feature.group
# subclipse
repoUrls=$repoUrls,http://subclipse.tigris.org/update_1.6.x
features=$features,com.collabnet.subversion.merge.feature.feature.group,com.sun.jna.feature.group,org.tigris.subversion.clientadapter.feature.feature.group,org.tigris.subversion.clientadapter.javahl.feature.feature.group,org.tigris.subversion.clientadapter.svnkit.feature.feature.group,org.tigris.subversion.subclipse.feature.group,org.tigris.subversion.subclipse.graph.feature.feature.group,org.tigris.subversion.subclipse.mylyn.feature.group,org.tmatesoft.svnkit.feature.group
# egit
repoUrls=$repoUrls,http://download.eclipse.org/egit/updates
features=$features,org.eclipse.egit.feature.group,org.eclipse.jgit.feature.group
# mercurial
repoUrls=$repoUrls,http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable
features=$features,mercurialeclipse.feature.group
# dltk
features=$features,org.eclipse.dltk.core.feature.group
# ruby
features=$features,org.eclipse.dltk.ruby.feature.group
# geppetto
repoUrls=$repoUrls,http://download.cloudsmith.com/geppetto/updates
features=$features,org.cloudsmith.geppetto.feature.group
# mylyn
#repoUrls=$repoUrls,http://download.eclipse.org/tools/mylyn/update/e3.4
repoUrls=$repoUrls,http://download.eclipse.org/mylyn/releases/latest
features=$features,org.eclipse.mylyn.builds.feature.group,org.eclipse.mylyn.commons.feature.group,org.eclipse.mylyn.context_feature.feature.group,org.eclipse.mylyn.git.feature.group,org.eclipse.mylyn.htmltext.feature.group,org.eclipse.mylyn.hudson.feature.group,org.eclipse.mylyn.ide_feature.feature.group,org.eclipse.mylyn.java_feature.feature.group,org.eclipse.mylyn.pde_feature.feature.group,org.eclipse.mylyn.team_feature.feature.group,org.eclipse.mylyn.trac_feature.feature.group,org.eclipse.mylyn.versions.feature.group,org.eclipse.mylyn.wikitext_feature.feature.group,org.eclipse.mylyn_feature.feature.group
repoUrls=$repoUrls,http://update.atlassian.com/atlassian-eclipse-plugin/e3.7
features=$features,com.atlassian.connector.eclipse.jira.feature.group,com.atlassian.connector.eclipse.subclipse.feature.group,com.atlassian.connector.eclipse.feature.group
# regex tester
repoUrls=$repoUrls,http://regex-util.sourceforge.net/update/
features=$features,com.ess.regexutil.feature.group
# anyedit tools
repoUrls=$repoUrls,http://andrei.gmxhome.de/eclipse/
features=$features,AnyEditTools.feature.group,EclipseSkins.feature.group
# spring tools
#repoUrls=$repoUrls,http://dist.springsource.com/release/TOOLS/update/e3.6
repoUrls=$repoUrls,http://dist.springsource.com/release/TOOLS/update/e3.7
#features=$features,org.springframework.ide.eclipse.aop.feature.feature.group,org.springframework.ide.eclipse.autowire.feature.feature.group,org.springframework.ide.eclipse.batch.feature.feature.group,org.springframework.ide.eclipse.feature.feature.group,org.springframework.ide.eclipse.integration.feature.feature.group,org.springframework.ide.eclipse.mylyn.feature.feature.group,org.springframework.ide.eclipse.osgi.feature.feature.group,org.springframework.ide.eclipse.security.feature.feature.group,org.springframework.ide.eclipse.webflow.feature.feature.group
features=$features,org.springframework.ide.eclipse.aop.feature.feature.group,org.springframework.ide.eclipse.autowire.feature.feature.group,org.springframework.ide.eclipse.feature.feature.group,org.springframework.ide.eclipse.integration.feature.feature.group,org.springframework.ide.eclipse.mylyn.feature.feature.group,org.springframework.ide.eclipse.osgi.feature.feature.group,org.springframework.ide.eclipse.security.feature.feature.group,org.springframework.ide.eclipse.uaa.feature.feature.group,org.springframework.ide.eclipse.webflow.feature.feature.group
# mat
repoUrls=$repoUrls,http://download.eclipse.org/mat/1.0/update-site/
#features=$features,org.eclipse.mat.chart.feature.feature.group,org.eclipse.mat.feature.feature.group
# eclipse color theme
features=$features,com.github.eclipsecolortheme.feature.feature.group
repoUrls=$repoUrls,http://eclipse-color-theme.github.com/update/
# ShellEd
#repoUrls=$repoUrls,http://download.eclipse.org/technology/linuxtools/updates-nightly/,http://akurtakov.fedorapeople.org/shelled/updates/
#features=$features,org.eclipse.linuxtools.man,net.sourceforge.shelled.feature.group
destEclipse=`pwd`/eclipse
echo $destEclipse
echo $features
../eclipse/eclipse \
-nosplash \
-application org.eclipse.equinox.p2.director \
-repository $repoUrls \
-installIU $features \
-destination $destEclipse \
-roaming \
-p2.os linux -p2.ws gtk -p2.arch x86_64 \
-profile epp.package.jee
# to get builds for the other platforms
#-p2.os win32 -p2.ws win32 -p2.arch x86 \
#-p2.os linux -p2.ws gtk -p2.arch x86_64 \
#-p2.os macosx -p2.ws cocoa -p2.arch x86_64 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment