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

IDEA-166909  Compiling 1.5 with JDK9 problem

Reason to revert: to avoid IOException during the patch because exe launchers lock the jre/bin(jre64/bin) folder. Thus next:
1. update exe launchers (done. fixed in 11961c19dbf4.)
2. include the jre layout changes (a week later).
This commit is contained in:
Vladimir.Orlov
2017-02-20 17:39:35 +03:00
parent 092fc8ecc3
commit bc2fa7c552
5 changed files with 7 additions and 8 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/bin/java" ] && "$IDE_HOME/jre/bin/java" -version > /dev/null 2>&1 ; then
elif [ "$OS_TYPE" = "Linux" ] && [ -x "$IDE_HOME/jre/jre/bin/java" ] && "$IDE_HOME/jre/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" "$TEMP\jre.tar.gz"
untgz::extract "-d" "$INSTDIR\jre" "$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,11 +88,12 @@ class WinInstallerBuilder {
ant.mkdir(dir: "$box/nsiconf")
if (winJDKZipPath != null) {
ant.unzip(dest: "$box", src: winJDKZipPath)
ant.mkdir(dir: "$box/jre")
ant.unzip(dest: "$box/jre", src: winJDKZipPath)
ant.copy(todir: "$box/bin") {
fileset(dir: "$box/jre/bin") {
include(name: "msvcr120.dll")
fileset(dir: "$box/jre/jre/bin") {
include(name: "msvcr71.dll")
}
}
}
@@ -105,8 +105,6 @@ 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/bin/*"
extraBins += "jre/jre/bin/*"
}
def description = "archive${jreDirectoryPath != null ? "" : " (without JRE)"}"
buildContext.messages.block("Build Linux tar.gz $description") {