19 package org.sleuthkit.autopsy.core;
21 import java.util.HashSet;
24 import java.util.logging.Level;
26 import org.netbeans.api.sendopts.CommandException;
27 import org.netbeans.spi.sendopts.Env;
28 import org.netbeans.spi.sendopts.Option;
29 import org.netbeans.spi.sendopts.OptionProcessor;
30 import org.openide.util.lookup.ServiceProvider;
39 @ServiceProvider(service=OptionProcessor.class)
43 private final Option liveAutopsyOption = Option.optionalArgument(
'l',
"liveAutopsy");
45 private final static String PROP_BASECASE =
"LBL_BaseCase_PATH";
50 Set<Option> set =
new HashSet<>();
51 set.add(liveAutopsyOption);
56 protected void process(Env env, Map<Option, String[]> values) throws CommandException {
57 if(values.containsKey(liveAutopsyOption)){
62 String[] argDirs= values.get(liveAutopsyOption);
63 String startingCaseDir;
64 if (argDirs == null || argDirs.length == 0) {
68 startingCaseDir = argDirs[0];
72 logger.log(Level.SEVERE, ex.getMessage(), ex);
static synchronized void setRunningInTarget(boolean runningInTarget)
static synchronized void setConfigSetting(String moduleName, String settingName, String settingVal)
void process(Env env, Map< Option, String[]> values)
Set< Option > getOptions()
static final String MAIN_SETTINGS
synchronized static Logger getLogger(String name)