aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/assembly')
-rw-r--r--src/main/assembly/bin/sonar-runner.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat
index 6f24d89..e75cf91 100644
--- a/src/main/assembly/bin/sonar-runner.bat
+++ b/src/main/assembly/bin/sonar-runner.bat
@@ -16,6 +16,11 @@ if not "%JAVA_HOME%" == "" goto foundJavaHome
for %%i in (java.exe) do set JAVA_EXEC=%%~$PATH:i
+if not "%JAVA_EXEC%" == "" {
+ set JAVA_EXEC="%JAVA_EXEC%"
+ goto OkJava
+}
+
if not "%JAVA_EXEC%" == "" goto OkJava
echo.