rabbah closed pull request #3: Create more understandable OPENWHISK_HOME 
missing msg
URL: https://github.com/apache/incubator-openwhisk-runtime-java/pull/3
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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')


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to