File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
core/src/jarFileTest/java/org/testcontainers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11package org .testcontainers ;
22
33import java .net .URI ;
4+ import java .net .URLDecoder ;
5+ import java .nio .charset .StandardCharsets ;
46import java .nio .file .FileSystem ;
57import java .nio .file .FileSystems ;
68import java .nio .file .Path ;
@@ -14,7 +16,8 @@ public abstract class AbstractJarFileTest {
1416 static {
1517 try {
1618 Path jarFilePath = Paths .get (System .getProperty ("jarFile" ));
17- URI jarFileUri = new URI ("jar" , jarFilePath .toUri ().toString (), null );
19+ String decodedPath = URLDecoder .decode (jarFilePath .toUri ().toString (), StandardCharsets .UTF_8 .name ());
20+ URI jarFileUri = new URI ("jar" , decodedPath , null );
1821 FileSystem fileSystem = FileSystems .newFileSystem (jarFileUri , Collections .emptyMap ());
1922 root = fileSystem .getPath ("/" );
2023 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments