comparison zshrc-jdk @ 0:8b245298349a

zsh environment - initial import
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 28 Nov 2011 12:36:49 +0100
parents
children 47174e41b448
comparison
equal deleted inserted replaced
-1:000000000000 0:8b245298349a
1 #
2 # zshrc for handling different Maven versions
3 #
4
5 switchJdk() {
6 local jdkName="$1"
7 local new_path=`removeFromPath "jdk"`
8 export JAVA_HOME=`/usr/bin/java-config-2 --select-vm=${jdkName} -O`
9 export JAVAC=${JAVA_HOME}/bin/javac
10 export JDK_HOME=${JAVA_HOME}
11 export PATH="${JAVA_HOME}/bin":"${new_path}"
12 java -version
13 }
14
15 ibmJdk5() {
16 switchJdk "ibm-jdk-bin-1.5"
17 }
18
19 ibmJdk6() {
20 switchJdk "ibm-jdk-bin-1.6"
21 }
22
23 jdk14() {
24 switchJdk "sun-jdk-1.4"
25 }
26
27 jdk5() {
28 switchJdk "sun-jdk-1.5"
29 }
30
31 jdk6() {
32 switchJdk "sun-jdk-1.6"
33 }
34
35 jdk7() {
36 switchJdk "oracle-jdk-bin-1.7"
37 }