[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-300) filename with whitespace produce errors on windows

Tommy Tynjä (JIRA) jira-events at lists.jboss.org
Tue Jul 12 02:23:23 EDT 2011


    [ https://issues.jboss.org/browse/SHRINKWRAP-300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613618#comment-12613618 ] 

Tommy Tynjä commented on SHRINKWRAP-300:
----------------------------------------

Added pull request with fix: https://github.com/tommysdk/shrinkwrap/commit/2e77b66ce507af637e4f8e9ff4db5ce6dac7a180

> filename with whitespace produce errors on windows
> --------------------------------------------------
>
>                 Key: SHRINKWRAP-300
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-300
>             Project: ShrinkWrap
>          Issue Type: Bug
>    Affects Versions: 1.0.0-beta-3
>         Environment: windows
>            Reporter: José Freitas
>            Assignee: Tommy Tynjä
>
> When a filename has whitespace
> the method in ContainerBase.class
> {code}
> private File fileFromResource(final String resourceName)
>    {
>       final String resourcePath = AccessController.doPrivileged(GetTcclAction.INSTANCE).getResource(resourceName)
>             .getFile();
>       return new File(resourcePath);
>    }
> {code}
> tries to find a file with URL pattern filename (using %20 for instance) which may be causing troubles to find files resulting in a java.lang.IllegalArgumentException

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the shrinkwrap-issues mailing list