Skip to content

Commit

Permalink
Try default back to local resource path for html resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jul 9, 2024
1 parent d1f1cdb commit c6fb039
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class DataGenerationResultWriter(val dataCatererConfiguration: DataCatererConfig
}
case Success(value) =>
Try(value.getName) match {
case Failure(_) => defaultResourcePath
case Failure(_) =>
Try(defaultResourcePath.toUri) match {
case Failure(_) => localResourcePath
case Success(_) => defaultResourcePath
}
case Success(name) =>
if (name.startsWith("jar:")) defaultResourcePath else value
}
Expand Down

0 comments on commit c6fb039

Please sign in to comment.