eclipse-formula

Travis CI Build Status Semantic Release

Formula to install Eclipse on GNU/Linux and MacOS.

Configures Eclipse release & edition (default edition is java) published by the Eclipse Foundation packaging project. The following editions are supported by this formula:

  • java (formula default) = Eclipse IDE for Java

  • jee = Eclipse IDE for Java EE

  • cpp = Eclipse IDE for C/C++

  • committers = Eclipse IDE for Eclipse Committers

  • php = Eclipse for PHP

  • dsl = Eclipse for DSL

  • javascript = Eclipse for JavaScript and Web

  • modeling = Eclipse Modelling tools

  • rcp = Eclipse IDE for RCP

  • parallel = Eclipse IDE for Parallel Applications

  • testing = Eclipse for Testers

  • scout = Eclipse for Scout

The supported versions are: - R - R-incubation

1. General notes

If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.

If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning.

See Formula Versioning Section for more details.

If you need (non-default) configuration, please pay attention to the pillar.example file and/or Special notes section.

2. Contributing to this repo

Commit message formatting is significant!!

Please see How to contribute for more details.

3. Special notes

None.

4. Available states

4.1. eclipse

Meta-state (This is a state that includes other states).

This installs Eclipse package, manages Eclipse configuration file and then configures the development environment.

4.2. eclipse.archive

This state will install Eclipse from archive only.

4.3. eclipse.macapp

This state will install Eclipse from source only.

4.4. eclipse.config

This state will configure npmrc and/or environment and has a dependency on eclipse.install via include list.

4.5. eclipse.plugins

This state will install Eclipse plugins.

4.6. eclipse.developer

This state will install some Eclipse shortcuts.

4.7. eclipse.linuxenv

This state will install some Eclipse linux-alternatives on GNU/Linux.

4.8. eclipse.clean

Meta-state (This is a state that includes other states).

this state will undo everything performed in the eclipse meta-state in reverse order, i.e. removes the configuration file and then uninstalls the package.

4.9. eclipse.config.clean

This state will remove the configuration of Eclipse and has a dependency on eclipse.package.clean via include list.

4.10. eclipse.archive.clean

This state will remove Eclipse package and has a dependency on eclipse.config.clean via include list.

4.11. eclipse.macapp.clean

This state will remove Eclipse package and has a dependency on eclipse.config.clean via include list.

4.12. eclipse.plugins.clean

This state will remove Eclipse plugins.

4.13. eclipse.developer.clean

This state will remove Eclipse shortcuts.

4.14. eclipse.linuxenv.clean

This state will remove Eclipse linux-alternatives on GNU/Linux.

5. Testing

Linux testing is done with kitchen-salt.

5.1. Requirements

  • Ruby

  • Docker

$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

5.2. bin/kitchen converge

Creates the docker instance and runs the eclipse main state, ready for testing.

5.3. bin/kitchen verify

Runs the inspec tests on the actual instance.

5.4. bin/kitchen destroy

Removes the docker instance.

5.5. bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge
verify + destroy.

5.6. bin/kitchen login

Gives you SSH access to the instance for manual testing.