Examples of InstallFacets


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

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

      if (project.hasFacet(SoapFacet.class))
      {
         ShellMessages.success(out, "Soap Web Services (JAX-WS) is installed.");
View Full Code Here

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

   @SetupCommand
   public void setup(@Option(name = "activatorType") RestActivatorType activatorType, final PipeOut out)
   {
      if (!project.hasFacet(RestFacet.class))
      {
         request.fire(new InstallFacets(RestFacet.class));
      }

      String rootpath = prompt.prompt("What root path do you want to use for your resources?", "/rest");
      configuration.addProperty(RestFacet.ROOTPATH, rootpath);

      if (activatorType == null || activatorType == RestActivatorType.WEB_XML
               && !project.hasFacet(RestWebXmlFacetImpl.class))
      {
         request.fire(new InstallFacets(RestWebXmlFacetImpl.class));
      }
      else if (activatorType == RestActivatorType.APP_CLASS && !project.hasFacet(RestApplicationFacet.class))
      {
         String pkg = prompt.promptCommon("In what package do you want to store the Application class?",
                  PromptType.JAVA_PACKAGE);
         String restApplication = prompt.prompt("How do you want to name the Application class?", "RestApplication");
         configuration.addProperty(RestApplicationFacet.REST_APPLICATIONCLASS_PACKAGE, pkg);
         configuration.addProperty(RestApplicationFacet.REST_APPLICATIONCLASS_NAME, restApplication);
         request.fire(new InstallFacets(RestApplicationFacet.class));
      }

      if (project.hasFacet(RestFacet.class))
      {
         ShellMessages.success(out, "Rest Web Services (JAX-RS) is installed.");
View Full Code Here

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

      /*
       * Make sure we have all the features we need for this to work.
       */
      if (!project.hasAllFacets(Arrays.asList(EJBFacet.class, PersistenceFacet.class)))
      {
         request.fire(new InstallFacets(true, JTAFacet.class, EJBFacet.class, PersistenceFacet.class));
      }

      if (((targets == null) || (targets.length < 1))
               && (currentResource instanceof JavaResource))
      {
View Full Code Here

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

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

        if (project.hasFacet(JMSFacet.class))
        {
            ShellMessages.success(out, "JMS is installed.");
View Full Code Here

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

          * Fire the InstallFacets event. This would not setup the facet completely, i.e. ScaffoldProvider.setup would
          * not be invoked. But this is necessary, otherwise the ScaffoldProvider would not be registered as
          * project facet!
          */
         project.setAttribute(INSTALLING_SCAFFOLD, Boolean.TRUE);
         installFacets.fire(new InstallFacets(scaffoldImpl.getClass()));
         project.removeAttribute(INSTALLING_SCAFFOLD);
      }
      else if (!project.hasFacet(scaffoldImpl.getClass()))
      {
         throw new RuntimeException("Aborted.");
View Full Code Here

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

          * Fire the InstallFacets event. This would not setup the facet completely, i.e. ScaffoldProvider.setup would
          * not be invoked. But this is necessary, otherwise the ScaffoldProvider would not be registered as
          * project facet!
          */
         project.setAttribute(INSTALLING_SCAFFOLD, Boolean.TRUE);
         installFacets.fire(new InstallFacets(scaffoldImpl.getClass()));
         project.removeAttribute(INSTALLING_SCAFFOLD);
      }
      else if (!project.hasFacet(scaffoldImpl.getClass()))
      {
         throw new RuntimeException("Aborted.");
View Full Code Here

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

   @SetupCommand
   public void setup(final PipeOut out)
   {
      if (!project.hasFacet(ForgeAPIFacet.class))
      {
         event.fire(new InstallFacets(ForgeAPIFacet.class));
         if (!project.hasFacet(ForgeAPIFacet.class))
         {
            throw new RuntimeException("Could not install Forge API");
         }
      }
View Full Code Here

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

   @SetupCommand
   public void setup(PipeOut out)
   {
      if (!project.hasFacet(GitFacet.class))
         event.fire(new InstallFacets(GitFacet.class));
      else
         ShellMessages.info(out, "Git repository exists already.");
   }
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

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

      if (project.hasFacet(RestFacet.class))
      {
         ShellMessages.success(out, "Rest Web Services (JAX-RS) 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.