[ 
https://issues.apache.org/jira/browse/MCLEAN-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Slawomir Jaranowski reassigned MCLEAN-116:
------------------------------------------

    Assignee: Slawomir Jaranowski

> Create interface method to catch exceptions
> -------------------------------------------
>
>                 Key: MCLEAN-116
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-116
>             Project: Maven Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.3.2
>            Reporter: Matthias Bünger
>            Assignee: Slawomir Jaranowski
>            Priority: Minor
>
> 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
> {code:java}
> // ...
>             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);
>     }
> {code}
> 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_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to