From: Janos Gyerik Date: Tue, 21 Mar 2017 14:56:13 +0000 (+0100) Subject: Improve assembly (#28) X-Git-Tag: 3.0.0.699~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=deb8a02ba1e8f8b18c0e3aefaf2f3fc3ae1d78fa;p=sonar-scanner-cli.git Improve assembly (#28) * Make jre/lib/jspawnhelper executable on macosx * Move from /lib/jre to /jre in dists --- diff --git a/src/main/assembly/bin/sonar-scanner b/src/main/assembly/bin/sonar-scanner index b0c19f3..985de89 100755 --- a/src/main/assembly/bin/sonar-scanner +++ b/src/main/assembly/bin/sonar-scanner @@ -46,7 +46,7 @@ fi use_embedded_jre=${use_embedded_jre} if [ "$use_embedded_jre" = true ]; then - export JAVA_HOME=$sonar_scanner_home/lib/jre + export JAVA_HOME=$sonar_scanner_home/jre fi if [ -n "$JAVA_HOME" ] diff --git a/src/main/assembly/bin/sonar-scanner.bat b/src/main/assembly/bin/sonar-scanner.bat index 833dcbb..b10d8dc 100644 --- a/src/main/assembly/bin/sonar-scanner.bat +++ b/src/main/assembly/bin/sonar-scanner.bat @@ -20,7 +20,7 @@ set SONAR_SCANNER_HOME=%~dp0.. set use_embedded_jre=${use_embedded_jre} if "%use_embedded_jre%" == "true" ( - set JAVA_HOME=%SONAR_SCANNER_HOME%\lib\jre + set JAVA_HOME=%SONAR_SCANNER_HOME%\jre ) if not "%JAVA_HOME%" == "" goto foundJavaHome diff --git a/src/main/assembly/dist-linux.xml b/src/main/assembly/dist-linux.xml index f24416a..0eef457 100644 --- a/src/main/assembly/dist-linux.xml +++ b/src/main/assembly/dist-linux.xml @@ -10,7 +10,7 @@ ${unpack.dir}/linux/${jre.dirname.linux} - lib/jre + jre bin/** man/** @@ -21,7 +21,7 @@ ${unpack.dir}/linux/${jre.dirname.linux}/bin - lib/jre/bin + jre/bin java diff --git a/src/main/assembly/dist-macosx.xml b/src/main/assembly/dist-macosx.xml index 1babd6a..d914152 100644 --- a/src/main/assembly/dist-macosx.xml +++ b/src/main/assembly/dist-macosx.xml @@ -7,26 +7,37 @@ sonar-scanner-${project.version}-macosx - + ${unpack.dir}/macosx/${jre.dirname.macosx} - lib/jre + jre bin/** man/** + lib/jspawnhelper ${unpack.dir}/macosx/${jre.dirname.macosx}/bin - lib/jre/bin + jre/bin java 0755 + + + ${unpack.dir}/macosx/${jre.dirname.macosx}/lib + jre/lib + + jspawnhelper + + 0755 + + ${project.build.directory} diff --git a/src/main/assembly/dist-windows.xml b/src/main/assembly/dist-windows.xml index c65c2e4..f35a152 100644 --- a/src/main/assembly/dist-windows.xml +++ b/src/main/assembly/dist-windows.xml @@ -10,7 +10,7 @@ ${unpack.dir}/windows/${jre.dirname.windows} - lib/jre + jre bin/** man/** @@ -21,7 +21,7 @@ ${unpack.dir}/windows/${jre.dirname.windows}/bin - lib/jre/bin + jre/bin 0755