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

Michal Matloka (JIRA) jira-events at lists.jboss.org
Thu Nov 29 12:11:21 EST 2012


Michal Matloka created SHRINKDESC-136:
-----------------------------------------

             Summary: 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