Skip to content

Commit

Permalink
Merge pull request #545 from connorMcA/featureFromJar
Browse files Browse the repository at this point in the history
update fromRelativePath to work better with jars
  • Loading branch information
ptrthomas authored Oct 3, 2018
2 parents fe518b3 + fb62cdd commit 061c572
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 061c572

Please sign in to comment.