Skip to content

[MCLEAN-116] Propagating a source exception in Cleaner class #147

Description

@jira-importer

Matthias Bünger opened MCLEAN-116 and commented

As stated multiple times in the Cleaner class, the Logger interface of this class does not provide a method to log exceptions and needs a refactoring

// ...
            if (logDebug != null) {
                // TODO: this Logger interface cannot log exceptions and needs refactoring
                logDebug.log("Unable to fast delete directory: " + e);
            }

// ...

    private interface Logger {

        void log(CharSequence message);
    }

However: Many plugins, e.g. the javadoc-plugin or the pmg-plugin use the org.apache.maven.plugin.logging.Log interface. Therefor using this interface instead an own could be a better solution than adding a new method to the interface in the Cleaner class.

This ticket was created to have this task in the issue tracker


Affects: 3.3.2

Remote Links:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions