diff --git a/src/main/java/rife/bld/extension/DetektOperation.java b/src/main/java/rife/bld/extension/DetektOperation.java index 3ed4d2e..359037f 100644 --- a/src/main/java/rife/bld/extension/DetektOperation.java +++ b/src/main/java/rife/bld/extension/DetektOperation.java @@ -18,8 +18,11 @@ package rife.bld.extension; import rife.bld.BaseProject; import rife.bld.operations.AbstractProcessOperation; +import rife.bld.operations.exceptions.ExitStatusException; +import rife.tools.exceptions.FileUtilsErrorException; import java.io.File; +import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -241,6 +244,22 @@ public class DetektOperation extends AbstractProcessOperation { return this; } + /** + * Performs the operation. + * + * @throws InterruptedException when the operation was interrupted + * @throws IOException when an exception occurred during the execution of the process + * @throws FileUtilsErrorException when an exception occurred during the retrieval of the operation output + * @throws ExitStatusException when the exit status was changed during the operation + */ + @Override + public void execute() throws IOException, FileUtilsErrorException, InterruptedException, ExitStatusException { + super.execute(); + if (successful_ && LOGGER.isLoggable(Level.INFO)) { + LOGGER.info("Detekt executed successfully."); + } + } + /** * Part of the {@link #execute} operation, constructs the command list * to use for building the process.