Mercurial > public > develkit
annotate scripts/setjava.sh @ 361:7b6d30651db7
Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author | davis@ssdt-ohio.org |
---|---|
date | Thu, 16 Nov 2023 15:52:40 -0500 |
parents | 7a17678c9a73 |
children |
rev | line source |
---|---|
207 | 1 #!/bin/bash |
2 | |
3 if [ "${1}" == "7" ] | |
4 then | |
5 export JAVA_HOME=$JAVA7 | |
6 else | |
7 export JAVA_HOME=$JAVA8 | |
8 fi | |
9 | |
10 IFS=':' | |
11 CYGWIN=nodosfilewarning | |
12 PATHNEW='' | |
13 for A in ${PATH} | |
14 do | |
15 | |
16 if [[ "$A" != *"Java"* || "$A" != *"jdk"* || "$A" == *"java"* ]] | |
17 then | |
18 PATHNEW=$PATHNEW:"$A" | |
19 fi | |
20 | |
21 done | |
22 export PATH=$JAVA_HOME/bin$PATHNEW | |
23 | |
24 # Output | |
25 echo -e "JAVA_HOME\t" $JAVA_HOME | |
26 echo -e "PATH" | |
27 for A in ${PATH} | |
28 do | |
29 echo "${A}" | |
30 done | |
31 |