aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKonstantin Boudnik <cos@apache.org>2015-01-05 11:04:02 -0800
committerKonstantin Boudnik <cos@apache.org>2015-01-05 11:04:02 -0800
commit40b6b2f62af083eae9cc0ff7c26f6b357f407484 (patch)
tree06c7c49d085bb55764558cf290329d0bb4b28e81 /build.gradle
parenta0035a39383b19662b247066860b8940eef6281a (diff)
BIGTOP-1585. test artifacts tasks include extra tasks for nonexisting components
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle10
1 files changed, 2 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle
index ff776bf2..02ac770f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -64,14 +64,8 @@ def artifactToInstall = {
def final TEST_DIR = "bigtop-tests/test-artifacts"
def final ARTIFACT_DIR = "${BASE_DIR}/${TEST_DIR}"
- File srcDir
- srcDir = file("${TEST_DIR}")
- def artifactFiles = files {srcDir.listFiles()}
- def artifactCollection = []
- artifactFiles.each { File file ->
- artifactCollection.add(file.name)
- }
- artifactCollection.each { artifact ->
+ def project = new XmlSlurper().parse("$TEST_DIR/pom.xml")
+ project.modules.module.each { artifact ->
task "install-${artifact}" (description: "Installs ${artifact} artifact with Maven", group: TESTARTIFACTS_GROUP) << {
def final PATH = "${ARTIFACT_DIR}/$artifact/pom.xml"
def final WRAPPER = "mvn clean install -f " + PATH