Repository: bigtop Updated Branches: refs/heads/master a0035a393 -> 40b6b2f62
BIGTOP-1585. test artifacts tasks include extra tasks for nonexisting components Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/40b6b2f6 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/40b6b2f6 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/40b6b2f6 Branch: refs/heads/master Commit: 40b6b2f62af083eae9cc0ff7c26f6b357f407484 Parents: a0035a3 Author: Konstantin Boudnik <[email protected]> Authored: Mon Jan 5 11:04:02 2015 -0800 Committer: Konstantin Boudnik <[email protected]> Committed: Mon Jan 5 11:04:02 2015 -0800 ---------------------------------------------------------------------- build.gradle | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/40b6b2f6/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index ff776bf..02ac770 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
