Package org.jboss.forge.parser.xml

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


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

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

      createDependenciesModule(project, dep);
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");

      List<DependencyResource> pluginDependencies = new ArrayList<DependencyResource>();
      List<Dependency> effectiveDependenciesInScopes = deps.getEffectiveDependenciesInScopes(ScopeType.COMPILE,
               ScopeType.RUNTIME);
      for (Dependency d : effectiveDependenciesInScopes) {
View Full Code Here

         if (FACES_SERVLET_CLASS.equals(servlet.getSingle("servlet-class").getText())) {
            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

            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;
   }

   boolean createMappingIfNotExists(final Node root, final Node servlet, final String mapping)
View Full Code Here

         }
      }
      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;
   }

   boolean createMappingIfNotExists(final Node root, final Node servlet, final String mapping)
   {
View Full Code Here

               return false; // mapping already exists; not created
            }
         }
      }
      Node servletMapping = root.createChild("servlet-mapping");
      servletMapping.createChild("servlet-name").text(servletName);
      servletMapping.createChild("url-pattern").text(mapping);
      return true;
   }

}
View Full Code Here

            }
         }
      }
      Node servletMapping = root.createChild("servlet-mapping");
      servletMapping.createChild("servlet-name").text(servletName);
      servletMapping.createChild("url-pattern").text(mapping);
      return true;
   }

}
View Full Code Here

      Node module = XMLParser.parse(getClass().getResourceAsStream(MODULE_TEMPLATE_XML));
      module.attribute("name", pluginName);
      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

      resources.createChild("resource-root").attribute("path", dep.getArtifactId() + ".jar");

      if (dependenciesAsResourceRoot)
      {
         writeResourceRoots(project, module, moduleDir, resources);
      }
View Full Code Here

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");

      if (!dependenciesAsResourceRoot)
      {
         dependencies.createChild("module").attribute("name", pluginName + ".dependencies")
                  .attribute("slot", pluginSlot);
      }

      dependencies.createChild("module").attribute("name", "org.jboss.forge.javaee.api")
               .attribute("services", "import");
View Full Code Here

      {
         dependencies.createChild("module").attribute("name", pluginName + ".dependencies")
                  .attribute("slot", pluginSlot);
      }

      dependencies.createChild("module").attribute("name", "org.jboss.forge.javaee.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.maven.api")
               .attribute("services", "import");
      dependencies.createChild("module").attribute("name", "org.jboss.forge.scaffold.api")
               .attribute("services", "import");
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.