changeset 9773:63b2d809f75c

8156859: Add an option for skipping creation of module zip file Reviewed-by: kcr
author vadim
date Thu, 12 May 2016 19:57:11 +0300
parents b6a7c8d60dbd
children 3000af712724
files build.gradle gradle.properties.template
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Thu May 12 14:53:12 2016 +0300
+++ b/build.gradle	Thu May 12 19:57:11 2016 +0300
@@ -399,6 +399,10 @@
 defineProperty("BUILD_SRC_ZIP", "false")
 ext.IS_BUILD_SRC_ZIP = Boolean.parseBoolean(BUILD_SRC_ZIP)
 
+// Specifies whether to build the javafx-exports bundle
+defineProperty("BUILD_MODULE_ZIP", "true")
+ext.IS_BUILD_MODULE_ZIP = Boolean.parseBoolean(BUILD_MODULE_ZIP)
+
 // Specifies whether to run full tests (true) or smoke tests (false)
 defineProperty("FULL_TEST", "false")
 ext.IS_FULL_TEST = Boolean.parseBoolean(FULL_TEST);
@@ -3412,6 +3416,8 @@
     project.files(xpatchFile);
 
     def zipTask = project.task("buildModuleZip$t.capital", type: Zip, group: "Build") {
+        enabled = IS_BUILD_MODULE_ZIP
+
         // FIXME: JIGSAW -- this should be moved to a sub-directory so we can keep the same name
         def jfxBundle = "${platformPrefix}javafx-exports.zip"
 
--- a/gradle.properties.template	Thu May 12 14:53:12 2016 +0300
+++ b/gradle.properties.template	Thu May 12 19:57:11 2016 +0300
@@ -61,6 +61,12 @@
 
 #BUILD_SRC_ZIP = true
 
+# The building of the javafx-exports bundle takes time. 
+# Uncomment this flag to speed up incremental builds if javafx-exports.zip
+# is not needed
+
+#BUILD_MODULE_ZIP = false
+
 # Specifies whether to include the Null3D pipeline, which can be used for
 # performance debugging.
 # Uncomment this flag in order to include the Null3D pipeline in the build.