maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl-Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] (MCLEAN-55) maven clean seems to use old java.io API to clean the target directory
Date Fri, 08 Aug 2014 20:02:10 GMT

    [ https://jira.codehaus.org/browse/MCLEAN-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=351204#comment-351204
] 

Karl-Heinz Marbaise commented on MCLEAN-55:
-------------------------------------------

In this case we need to take care of Java 1.5 as well, cause this plugin has been uplifted
to at least Maven 2.2.1 which is JDK 1.5. Of course the path you described Kristian is a better
solution and more flexible.

> maven clean seems to use old java.io API to clean the target directory
> ----------------------------------------------------------------------
>
>                 Key: MCLEAN-55
>                 URL: https://jira.codehaus.org/browse/MCLEAN-55
>             Project: Maven Clean Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Mark
>             Fix For: 3.0
>
>
> Problem: the old java.io API cannot handle filenames that have a bad encoding, ie. iso-8859-1
encoded umlauts when running with LC_ALL=*.UTF-8.
> To reproduce the problem do:
> git clone https://github.com/jjYBdx4IL/filenameenc.git
> cd filenameenc
> mvn test
> mvn clean # <- produces an error when trying to remove target/
> The example itself demonstrates the problem and shows a solution by using java.nio.Files.newDirectoryStream().



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message