You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2017/10/26 19:52:45 UTC

[incubator-openwhisk-runtime-java] branch master updated: Create more understandable OPENWHISK_HOME missing msg (#3)

This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-java.git


The following commit(s) were added to refs/heads/master by this push:
     new 34adeff  Create more understandable OPENWHISK_HOME missing msg (#3)
34adeff is described below

commit 34adefff0b530b3fd8d010c1a8ab9f74fe0c3e39
Author: Jonathan Springer <jo...@gmail.com>
AuthorDate: Thu Oct 26 12:52:44 2017 -0700

    Create more understandable OPENWHISK_HOME missing msg (#3)
---
 settings.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/settings.gradle b/settings.gradle
index 2069ac2..47819fb 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,6 +1,11 @@
 def owPath = System.getenv("OPENWHISK_HOME") ?: '../open'
 def owDirectory = new File(owPath)
 
+if (!owDirectory.exists()) {
+    throw new GradleScriptException("Environment variable OPENWHISK_HOME must point to a valid OpenWhisk build", null)
+}
+
+
 include 'common:scala'; project(':common:scala').projectDir = new File(owDirectory, 'common/scala')
 include 'core:controller'; project(':core:controller').projectDir = new File(owDirectory, 'core/controller')
 include 'core:invoker'; project(':core:invoker').projectDir = new File(owDirectory, 'core/invoker')

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].