Class LocalBuildExecutor
java.lang.Object
com.axelor.studio.service.build.executor.LocalBuildExecutor
- All Implemented Interfaces:
BuildExecutor
Local build executor that runs Gradle builds in a subprocess.
Runs builds asynchronously in a thread pool, streaming output and progress to the callback.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(StudioBuildJob job) Cancels a running build job.voidexecute(StudioBuildJob job, BuildContext context, BuildCallback callback) getName()Returns the name of this executor (e.g., "local", "jenkins", "gitlab").booleanChecks if this executor is available and properly configured.
-
Constructor Details
-
LocalBuildExecutor
public LocalBuildExecutor()
-
-
Method Details
-
getName
Description copied from interface:BuildExecutorReturns the name of this executor (e.g., "local", "jenkins", "gitlab").- Specified by:
getNamein interfaceBuildExecutor- Returns:
- executor name
-
isAvailable
public boolean isAvailable()Description copied from interface:BuildExecutorChecks if this executor is available and properly configured.- Specified by:
isAvailablein interfaceBuildExecutor- Returns:
- true if the executor can accept jobs
-
execute
- Specified by:
executein interfaceBuildExecutor
-
cancel
Description copied from interface:BuildExecutorCancels a running build job.- Specified by:
cancelin interfaceBuildExecutor- Parameters:
job- the build job to cancel
-