Skip to content

Commit

Permalink
update fromRelativePath to work better with jars
Browse files Browse the repository at this point in the history
  • Loading branch information
connorMcA committed Oct 2, 2018
1 parent fe518b3 commit fb62cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion karate-core/src/main/java/com/intuit/karate/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ public static Path fromRelativeClassPath(String relativePath, ClassLoader cl) {
try {
return Paths.get(cl.getResource(relativePath).toURI());
} catch (Exception e) {
throw new RuntimeException(e);
Path path = getPathFor(cl.getResource(relativePath));
return path.resolve(relativePath);
}
}

Expand Down

0 comments on commit fb62cdd

Please sign in to comment.