Package com.axelor.studio.service.build
Interface BuildCallback
public interface BuildCallback
Callback interface for build progress and completion notifications.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(int exitCode, Path artifact) Called when the build completes (successfully or with non-zero exit code).voidCalled when the build fails with an exception.voidCalled when a line of output is produced by the build.
-
Method Details
-
onOutput
Called when a line of output is produced by the build.- Parameters:
line- the output line
-
onComplete
Called when the build completes (successfully or with non-zero exit code).- Parameters:
exitCode- the process exit code (0 = success)artifact- path to the build artifact (WAR file), may be null
-
onError
Called when the build fails with an exception.- Parameters:
e- the exception that caused the failure
-