You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2016/04/29 00:54:11 UTC
bigtop git commit: BIGTOP-2411. Add OS-neutral wrappers to build all
native packages and repositories
Repository: bigtop
Updated Branches:
refs/heads/master 67bc8230a -> 8e7dac608
BIGTOP-2411. Add OS-neutral wrappers to build all native packages and repositories
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/8e7dac60
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/8e7dac60
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/8e7dac60
Branch: refs/heads/master
Commit: 8e7dac60871d8ba94a1d5c5c83e176bd96c0f0c3
Parents: 67bc823
Author: Konstantin Boudnik <co...@apache.org>
Authored: Thu Apr 28 14:12:35 2016 -0700
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Thu Apr 28 15:53:29 2016 -0700
----------------------------------------------------------------------
packages.gradle | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/8e7dac60/packages.gradle
----------------------------------------------------------------------
diff --git a/packages.gradle b/packages.gradle
index d36e372..40c04e3 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -107,7 +107,7 @@ def nativePackaging = {
errorOutput devNull
standardOutput devNull
}
- [false, "deb", "rpm"][result.getExitValue()]
+ [false, [pkg:"deb", repo:"apt"], [pkg:"rpm", repo:"yum"]][result.getExitValue()]
}.call()
def generateDistributionsFile = { file ->
@@ -533,12 +533,13 @@ def genTasks = { target ->
touchTargetFile(config.bigtop.components[target].targetsrpm)
}
if (nativePackaging) {
- task "$target-pkg" (dependsOn: "$target-$nativePackaging",
- description: "Invoking a native binary packaging target $nativePackaging",
+ def ptype = nativePackaging.pkg
+ task "$target-pkg" (dependsOn: "$target-$ptype",
+ description: "Invoking a native binary packaging target $ptype",
group: PACKAGES_GROUP) << {
}
- task "$target-spkg" (dependsOn: "$target-s$nativePackaging",
- description: "Invoking a native binary packaging target s$nativePackaging",
+ task "$target-spkg" (dependsOn: "$target-s$ptype",
+ description: "Invoking a native binary packaging target s$ptype",
group: PACKAGES_GROUP) << {
}
}
@@ -654,6 +655,10 @@ project.afterEvaluate {
description: "Build all DEB packages for the stack components",
group: PACKAGES_GROUP
) << { }
+ task "pkgs" (dependsOn: tasks.findAll { alltask -> alltask.name.endsWith("-pkg")}*.name,
+ description: "Build all native packages for the stack components",
+ group: PACKAGES_GROUP
+ ) << { }
task allclean (dependsOn: [clean, tasks.findAll { alltask -> alltask.name.endsWith("-clean")}*.name],
description: "Removing $BUILD_DIR, $OUTPUT_DIR, and $DIST_DIR.\n\t\t" +
@@ -698,3 +703,9 @@ task "yum" (
commandLine "createrepo -o $OUTPUT_DIR $OUTPUT_DIR".split(' ')
}
}
+
+if (nativePackaging) {
+ task "repo" (dependsOn: nativePackaging.repo,
+ description: "Invoking a native repository target ${nativePackaging.repo}",
+ group: PACKAGES_GROUP) << { }
+}