Package org.jboss.forge.project.facets

Examples of org.jboss.forge.project.facets.JavaExecutionFacet


   public void executeJavaClass(
            @Option(name = "class", type = PromptType.JAVA_CLASS, required = true) final JavaResource classToExecute,
                                @Option(name = "arguments") final String arguments) throws Exception
   {
      String qualifiedName = classToExecute.getJavaSource().getQualifiedName();
      JavaExecutionFacet facet = project.getFacet(JavaExecutionFacet.class);
      if (arguments != null)
      {
         facet.executeProjectClass(qualifiedName, arguments.split(" "));
      }
      else
      {
         facet.executeProjectClass(qualifiedName);
      }

   }
View Full Code Here


      }
   }

   private void runExporterClass(PipeOut out) throws IOException
   {
      JavaExecutionFacet facet = project.getFacet(JavaExecutionFacet.class);
      facet.executeProjectClass("forge.arquillian.DeploymentExporter", resource.getJavaSource().getQualifiedName());
   }
View Full Code Here

   public void executeJavaClass(
            @Option(name = "class", type = PromptType.JAVA_CLASS, required = true) final JavaResource classToExecute,
            @Option(name = "arguments") final String arguments) throws Exception
   {
      String qualifiedName = classToExecute.getJavaSource().getQualifiedName();
      JavaExecutionFacet facet = project.getFacet(JavaExecutionFacet.class);
      if (arguments != null)
      {
         facet.executeProjectClass(qualifiedName, arguments.split(" "));
      }
      else
      {
         facet.executeProjectClass(qualifiedName);
      }

   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.project.facets.JavaExecutionFacet

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.