Skip to content

Commit

Permalink
Fix for issue mwanji#6
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bullock committed Jul 9, 2015
1 parent 447a378 commit 7f1db74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/co/mewf/humpty/config/HumptyBootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.io.IOException;
import java.net.URL;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
Expand Down Expand Up @@ -181,7 +182,7 @@ private WebJarAssetLocator getDefaultLocator() {

while (urls.hasMoreElements()) {
URL url = urls.nextElement();
Files.walk(Paths.get(url.getFile()))
Files.walk(Paths.get(url.toURI()))
.filter(path -> path.toFile().isFile())
.map(Path::toString)
.map(path -> path.substring(path.indexOf(fullAssetsDir) + 1))
Expand All @@ -191,7 +192,7 @@ private WebJarAssetLocator getDefaultLocator() {
assetPaths.addAll(new WebJarAssetLocator().getFullPathIndex().values());

return new WebJarAssetLocator(assetPaths);
} catch (IOException e) {
} catch (IOException | URISyntaxException e) {
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit 7f1db74

Please sign in to comment.