Closed kazurayam closed 11 months ago
public static FileSystem newFileSystem() throws IOException {
if (System.getProperty(SYSTEM_PROPERTY_NAME) != null) {
try {
URI uri = new URI(System.getProperty(SYSTEM_PROPERTY_NAME));
reviewURI(uri);
return FileSystems.newFileSystem(uri, // The Exception was raised here
new HashMap<String, Object>(),
Thread.currentThread().getContextClassLoader());
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
} else {
return FileSystems.getDefault();
}
}
Possibly I should check if the FileSystem is arleady existing or not before creating new one. If already exits, return the existing one. If not exists, create a new FileSystem and return it.
fixed
When I ran
Only one failure occured.
But when I executed com.kazurayam.materialstore.freemarker.ReadAllLinesDirectiveTest.test_execute() specifically, it passed.