Package com.lingocoder.plugin.jarexec
Class Execution
- java.lang.Object
-
- com.lingocoder.plugin.jarexec.Execution
-
public class Execution extends java.lang.ObjectDoes 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.ProcessIOexecute(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.
-
-
-
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 amainmethod.classpath- The classpath needed by the class with themainmethod.args- The arguments needed by the class with themainmethod.mainClass- The fully-qualified name of the class with themainmethod. 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
stdoutand/orstderr.The result will also hold an exit code of either
0to indicate a successful exit, or1to indicate the process produced and error.
-
-