Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-387

Allow spaces in path for unit tests in Windows

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14
    • Component/s: None
    • Labels:
      None

      Description

      I'm getting build failures on Windows, probably because I'm working in a directory that has a space in the name (on purpose!).

      If we modify the much better:

          private static final File ARCDIR = new File(CLASSLOADER.getResource("archives").getFile());
      

      with this hideousness in LongPathTest, LongSymLinkTest and ArchiveReadTest

          static {
              try {
                  ARCDIR = new File(CLASSLOADER.getResource("archives").toURI().getPath());
              } catch (URISyntaxException e) {
                  throw new RuntimeException(e);
              }
          }
      

      tests all pass.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tallison Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: