Package org.gradle.process
Schnittstelle ExecOperations
@ServiceScope({org.gradle.internal.service.scopes.Scope.Build.class,org.gradle.internal.service.scopes.Scope.Project.class})
public interface ExecOperations
Process execution operations.
An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.
- Seit:
- 6.0
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungExecutes the specified external process.javaexec(Action<? super JavaExecSpec> action) Executes the specified externaljavaprocess.
-
Methodendetails
-
exec
Executes the specified external process. The given action is used to configure anExecSpec, which is then used to run an external process.- Parameter:
action- Action to configure the ExecSpec- Gibt zurück:
ExecResultthat can be used to check if the execution worked
-
javaexec
Executes the specified externaljavaprocess. The given action is used to configure anJavaExecSpec, which is then used to run an externaljavaprocess.- Parameter:
action- Action to configure the JavaExecSpec- Gibt zurück:
ExecResultthat can be used to check if the execution worked
-