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" ]
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
<!-- 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>
<!-- 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>
<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>
<!-- 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>
<!-- 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>