Skip to content

Commit

Permalink
eirslett#1160 Property to select node path.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Sep 15, 2024
1 parent f39b40c commit fb5261f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public InstallNodeExecutorConfig(InstallConfig installConfig) {

@Override
public File getNodePath() {
String nodePath = System.getProperty("nodeExecutablePath");
if (nodePath != null) {
return new File(nodePath);
}

String nodeExecutable = getPlatform().isWindows() ? NODE_WINDOWS : NODE_DEFAULT;
return new File(installConfig.getInstallDirectory() + nodeExecutable);
}
Expand Down

0 comments on commit fb5261f

Please sign in to comment.