File tree 1 file changed +4
-1
lines changed
core/src/jarFileTest/java/org/testcontainers
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org .testcontainers ;
2
2
3
3
import java .net .URI ;
4
+ import java .net .URLDecoder ;
5
+ import java .nio .charset .StandardCharsets ;
4
6
import java .nio .file .FileSystem ;
5
7
import java .nio .file .FileSystems ;
6
8
import java .nio .file .Path ;
@@ -14,7 +16,8 @@ public abstract class AbstractJarFileTest {
14
16
static {
15
17
try {
16
18
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 );
18
21
FileSystem fileSystem = FileSystems .newFileSystem (jarFileUri , Collections .emptyMap ());
19
22
root = fileSystem .getPath ("/" );
20
23
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments