Kai Weber 5c49a42448 Use '>|' to write var/ status files
Setting 'noclobber' in bash or zsh prevents writing to an existing
regular file when using > as redirecting operator. Setting 'noclobber' allows
users of interactive shells to prevent accidential overwriting of
existing files.

bash and zsh allow to use >| as redirection operator so that the
redirection is attempted.

Because the write to the status files is required and not by accident
the >| is used in those cases.
2018-09-14 13:33:31 +01:00
2017-10-31 09:37:48 +00:00
2018-06-17 22:40:53 +01:00
2018-09-14 13:33:31 +01:00
2018-01-30 18:11:08 +00:00
2018-07-14 17:37:36 +01:00
2016-11-14 21:14:48 +00:00
2017-03-25 16:07:15 +00:00
2017-08-26 11:51:44 +01:00
2018-06-02 15:00:35 +01:00

SDKMAN! CLI

The Software Development Kit Manager Command Line Interface

Build Status Latest Version Gitter

SDKMAN is a tool for managing parallel Versions of multiple Software Development Kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates.

See documentation on the SDKMAN! website.

Installation

Open your favourite terminal and enter the following:

$ curl -s https://get.sdkman.io | bash

If the environment needs tweaking for SDKMAN to be installed, the installer will prompt you accordingly and ask you to restart.

Running the Cucumber Features

All SDKMAN's BDD tests describing the CLI behaviour are written in Cucumber and can be found under src/test/cucumber/sdkman. These can be run with Gradle by running the following command:

$ ./gradlew test

To perform development, you will need to have a JDK 8 or higher installed which can be obtained by running the following after installing SDKMAN:

$ sdk install java

Using Docker for tests

You can run the tests in a Docker container to guarantee a clean test environment.

$ docker build --tag=sdkman-cli/gradle .
$ docker run --rm -it sdkman-cli/gradle test

By running the following command, you don't need to wait for downloading Gradle wrapper and other dependencies. The test reports can be found under the local build directory.

$ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/gradle test

Local Installation

To install SDKMAN locally running against your local server, run the following commands:

$ ./gradlew install
$ source ~/.sdkman/bin/sdkman-init.sh

Or run install locally with Production configuration:

$ ./gradlew -Penv=production install
$ source ~/.sdkman/bin/sdkman-init.sh
Description
No description provided
Readme 25 MiB
Languages
Shell 35.6%
Gherkin 34.4%
Groovy 29.9%
Dockerfile 0.1%