Package org.jboss.forge.project.build

Examples of org.jboss.forge.project.build.ProjectBuilder


            @Option(name = "profile", completer = ProfileCompleter.class) final String profile,
            @Option(description = "build arguments") final String... args)
   {
      PackagingFacet packaging = project.getFacet(PackagingFacet.class);

      ProjectBuilder builder = packaging.createBuilder();

      if (args == null) {
         builder.addArguments("install");
      }
      else {
         builder.addArguments(args);
      }

      if (notest) {
         builder.runTests(false);
      }

      if (profile != null) {
         builder.addArguments("-P" + profile);
      }

      try
      {
         builder.build();
      }
      catch (BuildException e)
      {
         throw new RuntimeException("Build failed.", e);
      }
View Full Code Here


            @Option(name = "profile", completer = ProfileCompleter.class) final String profile,
            @Option(description = "build arguments") final String... args)
   {
      PackagingFacet packaging = project.getFacet(PackagingFacet.class);

      ProjectBuilder builder = packaging.createBuilder();

      if (args == null)
      {
         builder.addArguments("install");
      }
      else
      {
         builder.addArguments(args);
      }

      if (notest)
      {
         builder.runTests(false);
      }

      if (profile != null)
      {
         builder.addArguments("-P" + profile);
      }

      try
      {
         builder.build();
      }
      catch (BuildException e)
      {
         throw new RuntimeException("Build failed.", e);
      }
View Full Code Here

TOP

Related Classes of org.jboss.forge.project.build.ProjectBuilder

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.