Skip to content

code-sur/ShellENV4J

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellENV4J - Shell environment for java projects

Build Status

Usage example

  $ cd project_basedir
  $ java -version  # no java in PATH
The program 'java' is currently not installed.
  $ mvn -version  # # no maven in PATH
The program 'mvn' is currently not installed.
  $ . ENV.sh  # that's all
  $ java -version  # project's java is now in PATH!
java version "1.8.0_101"
  $ mvn -version  # project's maven is now in PATH!
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T13:41:47-03:00)

Install

cd your_project_basedir
wget https://goo.gl/kYnxxZ -O ENV.sh
ln -s <path_to_java_home> jdk
ln -s <path_to_maven_home> maven

Recommendations

If your project is under version control (git, right?), the suggestion is:

  • Commit ENV.sh
  • Ignore jdk and maven symlinks

Congratulations, setup is done!

About

Shell environment for java projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages