Fix case-insensitive string comparisions in resource transformers
-----------------------------------------------------------------
Key: MSHADE-26
URL: http://jira.codehaus.org/browse/MSHADE-26
Project: Maven 2.x Shade Plugin
Issue Type: Bug
Affects Versions: 1.0.1
Reporter: Benjamin Bentmann
{{[String.toLowerCase()|http://java.sun.com/javase/6/docs/api/java/lang/String.html#toLowerCase()]}}
is sensitive to the JVM's default locale and hence platform-dependent,
potentially yielding wrong build output. For instance:
{code:java}
Locale.setDefault( new Locale( "en" ) );
System.out.println( "META-INF/NOTICE".toLowerCase().equals( "meta-inf/notice" )
);
Locale.setDefault( new Locale( "tr" ) );
System.out.println( "META-INF/NOTICE".toLowerCase().equals( "meta-inf/notice" )
);
{code}
will print
{noformat}
true
false
{noformat}
See also [Common
Bugs|http://www.nabble.com/Common-Bugs-to14783703s177.html#a14931921].
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira