Skip to content

Commit

Permalink
Merge pull request #4 from torrescd/AvoidCrashOnSpringJar
Browse files Browse the repository at this point in the history
Avoid crash on spring boot jars
  • Loading branch information
ViktorC authored Nov 10, 2018
2 parents 6b72257 + 726a363 commit 77a089a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.viktorc</groupId>
<artifactId>pp4j</artifactId>
<version>2.1</version>
<version>2.2</version>
<name>PP4J</name>
<description>A multiprocessing library for Java.</description>
<url>https://github.com/ViktorC/PP4J</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.net.URLClassLoader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystemNotFoundException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -288,6 +289,8 @@ public ProcessManager newProcessManager() {
for (URL url : urlClassLoader.getURLs()) {
try {
classPathEntries.add(Paths.get(url.toURI()).toAbsolutePath().toString());
} catch (FileSystemNotFoundException e){
continue;
} catch (URISyntaxException e) {
continue;
}
Expand Down

0 comments on commit 77a089a

Please sign in to comment.