Package org.jboss.forge.project

Examples of org.jboss.forge.project.Facet


               || shell.promptBoolean("An action has requested to remove the following facets from your project "
                        + request.getFacetTypes() + " continue?", true))
      {
         for (Class<? extends Facet> type : request.getFacetTypes())
         {
            Facet facet = factory.getFacet(type);
            if (project.hasFacet(type))
            {
               removed.addAll(remove(facet, false));
            }
            else
View Full Code Here


      Project result = null;
      if (pom.exists())
      {
         result = new ProjectImpl(factory, dir);
         Facet facet = new MavenCoreFacetImpl(container, writer);
         facet.setProject(result);
         result.registerFacet(facet);
      }
      return result;
   }
View Full Code Here

            completer = AvailableFacetsCompleter.class,
            description = "Name of the facet to install") final String facetName)
   {
      try
      {
         Facet facet = factory.getFacetByName(facetName);
         installFacets.fire(new InstallFacets(facet.getClass()));
      }
      catch (FacetNotFoundException e)
      {
         throw new RuntimeException("Could not find a facet with the name: " + facetName
                  + "; use 'project list-facets' to list all available facets.", e);
View Full Code Here

            completer = InstalledFacetsCompleter.class,
            description = "Name of the facet to install") final String facetName)
   {
      try
      {
         Facet facet = factory.getFacetByName(facetName);
         removeFacets.fire(new RemoveFacets(facet.getClass()));
      }
      catch (FacetNotFoundException e)
      {
         throw new RuntimeException("Could not find a facet with the name: " + facetName
                  + "; use 'project list-facets' to list all available facets.", e);
View Full Code Here

      return result;
   }

   public Facet getFacetByName(final String facetName) throws FacetNotFoundException
   {
      Facet result = null;
      for (Class<? extends Facet> facet : getFacetTypes())
      {
         String name = ConstraintInspector.getName(facet);
         if (name.equals(facetName))
         {
View Full Code Here

TOP

Related Classes of org.jboss.forge.project.Facet

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.