You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2024/11/11 08:22:00 UTC

[jira] [Commented] (MCLEAN-126) Use Path instead of File paradigm as much as possible

    [ https://issues.apache.org/jira/browse/MCLEAN-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897111#comment-17897111 ] 

Peter De Maeyer commented on MCLEAN-126:
----------------------------------------

I made a PR with minimal "like for like" replacements, focusing on production code. There are more opportunities to leverage the `Path` API further, for example leveraging its built-in support for symlinks to replace the roll-your-own symlink code with, but I left that out of scope of for now.

> Use Path instead of File paradigm as much as possible
> -----------------------------------------------------
>
>                 Key: MCLEAN-126
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-126
>             Project: Maven Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.4.0
>            Reporter: Peter De Maeyer
>            Priority: Major
>
> The code currently uses a combination of old {{File}} API and old {{Path}}. This is suboptimal, as it requires conversions back and forth. It would be better if we consolidated on the {{Path}} API as much as possible.
> Unfortunately, the Maven `@Parameter` injection only supports {{File}} fields, so we cannot replace it completely yet. Hopefully some day, Maven's `@Parameter` injection will also support {{Path}} fields.



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