Modified CWD for starting CC and NC to be the place where the POM resides
git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_hadoop_compat_changes@474 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-maven-plugin/src/main/java/edu/uci/ics/hyracks/maven/plugin/AbstractHyracksMojo.java b/hyracks-maven-plugin/src/main/java/edu/uci/ics/hyracks/maven/plugin/AbstractHyracksMojo.java
index 5145362..b60e378 100644
--- a/hyracks-maven-plugin/src/main/java/edu/uci/ics/hyracks/maven/plugin/AbstractHyracksMojo.java
+++ b/hyracks-maven-plugin/src/main/java/edu/uci/ics/hyracks/maven/plugin/AbstractHyracksMojo.java
@@ -43,7 +43,7 @@
}
protected Process launchWindowsBatch(File command, String options) throws IOException {
- String[] commandWithOptions = new String[] { "cmd.exe", "/C", command.getName() + " " + options };
+ String[] commandWithOptions = new String[] { "cmd.exe", "/C", command.getAbsolutePath() + " " + options };
Process proc = Runtime.getRuntime().exec(commandWithOptions);
dump(proc.getInputStream());
@@ -61,7 +61,7 @@
for (int i = 0; i < optionsArray.length; ++i) {
commandWithOptions[i + 1] = optionsArray[i];
}
- Process proc = Runtime.getRuntime().exec(commandWithOptions, null);
+ Process proc = Runtime.getRuntime().exec(commandWithOptions, null, new File("."));
dump(proc.getInputStream());
dump(proc.getErrorStream());
return proc;