44 lines
2.0 KiB
Diff
44 lines
2.0 KiB
Diff
--- java-comment-preprocessor-6.1.4/src/main/java/com/igormaznitsa/jcp/maven/PreprocessorClearMojo.java 2024-06-11 23:04:17.976211259 +0200
|
|
+++ java-comment-preprocessor-6.1.4/src/main/java/com/igormaznitsa/jcp/maven/PreprocessorClearMojo.java 2024-06-11 23:48:13.937250479 +0200
|
|
@@ -23,11 +23,12 @@
|
|
|
|
import org.apache.commons.io.FileUtils;
|
|
import org.apache.maven.plugin.*;
|
|
-import org.apache.maven.plugin.logging.Log;
|
|
import org.apache.maven.plugins.annotations.*;
|
|
import org.apache.maven.plugins.annotations.Mojo;
|
|
import org.apache.maven.shared.model.fileset.FileSet;
|
|
import org.apache.maven.shared.model.fileset.util.FileSetManager;
|
|
+import org.slf4j.Logger;
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
import com.igormaznitsa.meta.annotation.MustNotContainNull;
|
|
|
|
@@ -69,7 +70,7 @@
|
|
@Parameter(alias = "fileSets", required = false)
|
|
private List<FileSet> fileSets;
|
|
|
|
- private void processPredefinedFolders(@Nonnull final Log log) throws MojoFailureException {
|
|
+ private void processPredefinedFolders(@Nonnull final Logger log) throws MojoFailureException {
|
|
if (this.preprocessedSources != null) {
|
|
final String path = preprocessedSources.getAbsolutePath();
|
|
log.info("Removing preprocessed source folder '" + path + '\'');
|
|
@@ -101,7 +102,7 @@
|
|
|
|
@Override
|
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
|
- final Log log = getLog();
|
|
+ final Logger log = LoggerFactory.getLogger(this.getClass());
|
|
|
|
log.info("Cleaning has been started");
|
|
if (this.fileSets == null) {
|
|
@@ -112,7 +113,7 @@
|
|
log.info("Cleaning has been completed");
|
|
}
|
|
|
|
- private void processFileSet(@Nonnull @MustNotContainNull final List<FileSet> fileSets, @Nonnull final Log log) throws MojoExecutionException {
|
|
+ private void processFileSet(@Nonnull @MustNotContainNull final List<FileSet> fileSets, @Nonnull final Logger log) throws MojoExecutionException {
|
|
final FileSetManager manager = new FileSetManager(log, true);
|
|
for (final FileSet fs : fileSets) {
|
|
try {
|