[shrinkwrap-issues] [JBoss JIRA] (SHRINKDESC-136) Test fails under windows - space in directory name

Ralf Battenfeld (JIRA) jira-events at lists.jboss.org
Thu Nov 29 14:12:21 EST 2012


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

Ralf Battenfeld commented on SHRINKDESC-136:
--------------------------------------------

Super:-)
                
> Test fails under windows - space in directory name
> --------------------------------------------------
>
>                 Key: SHRINKDESC-136
>                 URL: https://issues.jboss.org/browse/SHRINKDESC-136
>             Project: ShrinkWrap Descriptors
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.0-alpha-4
>         Environment: win7 x64
>            Reporter: Michal Matloka
>
> {noformat}
> Tests in error:
>   deprecatedFromFile(org.jboss.shrinkwrap.descriptor.api.DescriptorImporterTestCase): Specified file does not exist or is a directory: I:\Dev\JBoss\shrinkwrap%20descriptors\impl-base\target\test-classes\test.xml
> {noformat}
> Problem lies in space in one directories name. Changing
> {noformat}
>  new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath() + "test.xml"));
> {noformat}
> to
> {noformat}new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI().getPath() + "test.xml"));
> {noformat}
> solves problems with this test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list