From 809a44d5dfd5ec5a5148220f626782c0d7010991 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 21 Feb 2015 13:29:17 -0200 Subject: [PATCH 1/2] readme fixes #27 --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f78a98..0e3bbc9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jvm [![Build Status](https://travis-ci.org/caarlos0/jvm.svg?branch=master)](https://travis-ci.org/caarlos0/jvm) [![Stories in Ready](https://badge.waffle.io/caarlos0/jvm.png?label=ready&title=Ready)](https://waffle.io/caarlos0/jvm) +# jvm [![Build Status](https://travis-ci.org/caarlos0/jvm.svg?branch=master)](https://travis-ci.org/caarlos0/jvm) [![Stories in Ready](https://badge.waffle.io/caarlos0/jvm.png?label=ready&title=Ready)](https://waffle.io/caarlos0/jvm) [![DevOps By Rultor.com](http://www.rultor.com/b/caarlos0/jvm)](http://www.rultor.com/p/caarlos0/jvm) > The _"Java Version Manager"_ @@ -24,7 +24,7 @@ echo "source ~/.jvm/jvm.sh" >> .zshrc ``` Then, just `cd` to a java project folder. If the `pom.xml` has a -`1.7`, for example, jvm will try to +`1.7`, for example, `jvm` will try to set JDK7 to your PATH. If you don't have and don't want to have this in your project's pom, @@ -34,10 +34,21 @@ you can also do this: jvm local 7 ``` -On OSX, jvm will use the `java_home` tool to find the available versions. For -Ubuntu, right now jvm has `/usr/lib/jvm/java-${version}-oracle/` hard coded. +On OSX, `jvm` will use the `java_home` tool to find the available versions. For +Ubuntu, right now `jvm` has `/usr/lib/jvm/java-${version}-oracle/` hard coded. This might change soon. +### `jvm` commands + +Right now, `jvm` has the following commands: + +- `local VERSION`: creates a `.java-version` in the current dir with the given +version; +- `global VERSION`: creates a `.java-version` in your `$HOME` dir with the given +version; +- `version`: shows current version; +- `help`: shows the help. + ### Antigen For those using Antigen, just hit From 94c0e18964885b7f8a3b143ef165edb7bdebb661 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 21 Feb 2015 13:30:05 -0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e3bbc9..9c7c019 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jvm [![Build Status](https://travis-ci.org/caarlos0/jvm.svg?branch=master)](https://travis-ci.org/caarlos0/jvm) [![Stories in Ready](https://badge.waffle.io/caarlos0/jvm.png?label=ready&title=Ready)](https://waffle.io/caarlos0/jvm) [![DevOps By Rultor.com](http://www.rultor.com/b/caarlos0/jvm)](http://www.rultor.com/p/caarlos0/jvm) +# jvm [![DevOps By Rultor.com](http://www.rultor.com/b/caarlos0/jvm)](http://www.rultor.com/p/caarlos0/jvm) [![Build Status](https://travis-ci.org/caarlos0/jvm.svg?branch=master)](https://travis-ci.org/caarlos0/jvm) [![Stories in Ready](https://badge.waffle.io/caarlos0/jvm.png?label=ready&title=Ready)](https://waffle.io/caarlos0/jvm) > The _"Java Version Manager"_