File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/io/appium/java_client/service/local Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,9 @@ public AppiumServiceBuilder() {
138138 protected File findDefaultExecutable () {
139139
140140 String nodeJSExec = System .getProperty (NODE_JS_EXECUTABLE_PROPERTY );
141+ if (StringUtils .isBlank (nodeJSExec )) {
142+ nodeJSExec = System .getenv (NODE_JS_EXECUTABLE_PROPERTY );
143+ }
141144 if (!StringUtils .isBlank (nodeJSExec )) {
142145 File result = new File (nodeJSExec );
143146 if (result .exists ()) {
@@ -231,7 +234,10 @@ void checkAppiumJS(){
231234 }
232235
233236 String appiumJS = System .getProperty (APPIUM_NODE_PROPERTY );
234- if (appiumJS !=null ){
237+ if (StringUtils .isBlank (appiumJS )) {
238+ appiumJS = System .getenv (APPIUM_NODE_PROPERTY );
239+ }
240+ if (!StringUtils .isBlank (appiumJS )){
235241 File node = new File (appiumJS );
236242 validateNodeStructure (node );
237243 this .appiumJS = node ;
You can’t perform that action at this time.
0 commit comments