use of net.jangaroo.exml.cli.ExmlcCommandLineParser in project jangaroo-tools by CoreMedia.
the class Exmlc method run.
public static int run(String[] argv) {
ExmlcCommandLineParser parser = new ExmlcCommandLineParser();
ExmlConfiguration exmlConfiguration;
try {
exmlConfiguration = parser.parse(argv);
} catch (CommandLineParseException e) {
// NOSONAR this is a commandline tool
System.err.println(e.getMessage());
return e.getExitCode();
}
if (exmlConfiguration != null) {
Exmlc exmlc = new Exmlc(exmlConfiguration);
if (exmlConfiguration.isConvertToMxml()) {
exmlc.convertAllExmlToMxml();
} else {
exmlc.generateAllConfigClasses();
exmlc.generateAllComponentClasses();
exmlc.generateXsd();
}
}
return 0;
}
Aggregations