File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public static File getBaseDir(Object aType) {
4242
4343 try {
4444 if (dir .toString ().startsWith ("jar:" )) {
45- dir = new URL (dir .toString ().replaceFirst ("^jar:" , "" ).replaceFirst ("/[^/]+.jar!.*$" , "" ));
45+ dir = new URI (dir .toString ().replaceFirst ("^jar:" , "" ).replaceFirst ("/[^/]+.jar!.*$" , "" )). toURL ( );
4646 dbDir = new File (dir .toURI ());
4747 }
4848 } catch (MalformedURLException | URISyntaxException e ) {
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ public static File getBaseDir(Object aType) {
318318
319319 try {
320320 if (dir .toString ().startsWith ("jar:" )) {
321- dir = new URL (dir .toString ().replaceFirst ("^jar:" , "" ).replaceFirst ("/[^/]+.jar!.*$" , "" ));
321+ dir = new URI (dir .toString ().replaceFirst ("^jar:" , "" ).replaceFirst ("/[^/]+.jar!.*$" , "" )). toURL ( );
322322 dbDir = new File (dir .toURI ());
323323 }
324324 } catch (MalformedURLException | URISyntaxException e ) {
You can’t perform that action at this time.
0 commit comments