Class Execution


  • public class Execution
    extends java.lang.Object
    Does the heavy lifting concerning executing stuff.
    • Constructor Summary

      Constructors 
      Constructor Description
      Execution()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.lingocoder.process.io.ProcessIO execute​(org.gradle.api.provider.Property<java.io.File> jar, org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> classpath, org.gradle.api.provider.ListProperty<java.lang.String> args, org.gradle.api.provider.Property<java.lang.String> mainClass)
      Perform supported commands using the given jar with the given input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Execution

        public Execution()
    • Method Detail

      • execute

        protected com.lingocoder.process.io.ProcessIO execute​(org.gradle.api.provider.Property<java.io.File> jar,
                                                              org.gradle.api.provider.Property<org.gradle.api.file.FileCollection> classpath,
                                                              org.gradle.api.provider.ListProperty<java.lang.String> args,
                                                              org.gradle.api.provider.Property<java.lang.String> mainClass)
        Perform supported commands using the given jar with the given input.
        Parameters:
        jar - A jar that contains a class with a main method.
        classpath - The classpath needed by the class with the main method.
        args - The arguments needed by the class with the main method.
        mainClass - The fully-qualified name of the class with the main method. For example, com.example.foo.Main
        Returns:

        A composite result containing whatever the forked process that will be spawned by this method, may have written to stdout and/or stderr.

        The result will also hold an exit code of either 0 to indicate a successful exit, or 1 to indicate the process produced and error.