소스 검색

SONARPLUGINS-1114 Automatically determine SONAR_RUNNER_HOME on Windows

tags/2.5-rc1
Evgeny Mandrikov 13 년 전
부모
커밋
1189b4b5f6
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6
    1
      src/main/assembly/bin/sonar-runner.bat

+ 6
- 1
src/main/assembly/bin/sonar-runner.bat 파일 보기

@@ -2,11 +2,16 @@
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM SONAR_RUNNER_HOME - location of runner's installed home dir
@REM
@REM Optional ENV vars:
@REM SONAR_RUNNER_HOME - location of runner's installed home dir
@REM SONAR_RUNNER_OPTS - parameters passed to the Java VM when running Sonar

@echo off

if NOT "%SONAR_RUNNER_HOME%"=="" goto run
set SONAR_RUNNER_HOME=%~dp0..

:run
echo %SONAR_RUNNER_HOME%
"%JAVA_HOME%\bin\java.exe" %SONAR_RUNNER_OPTS% -classpath "%SONAR_RUNNER_HOME%\lib\sonar-runner.jar";"%SONAR_RUNNER_HOME%\lib\sonar-batch-bootstrapper.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" org.sonar.runner.Main %*

Loading…
취소
저장