Package org.jboss.forge.parser.xml

Examples of org.jboss.forge.parser.xml.Node.createChild()


               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.scaffoldx.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.shell.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.seam.render").attribute("services", "import");
      dependencies.createChild("module").attribute("name", "javax.api");

      moduleXml.setContents(XMLParser.toXMLString(module));

      if (!dependenciesAsResourceRoot)
View Full Code Here


      dependencies.createChild("module").attribute("name", "org.jboss.forge.scaffoldx.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.shell.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.seam.render").attribute("services", "import");
      dependencies.createChild("module").attribute("name", "javax.api");

      moduleXml.setContents(XMLParser.toXMLString(module));

      if (!dependenciesAsResourceRoot)
      {
View Full Code Here

      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");
      dependencies.createChild("module").attribute("name", "javax.api");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.shell.api");

      writeResourceRoots(project, module, dependencyDir, resources);

      // Write out the module XML file.
View Full Code Here

      Node resources = module.getSingle("resources");

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");
      dependencies.createChild("module").attribute("name", "javax.api");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.shell.api");

      writeResourceRoots(project, module, dependencyDir, resources);

      // Write out the module XML file.
      moduleXml.setContents(XMLParser.toXMLString(module));
View Full Code Here

               {
                  return;
               }
            }

            excludes.createChild("include").text(dep.getGroupId() + ":" + dep.getArtifactId());
         }
      });
   }

   @Command(help = "Exclude a dependency from the uber-jar")
View Full Code Here

               {
                  return;
               }
            }

            excludes.createChild("exclude").text(dep.getGroupId() + ":" + dep.getArtifactId());
         }
      });
   }

   @Command(help = "Reset the current shade configuration (includes all dependencies).")
View Full Code Here

      {
         @Override
         public void modify(final Node configuration)
         {
            Node relocationNode = configuration.getOrCreate("relocations").createChild("relocation");
            relocationNode.createChild("pattern").text(pattern);
            relocationNode.createChild("shadedPattern").text(shadedPattern);

            String excludeMsg = "";
            if ((excludes != null) && (excludes.length > 0))
            {
View Full Code Here

         @Override
         public void modify(final Node configuration)
         {
            Node relocationNode = configuration.getOrCreate("relocations").createChild("relocation");
            relocationNode.createChild("pattern").text(pattern);
            relocationNode.createChild("shadedPattern").text(shadedPattern);

            String excludeMsg = "";
            if ((excludes != null) && (excludes.length > 0))
            {
               Node excludesNode = relocationNode.createChild("excludes");
View Full Code Here

            if ((excludes != null) && (excludes.length > 0))
            {
               Node excludesNode = relocationNode.createChild("excludes");
               for (String e : excludes)
               {
                  excludesNode.createChild("exclude").text(e);
               }
               excludeMsg = ", excluding " + Arrays.asList(excludes);
            }
            ShellMessages.success(shell, "Relocating [" + pattern + "] to [" + shadedPattern + "]" + excludeMsg);
         }
View Full Code Here

            {
               return servlet;
            }
         }
         Node servlet = root.createChild("servlet");
         servlet.createChild("servlet-name").text("Faces Servlet");
         servlet.createChild("servlet-class").text(FACES_SERVLET_CLASS);
         servlet.createChild("load-on-startup").text("1");
         return servlet;
      }
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.