Git Product home page Git Product logo

install-eclipse's Introduction

Build Status

install-eclipse

Summary

non-interactive eclipse installer

Status

STABLE

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Introduction

install-eclipse is a shell script that installs eclipse in a non-interactive, automated way. As part of the workflow, the script install the Eclipse Platform Runtime Binaries and then installs additional eclipse plugin(s), if specified. The list of plugins to be installed can either be a specified via:

See Usage and Examples for more details.

Features

  • non-interactive eclipse installation, great for automated setups
  • installs only what is needed
  • ability to provide a list of plugins to be installed.
  • the plugin list can be a remote file accessible over http[s]
  • optimizes eclipse.ini [EXPERIMENTAL]

Installing

curl -k https://raw.githubusercontent.com/budhash/install-eclipse/master/install-eclipse > install-eclipse; chmod +x install-eclipse

Usage

install-eclipse [OPTIONS]... install_folder

Options:

-h                          
    show this message
    
-d <download_url>           
    download url to use. if this is not specified, 
    the download url is extracted from download site
    
-p <"repository,plugin_id">   
    information about plugin to be installed. 
    it should be in the format "repository,plugin_id"
    
-c <config_file>            
    config file containing plugin information. 
    it should be in the format "repository,plugin_id" per line
    
-f                          
    force remove existing install_folder, if it exists
    
-o                      
    optimize the eclipse.ini file [EXPERIMENTAL]

Examples

-install latest version into "eclipse" folder. without any additional plugins

./install-eclipse eclipse

-install eclipse and jdt plugin

./install-eclipse -p "http://download.eclipse.org/releases/neon,org.eclipse.jdt.feature.group" eclipse

-install eclipse, jdt plugin and testng plugin

./install-eclipse -p "http://download.eclipse.org/releases/neon,org.eclipse.jdt.feature.group" -p "http://beust.com/eclipse/,org.testng.eclipse" eclipse

-install eclipse along with plugins specified in a config file

./install-eclipse -c ./profiles/plugins.cfg eclipse

-install eclipse along with plugins specified in a remote config file

./install-eclipse -c https://raw.githubusercontent.com/budhash/install-eclipse/master/profiles/git-java-mvn.cfg eclipse

-install plugins specified without installing (in an existing installation)

./install-eclipse -n -c https://raw.githubusercontent.com/budhash/install-eclipse/master/profiles/plugins.cfg eclipse

-install eclipse and remove existing destination folder if it exists

./install-eclipse -f eclipse

-install eclipse and optimize eclipse.ini file [EXPERIMENTAL]

./install-eclipse -f -o eclipse

-complex commands

./install-eclipse -o -f -c https://raw.githubusercontent.com/budhash/install-eclipse/master/profiles/plugins.cfg -d http://mirror.cc.columbia.edu/pub/software/eclipse/eclipse/downloads/drops4/R-4.6-201606061100/eclipse-platform-4.6-macosx-cocoa-x86_64.tar.gz

-install directly without downloading/installing install-eclipse locally

bash <( curl -sk https://raw.githubusercontent.com/budhash/install-eclipse/master/install-eclipse ) -f -c https://raw.githubusercontent.com/budhash/install-eclipse/master/profiles/git-java-mvn.cfg ./eclipse

Limitations

  • This script has currently been tested on OSX 10.10, Ubuntu 12.10 with Eclipse 4.6 only.

Known Issues

Authors / Contact

budhash (at) gmail

Download

You can download this project in either zip or tar formats.

Or simply clone the project with Git by running:

git clone git://github.com/budhash/install-eclipse

Credits / References

install-eclipse's People

Contributors

budhash avatar eknoes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

install-eclipse's Issues

Could not find the eclipse folder in downloaded archive.

Hi Budhash,

Just making sure whether the below issue is something I need to take care or not..?

So I tried installing and executing the script and below is the excerpt from the output

[info]: starting installation
[info]: extracted download url [http://mirror.cc.columbia.edu/pub/software/eclipse/eclipse/downloads/drops4/R-4.6-201606061100/eclipse-platform-4.6-macosx-cocoa-x86_64.tar.gz]
[error]: sub-directory [eclipse] not found in downloaded archive

I executed the command: ./install-eclipse eclipse

Any of your suggestions are appreciated.

Thanks much,
Abhishek

FYI

Hi Budhaditya

This is just an FYI / reaching out. (I guess I could have sent email instead - feel free to close the issue...)

Anyway, I noticed not too many updates lately but still wanted to sync up with you about this project:
https://github.com/gunnarx/franca_install_automation

The intention is to rename it eclipse something automation because it installs various plugins where Franca is only one... It's relatively generic. On the other hand it is a very clumsy way to automate the installation of plugins but I don't know if there is a better way. I am looking for anything that prevents doing it manually in the GUI.

I am not sure if my project overlaps or complements your project but feel free to comment if you want.

Do you know anything more in this domain of automating eclipse and plugin installation?

Best Regards

Support for linux

would be great. When I use ./install-eclipse eclipse I get [error]: script doesn't support current operating system. supported : MAC

Couldn't install plugins due to unresolved dependencies

Hi Budha,
I'm trying your install-eclipse script cause I want to integrate it into a Dockerfile, which requires eclipse been installed silently. But when I tried it first outside a container as your example shows me:
./install-eclipse -f -d <download_addr> -c <config_file> <install_location>
I got below error information:
Cannot complete the install because one or more required items could not be found. Software being installed: C/C++ Development Tools 9.2.0.201612061315 (org.eclipse.cdt.feature.group 9.2.0.201612061315) Missing requirement: C/C++ Development Tools Debugger UI 8.1.0.201612061315 (org.eclipse.cdt.debug.ui 8.1.0.201612061315) requires 'bundle org.eclipse.ui.workbench.texteditor [3.2.0,4.0.0)' but it could not be found Cannot satisfy dependency: From: C/C++ Development Tools 9.2.0.201612061315 (org.eclipse.cdt.feature.group 9.2.0.201612061315) To: org.eclipse.cdt.gdb.feature.group [9.2.0.201612061315] Cannot satisfy dependency: From: C/C++ Common GDB Support 9.2.0.201612061315 (org.eclipse.cdt.gdb.feature.group 9.2.0.201612061315) To: org.eclipse.cdt.gdb.ui [7.0.0.201612061315] Cannot satisfy dependency: From: GDB UI Common 7.0.0.201612061315 (org.eclipse.cdt.gdb.ui 7.0.0.201612061315) To: bundle org.eclipse.cdt.debug.ui 7.0.0 Application failed, log file location: /srv/work/_eclipse/neon/configuration/1488620201341.log
Seems that user should provide <plugin_address, plugin_id> entry in plugins.cfg file in a proper order so that eclipse installer won't complain about missing required plugins? If that's the way it is then I've to say it's really hard for user to find out the right dependency relationships. Is there anyway to make life easier such as resolving the dependencies automatically? Or you're considering to provide such functionality in future version of this script?

script doesn't support current operating system. supported : MAC

The variable __SUPPORTED_OS in install-eclipse is missing the os type LINUX LINUX-REDHAT LINUX-SUSE LINUX-MANDRAKE LINUX-DEBIAN according to the condition at

if [ -f /etc/redhat-release ] ; then _os_base="LINUX-REDHAT" elif [ -f /etc/SuSE-release ] ; then _os_base="LINUX-SUSE" elif [ -f /etc/mandrake-release ] ; then _os_base="LINUX-MANDRAKE" elif [ -f /etc/debian_version ] ; then _os_base="LINUX-DEBIAN" else _os_base="LINUX"

the variable __SUPPORTED_OS needs to be modified from __SUPPORTED_OS=(MAC LINUX-DEBIAN) to
readonly __SUPPORTED_OS=(MAC LINUX-DEBIAN LINUX LINUX-REDHAT LINUX-SUSE LINUX-MANDRAKE LINUX-DEBIAN)

I don't have privilage to raise a PR, please get it fix. Thank you.

Script fails on OSX 10.8.3

install-eclipse fails when executed on OSX 10.8.3. Details below

environment: OSX 10.8.3 , Eclipse 4.3

command-line:

./install-eclipse -f -c https://raw.github.com/budhash/install-eclipse/master/profiles/svn-java-mvn.cfg ./eclipse

result:

[info]: starting installation
[info]: extracted download url [http://mirror.cc.columbia.edu/pub/software/eclipse/eclipse/downloads/drops4/R-4.3-201306052000/eclipse-platform-4.3-macosx-cocoa-x86_64.tar.gz]
usage: grep [-abcDEFGHhIiJLlmnOoPqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
    [-e pattern] [-f file] [--binary-files=value] [--color=when]
    [--context[=num]] [--directories=action] [--label] [--line-buffered]
    [--null] [pattern] [file ...]
/dev/fd/63: line 478: [: -gt: unary operator expected

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.