Permalink
Browse files

updated README.md

  • Loading branch information...
2 parents 20a4cd6 + ef79995 commit 7488f29f0bd341c1e63c62e812030eeff6845597 @sirrapa committed Dec 20, 2012
@@ -110,7 +110,7 @@ protected String getNodeJsExecutable(String osFamily) {
}
getLog().debug(String.format("Determing executable for osFamily = '%s'",osFamily));
StringBuilder sb = new StringBuilder(nodejsDirectory.getAbsolutePath());
- if (osFamily.toLowerCase().startsWith("win")) {
+ if (osFamily.toLowerCase().startsWith("win")|| Os.FAMILY_DOS.equals(osFamily)) {
sb.append(File.separator).append("node.exe");
} else {
sb.append(File.separator).append("bin").append(File.separator).append("node");
@@ -177,7 +177,7 @@ public void testGetNodeJsExecutable() throws Exception {
nodejsEx = mojo.getNodeJsExecutable(family);
log.debug(String.format("nodejsEx for %s = %s", family, nodejsEx));
- if (family.startsWith("win")) {
+ if (family.startsWith("win")|| Os.FAMILY_DOS.equals(family)) {
assertTrue(String.format("The nodejs executable for %s family is invalid", family), nodejsEx.endsWith(File.separator + "nodejs" + File.separator + "node.exe"));
} else {
assertTrue(String.format("The nodejs executable for %s family is invalid", family), nodejsEx.endsWith(File.separator + "nodejs" + File.separator + "bin" + File.separator + "node"));

0 comments on commit 7488f29

Please sign in to comment.