Skip to content

Commit

Permalink
#272 fix: Property name was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
TikhomirovSergey committed Dec 10, 2015
1 parent 1d71d5e commit 7cc7e9e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public final class AppiumServiceBuilder extends DriverService.Builder<AppiumDriverLocalService, AppiumServiceBuilder> {

public static final String APPIUM_NODE_PROPERTY = "appium.node.path";
public static final String NODE_JS_EXECUTABLE_PROPERTY = "appium.node.js.exec.path";
public static final String APPIUM_NODE_JS_EXEC_PATH = "appium.node.js.exec.path";

private static final String APPIUM_FOLDER = "appium";
private static final String BIN_FOLDER = "bin";
Expand Down Expand Up @@ -137,9 +137,9 @@ public AppiumServiceBuilder() {
@Override
protected File findDefaultExecutable() {

String nodeJSExec = System.getProperty(NODE_JS_EXECUTABLE_PROPERTY);
String nodeJSExec = System.getProperty(APPIUM_NODE_JS_EXEC_PATH);
if (StringUtils.isBlank(nodeJSExec)) {
nodeJSExec = System.getenv(NODE_JS_EXECUTABLE_PROPERTY);
nodeJSExec = System.getenv(APPIUM_NODE_JS_EXEC_PATH);
}
if (!StringUtils.isBlank(nodeJSExec)) {
File result = new File(nodeJSExec);
Expand Down

0 comments on commit 7cc7e9e

Please sign in to comment.