Skip to content

Commit

Permalink
Merge pull request payara#4440 from bjetal/issue-4415
Browse files Browse the repository at this point in the history
  FISH-761 Deployment of unpacked WAB fails when using Felix fileinstall
  • Loading branch information
MeroRai authored Nov 17, 2020
2 parents 702a0a9 + 9b5dd12 commit 39d14da
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ private static synchronized String getModulesClasspath(ServiceLocator habitat) {
"Error truncating URI with prefix of \"reference:\"",
use);
}
} else if (uri.toString().startsWith("jardir:")) {
// OSGi fileinstall created modules can have a "jardir:" schema for directory
// structures, but there is no FileSystemProvider for this type.
// Since the path is the file system path, just substitute the "file:" schema
tmpString.append("file:").append(uri.toString().substring("jardir:".length()));
tmpString.append(File.pathSeparator);
} else {
tmpString.append(Paths.get(uri).toString());
tmpString.append(File.pathSeparator);
Expand Down

0 comments on commit 39d14da

Please sign in to comment.