This commit is contained in:
Tim McIver 2013-02-12 12:37:06 -05:00
commit 8e9e2482a8
2 changed files with 26 additions and 0 deletions

View File

@ -553,6 +553,26 @@ public class Case {
} }
} }
/**
* Get absolute module output directory path where modules should save their permanent data
* The directory is a subdirectory of this case dir.
* @return absolute path to the module output dir
*/
public String getModulesOutputDirectoryPath() {
return this.getCaseDirectory() + File.separator + getModulesOutputDirectory();
}
/**
* Get relative (with respect to case dir)
* module output directory path where modules should save their permanent data
* The directory is a subdirectory of this case dir.
* @return relative path to the module output dir
*/
public String getModulesOutputDirectory() {
return "ModuleOutput";
}
/** /**
* get the PropertyChangeSupport of this class * get the PropertyChangeSupport of this class
* @return PropertyChangeSupport * @return PropertyChangeSupport

View File

@ -146,6 +146,12 @@ public final class JavaSystemCaller {
logger.log(Level.INFO, "Executing " + aShell.getShellCommand() + " " + command); logger.log(Level.INFO, "Executing " + aShell.getShellCommand() + " " + command);
proc = rt.exec(aShell.getShellCommand() + " " + command); proc = rt.exec(aShell.getShellCommand() + " " + command);
try {
//give time to fully start the process
Thread.sleep(2000);
} catch (InterruptedException ex) {
logger.log(Level.WARNING, "Pause interrupted");
}
// any error message? // any error message?
final JavaSystemCaller.StreamGobbler errorGobbler = new JavaSystemCaller.StreamGobbler(proc.getErrorStream(), "ERROR"); final JavaSystemCaller.StreamGobbler errorGobbler = new JavaSystemCaller.StreamGobbler(proc.getErrorStream(), "ERROR");