Package org.jboss.forge.addon.ui.output

Examples of org.jboss.forge.addon.ui.output.UIOutput.error()


            BuildStatusFacet facet = project.getFacet(BuildStatusFacet.class);
            if (!facet.isBuildable())
            {
               UIOutput output = uiContext.getProvider().getOutput();
               PrintStream err = output.err();
               output.error(err, String.format("Project '%s' has errors", project.getRoot()));
               for (LogRecord record : facet.getBuildMessages())
               {
                  if (Level.SEVERE.equals(record.getLevel()))
                  {
                     output.error(err, record.getMessage());
View Full Code Here


               output.error(err, String.format("Project '%s' has errors", project.getRoot()));
               for (LogRecord record : facet.getBuildMessages())
               {
                  if (Level.SEVERE.equals(record.getLevel()))
                  {
                     output.error(err, record.getMessage());
                  }
                  else if (Level.WARNING.equals(record.getLevel()))
                  {
                     output.warn(err, record.getMessage());
                  }
View Full Code Here

         BuildResult buildResult = facet.getBuildResult();
         if (!buildResult.isSuccess())
         {
            UIOutput output = uiContext.getProvider().getOutput();
            PrintStream err = output.err();
            output.error(err, String.format("Project '%s' has errors", project.getRoot()));
            for (BuildMessage message : buildResult.getMessages())
            {
               switch (message.getSeverity())
               {
               case ERROR:
View Full Code Here

            for (BuildMessage message : buildResult.getMessages())
            {
               switch (message.getSeverity())
               {
               case ERROR:
                  output.error(err, message.getMessage());
                  break;
               case WARN:
                  output.warn(err, message.getMessage());
                  break;
               case INFO:
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.