build scripts: add option to skip building Linux tar.gz artifacts without bundled JRE

This commit is contained in:
nik
2019-02-21 14:15:10 +03:00
parent c3c196d199
commit a3549d232a
2 changed files with 5 additions and 1 deletions
@@ -50,6 +50,8 @@ class BuildOptions {
static final String MAC_SIGN_STEP = "mac_sign"
/** Build Linux artifacts. */
static final String LINUX_ARTIFACTS_STEP = "linux_artifacts"
/** Build Linux tar.gz artifact without bundled JRE. */
static final String LINUX_TAR_GZ_WITHOUT_BUNDLED_JRE_STEP = "linux_tar_gz_without_jre"
/** Build *.exe installer for Windows distribution. If skipped, only .zip archive will be produced. */
static final String WINDOWS_EXE_INSTALLER_STEP = "windows_exe_installer"
/** Build Frankenstein artifacts. */
@@ -58,7 +58,9 @@ class LinuxDistributionBuilder extends OsSpecificDistributionBuilder {
void buildArtifacts(String osSpecificDistPath) {
buildContext.executeStep("Build Linux .tar.gz", BuildOptions.LINUX_ARTIFACTS_STEP) {
if (customizer.buildTarGzWithoutBundledJre) {
buildTarGz(null, osSpecificDistPath, "-no-jbr")
buildContext.executeStep("Build Linux .tar.gz without bundled JRE", BuildOptions.LINUX_TAR_GZ_WITHOUT_BUNDLED_JRE_STEP) {
buildTarGz(null, osSpecificDistPath, "-no-jbr")
}
}
def jreDirectoryPath = buildContext.bundledJreManager.extractLinuxJre()
if (jreDirectoryPath != null) {