public void changed(FileCollectionSnapshot.Merge element) {
// Update any files which were change since the task was last executed
}
});
FileCollectionSnapshot outputFilesAfter = outputFilesSnapshotter.snapshot(task.getOutputs().getFiles());
currentExecution.setOutputFilesSnapshot(outputFilesAfter.changesSince(outputFilesBefore).applyTo(newOutputFiles));
}
};
}
private static class ChangeListenerAdapter implements ChangeListener<String> {