Revert: build scripts: renamed jre64 to jbr

relates with JBR-1295 The base directories `jdk` in tarballs need to be replaced by `jbrsdk` (d0fe94dd)

GitOrigin-RevId: 214de71255e8162190c8dad32659c3470d9061f8
This commit is contained in:
Vladimir.Orlov
2019-04-29 16:46:27 +03:00
committed by intellij-monorepo-bot
parent df6e9c7b4c
commit e37c0c8f2b
3 changed files with 7 additions and 7 deletions
@@ -73,7 +73,7 @@ class BundledJreManager {
}
buildContext.messages.block("Extract $archive.absolutePath JRE") {
String destination = "$targetDir/jbr"
String destination = "$targetDir/jre64"
def destinationDir = new File(destination)
if (destinationDir.exists()) destinationDir.deleteDir()
untar(archive, destination, isSecondBundledJreModular())
@@ -130,7 +130,7 @@ class BundledJreManager {
return null
}
buildContext.messages.block("Extract $archive.name JRE") {
String destination = "$targetDir/jbr"
String destination = "$targetDir/jre64"
if (osName == "windows" && arch == JvmArchitecture.x32) {
destination = "$targetDir/jre32"
}
@@ -142,8 +142,8 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
String javaExecutablePath = null
if (jreDirectoryPath != null) {
paths += jreDirectoryPath
extraBins += "jbr/bin/*"
javaExecutablePath = "jbr/bin/java"
extraBins += "jre64/bin/*"
javaExecutablePath = "jre64/bin/java"
}
def productJsonDir = new File(buildContext.paths.temp, "linux.dist.product-info.json$suffix").absolutePath
generateProductJson(productJsonDir, javaExecutablePath)
@@ -247,11 +247,11 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
customizer.extraExecutables.each { include(name: it) }
}
fileset(dir: jreDirectoryPath) {
include(name: "jbr/bin/*")
include(name: "jre64/bin/*")
}
}
generateProductJson(unixSnapDistPath, "jbr/bin/java")
generateProductJson(unixSnapDistPath, "jre64/bin/java")
new ProductInfoValidator(buildContext).validateInDirectory(unixSnapDistPath, "", [unixSnapDistPath, jreDirectoryPath], [])
buildContext.ant.mkdir(dir: "${snapDir}/result")
@@ -282,7 +282,7 @@ IDS_VM_OPTIONS=$vmOptions
private void generateProductJson(String targetDir, boolean isJreIncluded) {
def launcherPath = "bin/${buildContext.productProperties.baseFileName}64.exe"
def vmOptionsPath = "bin/${buildContext.productProperties.baseFileName}64.exe.vmoptions"
def javaExecutablePath = isJreIncluded ? "jbr/bin/java.exe" : null
def javaExecutablePath = isJreIncluded ? "jre64/bin/java.exe" : null
new ProductInfoGenerator(buildContext)
.generateProductJson(targetDir, "bin", null, launcherPath, javaExecutablePath, vmOptionsPath, OsFamily.WINDOWS)
}