Search in sources :

Example 1 with JoocCommandLineParser

use of net.jangaroo.jooc.cli.JoocCommandLineParser in project jangaroo-tools by CoreMedia.

the class Jooc method run.

public static int run(String[] argv, CompileLog log) {
    try {
        JoocCommandLineParser commandLineParser = new JoocCommandLineParser();
        JoocConfiguration config = commandLineParser.parse(argv);
        if (config != null) {
            return new Jooc(config, log).run().getResultCode();
        }
    } catch (CommandLineParseException e) {
        // NOSONAR this is a commandline tool
        System.out.println(e.getMessage());
        return e.getExitCode();
    }
    return CompilationResult.RESULT_CODE_OK;
}
Also used : CommandLineParseException(net.jangaroo.jooc.cli.CommandLineParseException) JoocCommandLineParser(net.jangaroo.jooc.cli.JoocCommandLineParser) JoocConfiguration(net.jangaroo.jooc.config.JoocConfiguration)

Aggregations

CommandLineParseException (net.jangaroo.jooc.cli.CommandLineParseException)1 JoocCommandLineParser (net.jangaroo.jooc.cli.JoocCommandLineParser)1 JoocConfiguration (net.jangaroo.jooc.config.JoocConfiguration)1