From a307e0474e78c51590aeac95dbc5587a87ef6501 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 27 Feb 2016 15:58:12 +0100 Subject: refactor scripts packages --- packages/scripts/resources/lib/environments.inc.sh | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 packages/scripts/resources/lib/environments.inc.sh (limited to 'packages/scripts/resources/lib/environments.inc.sh') diff --git a/packages/scripts/resources/lib/environments.inc.sh b/packages/scripts/resources/lib/environments.inc.sh new file mode 100644 index 0000000..8960d95 --- /dev/null +++ b/packages/scripts/resources/lib/environments.inc.sh @@ -0,0 +1,46 @@ + +function __sub_java7() { + export JAVA_HOME=/usr/lib/jvm/java-7-oraclejdk + export PATH=$JAVA_HOME/bin:$PATH +} + +function __sub_java8() { + export JAVA_HOME=/usr/lib/jvm/java-8-oraclejdk + export PATH=$JAVA_HOME/bin:$PATH +} + +function __sub_tools() { + export PATH=/opt/idea-iu15/bin:$PATH + export PATH=/opt/gwt-chromium/bin:$PATH + + export PATH=/opt/grails3/bin:$PATH + + export PATH=/opt/cern-scripts/bin:$PATH + + export TNS_ADMIN=/home/yfischer/.cache/tnsnames/admin_localhost + export JAVA_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN" + export GRADLE_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN" +} + +function __env_ideajava8() { + __sub_java8 + __sub_tools +} + +function __env_ideajava7() { + __sub_java7 + __sub_tools +} + +function __env_fwk24() { + __sub_java7 + + export PATH=/opt/idea-iu15/bin:$PATH + export PATH=/opt/gwt-chromium/bin:$PATH + export PATH=/opt/grails2.2.1/bin:$PATH + export PATH=/opt/cern-scripts/bin:$PATH + + export TNS_ADMIN=/home/yfischer/.cache/tnsnames/admin_localhost + export JAVA_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN" + export GRADLE_OPTS="-Doracle.net.tns_admin=$TNS_ADMIN" +} -- cgit v1.2.1