Package org.jboss.forge.maven.plugins

Examples of org.jboss.forge.maven.plugins.ConfigurationBuilder


   private void addProcessorPlugin(MetaModelProvider provider)
   {
      DependencyBuilder processorDependency = createProcessorDependency();
      Dependency versioned = promptVersion(processorDependency);

      ConfigurationBuilder configuration = ConfigurationBuilder.create();
      configuration.createConfigurationElement("processors")
               .addChild("processor").setText(provider.getProcessor());
      if (!Strings.isNullOrEmpty(provider.getCompilerArguments()))
      {
         configuration.createConfigurationElement("compilerArguments")
                  .setText(provider.getCompilerArguments());
      }

      ExecutionBuilder execution = ExecutionBuilder.create()
               .setId("process")
View Full Code Here


      PluginExecution execution = new PluginExecution();
      execution.setId("unpack");
      execution.setPhase("process-test-classes");
      execution.addGoal("unpack");

      ConfigurationBuilder configBuilder = ConfigurationBuilder.create();
      ConfigurationElementBuilder artifactItem = configBuilder
               .createConfigurationElement("artifactItems").addChild("artifactItem");
      artifactItem.addChild("groupId").setText("org.jboss.as");
      artifactItem.addChild("artifactId").setText("jboss-as-dist");
      artifactItem.addChild("version").setText("7.1.0.CR1b");
      artifactItem.addChild("type").setText("zip");
      artifactItem.addChild("outputDirectory").setText("target/");
      try {
         new Xpp3DomBuilder();
         execution.setConfiguration(
                  Xpp3DomBuilder.build(new ByteArrayInputStream(configBuilder.toString().getBytes()), "UTF-8"));
      }
      catch (XmlPullParserException e) {
         throw new RuntimeException(e);
      }
      catch (IOException e) {
View Full Code Here

   private void addProcessorPlugin(MetaModelProvider provider)
   {
      DependencyBuilder processorDependency = createProcessorDependency();
      Dependency versioned = promptVersion(processorDependency);

      ConfigurationBuilder configuration = ConfigurationBuilder.create();
      configuration.createConfigurationElement("processors")
               .addChild("processor").setText(provider.getProcessor());
      if (!Strings.isNullOrEmpty(provider.getCompilerArguments()))
      {
         configuration.createConfigurationElement("compilerArguments")
                  .setText(provider.getCompilerArguments());
      }

      ExecutionBuilder execution = ExecutionBuilder.create()
               .setId("process")
View Full Code Here

   private void addProcessorPlugin(MetaModelProvider provider)
   {
      DependencyBuilder processorDependency = createProcessorDependency();
      Dependency versioned = promptVersion(processorDependency);
     
      ConfigurationBuilder configuration = ConfigurationBuilder.create();
      configuration.createConfigurationElement("processors")
                  .addChild("processor").setText(provider.getProcessor());
      if (!Strings.isNullOrEmpty(provider.getCompilerArguments()))
      {
         configuration.createConfigurationElement("compilerArguments")
                  .setText(provider.getCompilerArguments());
      }
               
      ExecutionBuilder execution = ExecutionBuilder.create()
               .setId("process")
View Full Code Here

                  .setArtifactId(container.getDownload().getArtifactId()));
      org.jboss.forge.project.dependencies.Dependency asVersion = shell.promptChoiceTyped(
            "Which version of the container do you want to install?", asDependencies,
            DependencyUtil.getLatestNonSnapshotVersion(asDependencies));

      ConfigurationBuilder configuration = ConfigurationBuilder.create();
      configuration.createConfigurationElement("artifactItems")
            .createConfigurationElement("artifactItem")
            .addChild("groupId").setText(container.getDownload().getGroupId()).getParentElement()
            .addChild("artifactId").setText(container.getDownload().getArtifactId()).getParentElement()
            .addChild("version").setText(asVersion.getVersion()).getParentElement()
            .addChild("type").setText("zip").getParentElement()
View Full Code Here

      PluginExecution execution = new PluginExecution();
      execution.setId("unpack");
      execution.setPhase("process-test-classes");
      execution.addGoal("unpack");

      ConfigurationBuilder configBuilder = ConfigurationBuilder.create();
      ConfigurationElementBuilder artifactItem = configBuilder
               .createConfigurationElement("artifactItems").addChild("artifactItem");
      artifactItem.addChild("groupId").setText("org.jboss.as");
      artifactItem.addChild("artifactId").setText("jboss-as-dist");
      artifactItem.addChild("version").setText("7.1.1.Final");
      artifactItem.addChild("type").setText("zip");
      artifactItem.addChild("outputDirectory").setText("target/");
      try {
         new Xpp3DomBuilder();
         execution.setConfiguration(
                  Xpp3DomBuilder.build(new ByteArrayInputStream(configBuilder.toString().getBytes()), "UTF-8"));
      }
      catch (XmlPullParserException e) {
         throw new RuntimeException(e);
      }
      catch (IOException e) {
View Full Code Here

   private void addProcessorPlugin(MetaModelProvider provider)
   {
      DependencyBuilder processorDependency = createProcessorDependency();
      Dependency versioned = promptVersion(processorDependency);

      ConfigurationBuilder configuration = ConfigurationBuilder.create();
      configuration.createConfigurationElement("processors")
               .addChild("processor").setText(provider.getProcessor());
      if (!Strings.isNullOrEmpty(provider.getCompilerArguments()))
      {
         configuration.createConfigurationElement("compilerArguments")
                  .setText(provider.getCompilerArguments());
      }

      ExecutionBuilder execution = ExecutionBuilder.create()
               .setId("process")
View Full Code Here

TOP

Related Classes of org.jboss.forge.maven.plugins.ConfigurationBuilder

Copyright © 2018 www.massapicom. 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.