Package org.jboss.forge.addon.projects.facets

Examples of org.jboss.forge.addon.projects.facets.BuildStatusFacet


      {
         UISelection<?> selection = uiContext.getSelection();
         Project project = Projects.getSelectedProject(projectFactory, selection);
         if (project != null && project.hasFacet(BuildStatusFacet.class))
         {
            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

TOP

Related Classes of org.jboss.forge.addon.projects.facets.BuildStatusFacet

Copyright © 2018 www.massapicom. 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.