示例#1
0
  private boolean init(Map<String, AppValue> options) {
    inputFiles = getFiles(options);
    if (inputFiles == null) {
      return false;
    }

    outputFolder = AppUtils.getFolder(options, Options.OutputFolder);
    if (outputFolder == null) {
      LoggingUtils.getLogger().warning("Could not open folder.");
      return false;
    }

    // Get trace unit
    String traceUnitString = AppUtils.getString(options, Options.TraceUnit);
    traceUnitName = EnumUtils.valueOf(TraceUnits.class, traceUnitString);
    if (traceUnitName == null) {
      LoggingUtils.getLogger().warning("Could not get Trace Unit name.");
      return false;
    }

    String systemConfigFilename = AppUtils.getString(options, Options.SystemSetup);
    systemConfigFile = new File(systemConfigFilename);
    if (!systemConfigFile.exists()) {
      LoggingUtils.getLogger()
          .info("MicroBlaze setup file '" + systemConfigFilename + "' not found.");
    }

    return true;
  }