JRE bundled folder structure changed: jre/jre/.. -> jre/..

IDEA-166909 Compiling 1.5 with JDK9 problem
This commit is contained in:
Vladimir.Orlov
2017-02-27 09:02:31 +03:00
parent f8f7f60fd6
commit 16e2a4af17
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ elif [ -s "$HOME/.@@system_selector@@/config/@@vm_options@@.jdk" ]; then
if [ ! -d "$JDK" ]; then
JDK="$IDE_HOME/$JDK"
fi
elif [ "$OS_TYPE" = "Linux" ] && [ -x "$IDE_HOME/jre/jre/bin/java" ] && "$IDE_HOME/jre/jre/bin/java" -version > /dev/null 2>&1 ; then
elif [ "$OS_TYPE" = "Linux" ] && [ -x "$IDE_HOME/jre/bin/java" ] && "$IDE_HOME/jre/bin/java" -version > /dev/null 2>&1 ; then
JDK="$IDE_HOME/jre"
elif [ -n "$JDK_HOME" -a -x "$JDK_HOME/bin/java" ]; then
JDK="$JDK_HOME"
+1 -1
View File
@@ -382,7 +382,7 @@ Function downloadJre
inetc::get ${LINK_TO_JRE} "$TEMP\jre.tar.gz" /END
Pop $0
${If} $0 == "OK"
untgz::extract "-d" "$INSTDIR\jre" "$TEMP\jre.tar.gz"
untgz::extract "-d" "$INSTDIR" "$TEMP\jre.tar.gz"
StrCmp $R0 "success" removeTempJre
DetailPrint "Failed to extract jre.tar.gz"
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_DEFBUTTON1 "Failed to extract $TEMP\jre.tar.gz"
@@ -88,12 +88,11 @@ class WinInstallerBuilder {
ant.mkdir(dir: "$box/nsiconf")
if (winJDKZipPath != null) {
ant.mkdir(dir: "$box/jre")
ant.unzip(dest: "$box/jre", src: winJDKZipPath)
ant.unzip(dest: "$box", src: winJDKZipPath)
ant.copy(todir: "$box/bin") {
fileset(dir: "$box/jre/jre/bin") {
include(name: "msvcr71.dll")
fileset(dir: "$box/jre/bin") {
include(name: "msvcr120.dll")
}
}
}
@@ -105,6 +105,8 @@ class BundledJreManager {
buildContext.ant.exec(executable: "tar", dir: archive.parent) {
arg(value: "-xf")
arg(value: archive.name)
arg(value: "--strip")
arg(value: "1")
arg(value: "--directory")
arg(value: destination)
}
@@ -144,7 +144,7 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
def paths = [buildContext.paths.distAll, unixDistPath]
if (jreDirectoryPath != null) {
paths += jreDirectoryPath
extraBins += "jre/jre/bin/*"
extraBins += "jre/bin/*"
}
def description = "archive${jreDirectoryPath != null ? "" : " (without JRE)"}"
buildContext.messages.block("Build Linux tar.gz $description") {