OBS-URL: https://build.opensuse.org/package/show/Java:packages/java-comment-preprocessor?expand=0&rev=4
This commit is contained in:
43
java-comment-preprocessor-logger.patch
Normal file
43
java-comment-preprocessor-logger.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
--- 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(PreprocessorClearMojo.class);
|
||||
|
||||
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 {
|
||||
Reference in New Issue
Block a user