Skip to content

Commit ed61808

Browse files
author
travisfw
committedFeb 13, 2017
fix tests for java executable location. bug PhilJay#2805
PhilJay#2805
1 parent ccf6b7e commit ed61808

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎gradlew

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
6464

6565
# Determine the Java command to use to start the JVM.
6666
if [ -n "$JAVA_HOME" ] ; then
67-
if [ -xPx "$JAVA_HOME/jre/sh/java" ] ; then
67+
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
6868
# IBM's JDK on AIX uses strange locations for the executables
6969
JAVACMD="$JAVA_HOME/jre/sh/java"
7070
else
7171
JAVACMD="$JAVA_HOME/bin/java"
7272
fi
73-
if [ ! -xPx "$JAVACMD" ] ; then
73+
if [ ! -x "$JAVACMD" ] ; then
7474
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
7575
7676
Please set the JAVA_HOME variable in your environment to match the

0 commit comments

Comments
 (0)
Please sign in to comment.