commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Allison (JIRA)" <>
Subject [jira] [Created] (COMPRESS-387) Allow spaces in path for unit tests in Windows
Date Fri, 14 Apr 2017 17:29:41 GMT
Tim Allison created COMPRESS-387:

             Summary: Allow spaces in path for unit tests in Windows
                 Key: COMPRESS-387
             Project: Commons Compress
          Issue Type: Improvement
            Reporter: Tim Allison
            Priority: Trivial

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.

This message was sent by Atlassian JIRA

View raw message