Added javadoc to TaskSuccessfulMessage.logOnSuccess
@@ -23,6 +23,13 @@ public class TaskSuccessfulMessage {
});
}
+ /**
+ * Writes message to the console when task completes successfully.
+ * Basically adds 'doLast' action with log message provided via {@link Supplier}.
+ *
+ * Use this one if you have to defer the evaluation of the message because the information needed is not available
+ * at the time this method is called.
+ */
public static void logOnSuccess(Task task, final Supplier<String> supplier) {
task.doLast(new Action<Task>() {
@Override
