ASF Bugzilla – Attachment 31888 Details for
Bug 56829
do not override _RUNJAVA and _RUNJDB environment variables if already defined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
file_56829.txt (text/plain), 1.34 KB, created by
Neeme Praks
on 2014-08-08 11:45:10 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Neeme Praks
Created:
2014-08-08 11:45:10 UTC
Size:
1.34 KB
patch
obsolete
>Index: setclasspath.bat >=================================================================== >--- setclasspath.bat (revision 1616700) >+++ setclasspath.bat (working copy) >@@ -65,11 +65,18 @@ > set "JAVA_ENDORSED_DIRS=%BASEDIR%\endorsed" > :gotEndorseddir > >+rem Don't override _RUNJAVA if the user has set it previously >+if not "%_RUNJAVA%" == "" goto gotRunJava > rem Set standard command for invoking Java. > rem Note that NT requires a window name argument when using start. > rem Also note the quoting as JAVA_HOME may contain spaces. > set _RUNJAVA="%JRE_HOME%\bin\java" >+:gotRunJava >+ >+rem Don't override _RUNJDB if the user has set it previously >+if not "%_RUNJAVA%" == "" goto gotRunJdb > set _RUNJDB="%JAVA_HOME%\bin\jdb" >+:gotRunJdb > > goto end > >Index: setclasspath.sh >=================================================================== >--- setclasspath.sh (revision 1616700) >+++ setclasspath.sh (working copy) >@@ -110,8 +110,12 @@ > fi > fi > >-# Set standard commands for invoking Java. >-_RUNJAVA="$JRE_HOME"/bin/java >-if [ "$os400" != "true" ]; then >- _RUNJDB="$JAVA_HOME"/bin/jdb >+# Set standard commands for invoking Java, if not already set. >+if [ -z "$_RUNJAVA" ]; then >+ _RUNJAVA="$JRE_HOME"/bin/java >+ if [ "$os400" != "true" ]; then >+ if [ -z "$_RUNJDB" ]; then >+ _RUNJDB="$JAVA_HOME"/bin/jdb >+ fi >+ fi > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 56829
: 31888