private static String getAbsoluteExecutablePath(final Config config) { if (Strings.isNullOrEmpty(config.getWrapperScript())) { return ""; } return FileUtilities.getAbsoluteFileForExecutables(new File(config.getWrapperScript())) .getPath(); }
@Override public Worker create(final Config config, final DependencyResolver dependencies) { final MSMSEvalWorker worker = new MSMSEvalWorker(); worker.setMsmsEvalExecutable( FileUtilities.getAbsoluteFileForExecutables(new File(config.get(MSMS_EVAL_EXECUTABLE)))); worker.setConverter(getConverter()); return worker; }