You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by gr...@apache.org on 2018/10/18 21:20:14 UTC

[3/3] kudu git commit: [java] Allow command line override of kuduBinDir

[java] Allow command line override of kuduBinDir

This patch allows overriding the kuduBinDir in the
Gradle build by passing -DkuduBinDir or -PkuduBinDir
when running `gradle test`.

Change-Id: Icd7e60da01bae8aa6677e17dc4193ace26078a11
Reviewed-on: http://gerrit.cloudera.org:8080/11725
Tested-by: Kudu Jenkins
Reviewed-by: Mike Percy <mp...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/785490ce
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/785490ce
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/785490ce

Branch: refs/heads/master
Commit: 785490ce509e68029f8062882bb7021895e3b446
Parents: 1d34ae6
Author: Grant Henke <gr...@apache.org>
Authored: Thu Oct 18 14:05:18 2018 -0500
Committer: Grant Henke <gr...@apache.org>
Committed: Thu Oct 18 21:11:31 2018 +0000

----------------------------------------------------------------------
 java/gradle/tests.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/785490ce/java/gradle/tests.gradle
----------------------------------------------------------------------
diff --git a/java/gradle/tests.gradle b/java/gradle/tests.gradle
index d356ad0..0da59ec 100644
--- a/java/gradle/tests.gradle
+++ b/java/gradle/tests.gradle
@@ -61,7 +61,7 @@ tasks.withType(Test) {
   systemProperty "rerunFailingTestsCount", propertyWithDefault("rerunFailingTestsCount", 0)
 
   // Set kuduBinDir to the binaries to use with the MiniKuduCluster.
-  systemProperty "kuduBinDir", "$project.rootDir/../build/latest/bin"
+  systemProperty "kuduBinDir", propertyWithDefault("kuduBinDir", "$project.rootDir/../build/latest/bin")
 
   // Don't fail the build if a --tests filter doesn't match any tests.
   // This is useful for filtering tests from the top of the project where some