Package org.apache.maven.plugin.logging

Examples of org.apache.maven.plugin.logging.Log.error()


        try {
            // ANTLR Tool buld interface
            //
            tool = new Tool();
        } catch (Exception e) {
            log.error("The attempt to create the ANTLR build tool failed, see exception report for details");

            throw new MojoFailureException("Jim failed you!");
        }

        // Next we need to set the options given to us in the pom into the
View Full Code Here


            //
            processGrammarFiles(sourceDirectory, outputDirectory);

        } catch (InclusionScanException ie) {

            log.error(ie);
            throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze");

        } catch (Exception e) {

            getLog().error(e);
View Full Code Here

    List<List<String>> argumentSets;
        try {
      List<String> args = getCommandArguments();
            argumentSets = processGrammarFiles(args, sourceDirectory);
        } catch (InclusionScanException ie) {
            log.error(ie);
            throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze", ie);
        }

    log.debug("Output directory base will be " + outputDirectory.getAbsolutePath());
    log.info("ANTLR 4: Processing source directory " + sourceDirectory.getAbsolutePath());
View Full Code Here

    for (List<String> args : argumentSets) {
      try {
        // Create an instance of the ANTLR 4 build tool
        tool = new CustomTool(args.toArray(new String[args.size()]));
      } catch (Exception e) {
        log.error("The attempt to create the ANTLR 4 build tool failed, see exception report for details", e);
        throw new MojoFailureException("Error creating an instanceof the ANTLR tool.", e);
      }

      // Set working directory for ANTLR to be the base source directory
      tool.inputDirectory = sourceDirectory;
View Full Code Here

        private void log(BuildEvent event) {
            int priority = event.getPriority();
            Log log = getLog();
            switch (priority) {
            case Project.MSG_ERR:
                log.error(event.getMessage());
                break;

            case Project.MSG_WARN:
                log.warn(event.getMessage());
                break;
View Full Code Here

   
    try {
      final Checker checker = new Checker(loader, internalRuntimeForbidden, failOnMissingClasses, failOnUnresolvableSignatures) {
        @Override
        protected void logError(String msg) {
          log.error(msg);
        }
       
        @Override
        protected void logWarn(String msg) {
          log.warn(msg);
View Full Code Here

        try {
            // ANTLR Tool buld interface
            //
            tool = new Tool();
        } catch (Exception e) {
            log.error("The attempt to create the ANTLR build tool failed, see exception report for details");

            throw new MojoFailureException("Jim failed you!");
        }

        // Next we need to set the options given to us in the pom into the
View Full Code Here

            //
            processGrammarFiles(sourceDirectory, outputDirectory);

        } catch (InclusionScanException ie) {

            log.error(ie);
            throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze");

        } catch (Exception e) {

            getLog().error(e);
View Full Code Here

        try {
            // ANTLR Tool buld interface
            //
            tool = new Tool();
        } catch (Exception e) {
            log.error("The attempt to create the ANTLR build tool failed, see exception report for details");

            throw new MojoFailureException("Jim failed you!");
        }

        // Next we need to set the options given to us in the pom into the
View Full Code Here

            //
            processGrammarFiles(sourceDirectory, outputDirectory);

        } catch (InclusionScanException ie) {

            log.error(ie);
            throw new MojoExecutionException("Fatal error occured while evaluating the names of the grammar files to analyze");

        } catch (Exception e) {

            getLog().error(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.