mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge branch 'master' of https://github.com/sleuthkit/autopsy
This commit is contained in:
commit
8e9e2482a8
@ -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
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user