Repository: bigtop Updated Branches: refs/heads/master 81024ea74 -> 046d3e206
BIGTOP-2141. Have a way to specify alternative BOM file in the build time Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/046d3e20 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/046d3e20 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/046d3e20 Branch: refs/heads/master Commit: 046d3e206e7cea1457d0e844a8e0418006d831f3 Parents: 81024ea Author: Konstantin Boudnik <[email protected]> Authored: Mon Dec 7 10:40:27 2015 -0800 Committer: Konstantin Boudnik <[email protected]> Committed: Mon Dec 7 16:25:04 2015 -0800 ---------------------------------------------------------------------- README.md | 3 +++ packages.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/046d3e20/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 61502d2..2479af5 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,9 @@ __On all systems, Building Apache Bigtop requires certain set of tools__ If -Dbuildwithdeps=true is set, the Gradle will follow the order of the build specified in the "dependencies" section of bigtop.bom file. Otherwise just a single component will get build (original behavior). + To use an alternative definition of a stack composition (aka BOM), specify its + name with -Dbomfile=<filename> system property in the build time. + You can visualize all tasks dependencies by running `gradle tasks --all` * __Building local YUM/APT repositories__ : `gradle [component-name]-[yum|apt]` http://git-wip-us.apache.org/repos/asf/bigtop/blob/046d3e20/packages.gradle ---------------------------------------------------------------------- diff --git a/packages.gradle b/packages.gradle index 71cd148..17f9e42 100644 --- a/packages.gradle +++ b/packages.gradle @@ -38,7 +38,7 @@ def PACKAGES_GROUP = 'package' final String VERBOSE = "verbose" final String DEPS_BUILD = "buildwithdeps" final boolean buildDependencies = false || System.getProperty(DEPS_BUILD) == 'true' -final String BOM = "$rootDir/bigtop.bom" +final String BOM = System.getProperty('bomfile') ?: "$rootDir/bigtop.bom" def final config = new ConfigSlurper().parse(new URL("file:$BOM")) config.bigtop.builddir = projectDir.absolutePath + "/build"
