Repository: incubator-edgent Updated Branches: refs/heads/master 413dbed13 -> 516caa821
Edgent-240 [gradle] only blurt test hint for "test" task Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/516caa82 Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/516caa82 Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/516caa82 Branch: refs/heads/master Commit: 516caa821591b4a48d925cea7f761c0f32aa6e40 Parents: 413dbed Author: Dale LaBossiere <dlab...@us.ibm.com> Authored: Thu Sep 8 14:05:09 2016 -0400 Committer: Dale LaBossiere <dlab...@us.ibm.com> Committed: Thu Sep 8 14:05:09 2016 -0400 ---------------------------------------------------------------------- build.gradle | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/516caa82/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 3322337..a2fc91b 100644 --- a/build.gradle +++ b/build.gradle @@ -273,15 +273,17 @@ def String mkManifestClassPath(Project proj) { return classPathStr } -test { - println "\nHINTs: Use the '--tests <testClassNamePattern>[.<testMethodNamePattern>]' option to select specific test classes or methods." - println " ./gradlew :api:topology:test --tests '*JsonFunctionsTest'" - println " ./gradlew :api:topology:test --tests '*JsonFunctionsTest.testBytes'" - println "Use the 'cleanTest' task to force a rerun of a previously successful test task:" - println " ./gradlew :api:topology:cleanTest :api:topology:test" - println " ./gradlew cleanTest test" - println "" - sleep 1 +gradle.taskGraph.whenReady {taskGraph -> + if (taskGraph.hasTask(test)) { + println "\nHINTs: Use the '--tests <testClassNamePattern>[.<testMethodNamePattern>]' option to select specific test classes or methods." + println " ./gradlew :api:topology:test --tests '*JsonFunctionsTest'" + println " ./gradlew :api:topology:test --tests '*JsonFunctionsTest.testBytes'" + println "Use the 'cleanTest' task to force a rerun of a previously successful test task:" + println " ./gradlew :api:topology:cleanTest :api:topology:test" + println " ./gradlew cleanTest test" + println "" + sleep 2 + } } /* Configure subprojects */