Package org.jboss.shrinkwrap.descriptor.spi

Examples of org.jboss.shrinkwrap.descriptor.spi.Node.create()


               {
                  return;
               }
            }

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

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


               {
                  return;
               }
            }

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

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

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

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

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

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

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

      Node module = XMLParser.parse(getClass().getResourceAsStream("/org/jboss/forge/modules/module.xml"));
      module.attribute("name", pluginName);
      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

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

      // Copy the compiled JAR into the module directory
      FileResource<?> jar = moduleDir.getChild(dep.getArtifactId() + ".jar").reify(FileResource.class);
      jar.createNewFile();
      jar.setContents(artifact.getResourceInputStream());
View Full Code Here

      jar.createNewFile();
      jar.setContents(artifact.getResourceInputStream());

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

      moduleXml.setContents(XMLParser.toXMLString(module));
View Full Code Here

      jar.setContents(artifact.getResourceInputStream());

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

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

      createDependenciesModule(project, dep);
View Full Code Here

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");
      dependencies.create("module").attribute("name", pluginName + ".dependencies").attribute("slot", pluginSlot);
      dependencies.create("module").attribute("name", "org.jboss.forge.shell-api");
      dependencies.create("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.create("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

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.