< prev index next >

./build.gradle

Print this page




 323 // COMPILE_PARFAIT specifies whether to build parfait
 324 defineProperty("COMPILE_PARFAIT", "false")
 325 ext.IS_COMPILE_PARFAIT = Boolean.parseBoolean(COMPILE_PARFAIT)
 326 
 327 // COMPILE_JFR specifies whether to build code that logs to JRockit Flight Recorder
 328 defineProperty("COMPILE_JFR", Boolean.toString(file("$JDK_HOME/jre/lib/jfr.jar").exists()))
 329 ext.IS_COMPILE_JFR = Boolean.parseBoolean(COMPILE_JFR)
 330 
 331 // RETAIN_PACKAGER_TESTS specifies whether the tests in fxpackager should
 332 // keep generated files instead of attempting to automatically delete them
 333 defineProperty("RETAIN_PACKAGER_TESTS", "false")
 334 ext.IS_RETAIN_PACKAGER_TESTS = Boolean.parseBoolean(RETAIN_PACKAGER_TESTS)
 335 
 336 // TEST_PACKAGER_DMG whether tests that create DMG files via hdiutil
 337 // should be run.  On OSX 10.7 this tends to hang automated builds
 338 defineProperty("TEST_PACKAGER_DMG", "false")
 339 ext.IS_TEST_PACKAGER_DMG = Boolean.parseBoolean(TEST_PACKAGER_DMG)
 340 
 341 // Define the SWT.jar that we are going to have to download during the build process based
 342 // on what platform we are compiling from (not based on our target).
 343 ext.SWT_FILE_NAME = IS_MAC ? "org.eclipse.swt.cocoa.macosx.x86_64_3.7.2.v3740f" :
 344     IS_WINDOWS && IS_64 ? "org.eclipse.swt.win32.win32.x86_64_3.7.2.v3740f" :
 345     IS_WINDOWS && !IS_64 ? "org.eclipse.swt.win32.win32.x86_3.7.2.v3740f" :
 346     IS_LINUX && IS_64 ? "org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f" :
 347     IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f" : ""
 348 
 349 // Build javadocs only if BUILD_JAVADOC=true
 350 defineProperty("BUILD_JAVADOC", "false")
 351 ext.IS_BUILD_JAVADOC = Boolean.parseBoolean(BUILD_JAVADOC)
 352 
 353 // Specifies whether to build the javafx-src bundle
 354 defineProperty("BUILD_SRC_ZIP", "false")
 355 ext.IS_BUILD_SRC_ZIP = Boolean.parseBoolean(BUILD_SRC_ZIP)
 356 
 357 // Specifies whether to run full tests (true) or smoke tests (false)
 358 defineProperty("FULL_TEST", "false")
 359 ext.IS_FULL_TEST = Boolean.parseBoolean(FULL_TEST);
 360 
 361 // Specifies whether to run robot-based visual tests (only used when FULL_TEST is also enabled)
 362 defineProperty("USE_ROBOT", "false")
 363 ext.IS_USE_ROBOT = Boolean.parseBoolean(USE_ROBOT);
 364 
 365 // Specified whether to run tests in headless mode
 366 defineProperty("HEADLESS_TEST", "false")
 367 ext.IS_HEADLESS_TEST = Boolean.parseBoolean(HEADLESS_TEST);


1122                         "-source", p.sourceSets.main.java.srcDirs.collect{p.file(it)}.join(":"),
1123                         "report.xml"
1124                 ]
1125             }
1126         }
1127     }
1128 }
1129 
1130 allprojects {
1131     // Setup the repositories that we'll download libraries from. Maven Central is
1132     // just easy for most things. The custom "ivy" repo is for downloading SWT. The way it
1133     // works is to setup the download URL such that it will resolve to the actual jar file
1134     // to download. See SWT_FILE_NAME for the name of the jar that will be used as the
1135     // "artifact" in the pattern below. Note that the closed builds use different repositories
1136     // so if you are debugging a closed-build artifact related build issue, check out the
1137     // closed gradle file instead.
1138     if (!BUILD_CLOSED) {
1139         repositories {
1140             mavenCentral()
1141             ivy {
1142                 url "http://download.eclipse.org/eclipse/updates/3.7/R-3.7.2-201202080800/plugins/"
1143                 layout "pattern", {
1144                     artifact "[artifact].[ext]"
1145                 }
1146             }
1147         }
1148     }
1149 
1150     // We want to configure all projects as java projects and use the same compile settings
1151     // etc, except for the root project which we just want to ignore (and for now media)
1152     if (project == rootProject) {
1153        return
1154     }
1155     if (project.path.startsWith(":apps")) {
1156         // Lets handle the apps tree differently, as it is a collection of ant builds,
1157         // and the ant importer collides with the 'apply plugin:java'
1158         return
1159     }
1160 
1161     // All of our projects are java projects
1162     apply plugin: "java"




 323 // COMPILE_PARFAIT specifies whether to build parfait
 324 defineProperty("COMPILE_PARFAIT", "false")
 325 ext.IS_COMPILE_PARFAIT = Boolean.parseBoolean(COMPILE_PARFAIT)
 326 
 327 // COMPILE_JFR specifies whether to build code that logs to JRockit Flight Recorder
 328 defineProperty("COMPILE_JFR", Boolean.toString(file("$JDK_HOME/jre/lib/jfr.jar").exists()))
 329 ext.IS_COMPILE_JFR = Boolean.parseBoolean(COMPILE_JFR)
 330 
 331 // RETAIN_PACKAGER_TESTS specifies whether the tests in fxpackager should
 332 // keep generated files instead of attempting to automatically delete them
 333 defineProperty("RETAIN_PACKAGER_TESTS", "false")
 334 ext.IS_RETAIN_PACKAGER_TESTS = Boolean.parseBoolean(RETAIN_PACKAGER_TESTS)
 335 
 336 // TEST_PACKAGER_DMG whether tests that create DMG files via hdiutil
 337 // should be run.  On OSX 10.7 this tends to hang automated builds
 338 defineProperty("TEST_PACKAGER_DMG", "false")
 339 ext.IS_TEST_PACKAGER_DMG = Boolean.parseBoolean(TEST_PACKAGER_DMG)
 340 
 341 // Define the SWT.jar that we are going to have to download during the build process based
 342 // on what platform we are compiling from (not based on our target).
 343 ext.SWT_FILE_NAME = IS_MAC ? "org.eclipse.swt.cocoa.macosx.x86_64_3.105.3.v20170228-0512" :
 344     IS_WINDOWS && IS_64 ? "org.eclipse.swt.win32.win32.x86_64_3.105.3.v20170228-0512" :
 345     IS_WINDOWS && !IS_64 ? "org.eclipse.swt.win32.win32.x86_3.105.3.v20170228-0512" :
 346     IS_LINUX && IS_64 ? "org.eclipse.swt.gtk.linux.x86_64_3.105.3.v20170228-0512" :
 347     IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.105.3.v20170228-0512" : ""
 348 
 349 // Build javadocs only if BUILD_JAVADOC=true
 350 defineProperty("BUILD_JAVADOC", "false")
 351 ext.IS_BUILD_JAVADOC = Boolean.parseBoolean(BUILD_JAVADOC)
 352 
 353 // Specifies whether to build the javafx-src bundle
 354 defineProperty("BUILD_SRC_ZIP", "false")
 355 ext.IS_BUILD_SRC_ZIP = Boolean.parseBoolean(BUILD_SRC_ZIP)
 356 
 357 // Specifies whether to run full tests (true) or smoke tests (false)
 358 defineProperty("FULL_TEST", "false")
 359 ext.IS_FULL_TEST = Boolean.parseBoolean(FULL_TEST);
 360 
 361 // Specifies whether to run robot-based visual tests (only used when FULL_TEST is also enabled)
 362 defineProperty("USE_ROBOT", "false")
 363 ext.IS_USE_ROBOT = Boolean.parseBoolean(USE_ROBOT);
 364 
 365 // Specified whether to run tests in headless mode
 366 defineProperty("HEADLESS_TEST", "false")
 367 ext.IS_HEADLESS_TEST = Boolean.parseBoolean(HEADLESS_TEST);


1122                         "-source", p.sourceSets.main.java.srcDirs.collect{p.file(it)}.join(":"),
1123                         "report.xml"
1124                 ]
1125             }
1126         }
1127     }
1128 }
1129 
1130 allprojects {
1131     // Setup the repositories that we'll download libraries from. Maven Central is
1132     // just easy for most things. The custom "ivy" repo is for downloading SWT. The way it
1133     // works is to setup the download URL such that it will resolve to the actual jar file
1134     // to download. See SWT_FILE_NAME for the name of the jar that will be used as the
1135     // "artifact" in the pattern below. Note that the closed builds use different repositories
1136     // so if you are debugging a closed-build artifact related build issue, check out the
1137     // closed gradle file instead.
1138     if (!BUILD_CLOSED) {
1139         repositories {
1140             mavenCentral()
1141             ivy {
1142                 url "http://download.eclipse.org/eclipse/updates/4.6/R-4.6.3-201703010400/plugins/"
1143                 layout "pattern", {
1144                     artifact "[artifact].[ext]"
1145                 }
1146             }
1147         }
1148     }
1149 
1150     // We want to configure all projects as java projects and use the same compile settings
1151     // etc, except for the root project which we just want to ignore (and for now media)
1152     if (project == rootProject) {
1153        return
1154     }
1155     if (project.path.startsWith(":apps")) {
1156         // Lets handle the apps tree differently, as it is a collection of ant builds,
1157         // and the ant importer collides with the 'apply plugin:java'
1158         return
1159     }
1160 
1161     // All of our projects are java projects
1162     apply plugin: "java"


< prev index next >