File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tools/src/main/python/opengrok_tools/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
# CDDL HEADER END
19
19
20
20
#
21
- # Copyright (c) 2008, 2021 , Oracle and/or its affiliates. All rights reserved.
21
+ # Copyright (c) 2008, 2024 , Oracle and/or its affiliates. All rights reserved.
22
22
# Portions Copyright (c) 2017-2018, Chris Fraire <[email protected] >.
23
23
#
24
24
@@ -82,12 +82,13 @@ def FindJava(self, logger):
82
82
system_name = platform .system ()
83
83
if system_name == 'SunOS' :
84
84
rel = platform .release ()
85
+ java_home = None
85
86
if rel == '5.10' :
86
87
java_home = "/usr/jdk/instances/jdk1.7.0"
87
88
elif rel == '5.11' :
88
89
java_home = "/usr/jdk/latest"
89
90
90
- if os .path .isdir (java_home ):
91
+ if java_home and os .path .isdir (java_home ):
91
92
java = os .path .join (java_home , 'bin' , 'java' )
92
93
elif system_name == 'Darwin' :
93
94
cmd = Command (['/usr/libexec/java_home' ])
You can’t perform that action at this time.
0 commit comments