]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Improve assembly (#28)
authorJanos Gyerik <janos.gyerik@sonarsource.com>
Tue, 21 Mar 2017 14:56:13 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Mar 2017 14:56:13 +0000 (15:56 +0100)
* Make jre/lib/jspawnhelper executable on macosx

* Move from /lib/jre to /jre in dists

src/main/assembly/bin/sonar-scanner
src/main/assembly/bin/sonar-scanner.bat
src/main/assembly/dist-linux.xml
src/main/assembly/dist-macosx.xml
src/main/assembly/dist-windows.xml

index b0c19f36bd4e0f435940a9e65ec25e570432237d..985de89d979c58f9768e3ee1a4e16b2c3d8772fa 100755 (executable)
@@ -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" ]
index 833dcbb83365afd7e62fc57eb0e754ab3543bca4..b10d8dc621d03cf02484660c3ad785c3d56de71c 100644 (file)
@@ -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
index f24416a1e3c52ae0895106687dd37fcf93640a0c..0eef4574ad54809836404a940a66a4f2e79f1b6e 100644 (file)
@@ -10,7 +10,7 @@
     <!-- jre basic, except bin/ -->
     <fileSet>
       <directory>${unpack.dir}/linux/${jre.dirname.linux}</directory>
-      <outputDirectory>lib/jre</outputDirectory>
+      <outputDirectory>jre</outputDirectory>
       <excludes>
         <exclude>bin/**</exclude>
         <exclude>man/**</exclude>
@@ -21,7 +21,7 @@
     <!-- jre bin/java -->
     <fileSet>
       <directory>${unpack.dir}/linux/${jre.dirname.linux}/bin</directory>
-      <outputDirectory>lib/jre/bin</outputDirectory>
+      <outputDirectory>jre/bin</outputDirectory>
       <includes>
         <include>java</include>
       </includes>
index 1babd6ac5a68e70ae9872e65bf9f8d6b34950894..d914152a5e282eeb7915f02a38bd98cd25c82e3e 100644 (file)
@@ -7,26 +7,37 @@
   <baseDirectory>sonar-scanner-${project.version}-macosx</baseDirectory>
   <fileSets>
 
-    <!-- jre basic, except bin/ -->
+    <!-- jre basic, except bin/ and misc -->
     <fileSet>
       <directory>${unpack.dir}/macosx/${jre.dirname.macosx}</directory>
-      <outputDirectory>lib/jre</outputDirectory>
+      <outputDirectory>jre</outputDirectory>
       <excludes>
         <exclude>bin/**</exclude>
         <exclude>man/**</exclude>
+        <exclude>lib/jspawnhelper</exclude>
       </excludes>
     </fileSet>
 
     <!-- jre bin/java -->
     <fileSet>
       <directory>${unpack.dir}/macosx/${jre.dirname.macosx}/bin</directory>
-      <outputDirectory>lib/jre/bin</outputDirectory>
+      <outputDirectory>jre/bin</outputDirectory>
       <includes>
         <include>java</include>
       </includes>
       <fileMode>0755</fileMode>
     </fileSet>
 
+    <!-- jre lib executable files -->
+    <fileSet>
+      <directory>${unpack.dir}/macosx/${jre.dirname.macosx}/lib</directory>
+      <outputDirectory>jre/lib</outputDirectory>
+      <includes>
+        <include>jspawnhelper</include>
+      </includes>
+      <fileMode>0755</fileMode>
+    </fileSet>
+
     <!-- scanner files -->
     <fileSet>
       <directory>${project.build.directory}</directory>
index c65c2e441ad5727079c4b65a55c530aa6bac465f..f35a15281814bb489b395a1c9d21933b05a2598e 100644 (file)
@@ -10,7 +10,7 @@
     <!-- jre basic, except bin/ -->
     <fileSet>
       <directory>${unpack.dir}/windows/${jre.dirname.windows}</directory>
-      <outputDirectory>lib/jre</outputDirectory>
+      <outputDirectory>jre</outputDirectory>
       <excludes>
         <exclude>bin/**</exclude>
         <exclude>man/**</exclude>
@@ -21,7 +21,7 @@
     <!-- jre bin -->
     <fileSet>
       <directory>${unpack.dir}/windows/${jre.dirname.windows}/bin</directory>
-      <outputDirectory>lib/jre/bin</outputDirectory>
+      <outputDirectory>jre/bin</outputDirectory>
       <fileMode>0755</fileMode>
     </fileSet>