mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JRE bundled folder structure changed: jre/jre/.. -> jre/..
IDEA-166909 Compiling 1.5 with JDK9 problem
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -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)
|
||||
}
|
||||
|
||||
+1
-1
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user