final String snippetPath, final String fileEncoding) {
if (DEBUG) {
System.out.println("DEBUG: " + TAG);
}
ACPWorkflowConfig config = ACPWorkflowConfig.getInstance();
config.setFileEncoding(fileEncoding);
config.setGenPath(genPath);
config.setGenPathCodeSnippet(snippetPath);
/*
* Windows requires another path format as unix/linux and mac os
*/
String osName = System.getProperty("os.name");
if (osName.contains("Windows")) {
config.setEcorePath(ecorePath.replaceAll("\\\\", "/"));
} else {
config.setEcorePath(ecorePath);
}
new ACPWorkflowImpl(config).run(monitor);
}