Examples of InstallFacets


Examples of org.jboss.forge.project.facets.events.InstallFacets

            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

Examples of org.jboss.forge.project.facets.events.InstallFacets

            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

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @SetupCommand
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(FacesAPIFacet.class))
      {
         request.fire(new InstallFacets(FacesAPIFacet.class));
         if (!project.hasFacet(CDIFacet.class)) {
            if (prompt.promptBoolean("Do you also want to install CDI?", true)) {
               request.fire(new InstallFacets(CDIFacet.class));
            }
         }
      }
      FacesFacet facet = project.getFacet(FacesFacet.class);
      if (facet.getFacesServletMappings().isEmpty())
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @SetupCommand
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(EJBFacet.class))
      {
         request.fire(new InstallFacets(EJBFacet.class));
      }

      if (project.hasFacet(EJBFacet.class))
      {
         ShellMessages.success(out, "Enterprise Java Beans (EJB) is installed.");
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @SetupCommand
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(CDIFacet.class))
      {
         install.fire(new InstallFacets(CDIFacet.class));
      }

      // TODO enable java SE support

      if (project.hasFacet(CDIFacet.class))
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

      // instantiates the validation provider specified by the user
      final ValidationProvider provider = providerType.getValidationProvider(beanManager);

      if (!project.hasFacet(ValidationFacet.class))
      {
         request.fire(new InstallFacets(ValidationFacet.class));
      }

      installDependencies(provider.getDependencies());

      if (!provider.getAdditionalDependencies().isEmpty())
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @SetupCommand
   public void setup(final PipeOut out, @Option(name = "quickstart") final boolean quickstart)
   {
      if (!project.hasFacet(ServletFacet.class))
      {
         request.fire(new InstallFacets(ServletFacet.class));
      }
      if (quickstart)
      {
         // webRoot is created by the ServletFacet install
         DirectoryResource webRoot = project.getFacet(WebResourceFacet.class).getWebRootDirectory();
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @Command("setup")
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(JSTLFacet.class))
      {
         request.fire(new InstallFacets(JSTLFacet.class));
      }

      if (project.hasFacet(JSTLFacet.class))
      {
         ShellMessages.success(out, "Java Standard Template Library (JSTL) is installed.");
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   private void installPersistence()
   {
      if (!project.hasFacet(PersistenceFacet.class))
      {
         request.fire(new InstallFacets(PersistenceFacet.class));
      }
   }
View Full Code Here

Examples of org.jboss.forge.project.facets.events.InstallFacets

   @SetupCommand
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(JTAFacet.class))
      {
         request.fire(new InstallFacets(JTAFacet.class));
      }

      if (project.hasFacet(JTAFacet.class))
      {
         ShellMessages.success(out, "Java Transaction API (JTA) is installed.");
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.