You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2024/10/18 11:50:00 UTC

[jira] [Assigned] (MDEP-930) runTreeMojo in TestTreeMojo ignores encoding

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

Elliotte Rusty Harold reassigned MDEP-930:
------------------------------------------

    Assignee: Elliotte Rusty Harold

> runTreeMojo in TestTreeMojo ignores encoding
> --------------------------------------------
>
>                 Key: MDEP-930
>                 URL: https://issues.apache.org/jira/browse/MDEP-930
>             Project: Maven Dependency Plugin
>          Issue Type: Test
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Minor
>
> Should probably use something like Files.readAllLines with a charset or equivalent instead here. 
> ```
>         BufferedReader fp1 = new BufferedReader(new FileReader(outputFileName));
>         List<String> contents = new ArrayList<>();
>         String line;
>         while ((line = fp1.readLine()) != null) {
>             contents.add(line);
>         }
>         fp1.close();
> ```



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