Uploaded image for project: 'ShrinkWrap Descriptors'
  1. ShrinkWrap Descriptors
  2. SHRINKDESC-136

Test fails under windows - space in directory name

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • 2.0.0-alpha-4
    • 2.0.0-alpha-5
    • test
    • None

    Description

      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
      

      Problem lies in space in one directories name. Changing

       new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath() + "test.xml"));
      

      to

      new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI().getPath() + "test.xml"));
      

      solves problems with this test.

      Attachments

        Issue Links

          Activity

            People

              mmatloka Michal Matloka (Inactive)
              mmatloka Michal Matloka (Inactive)
              Archiver:
              samahaja@redhat.com Sagar Mahajan

              Dates

                Created:
                Updated:
                Resolved:
                Archived: