Skip to content

Commit

Permalink
fix for classpath feature files (via #362)
Browse files Browse the repository at this point in the history
  • Loading branch information
baev authored and eroshenkoam committed May 21, 2019
1 parent b554114 commit 96919b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
Expand Down Expand Up @@ -162,7 +163,7 @@ private void tryHandleNamedLink(final String tagString) {
}

private String featurePackage(final String uri, final String featureName) {
final Path parent = Paths.get(uri).getParent();
final Path parent = Paths.get(URI.create(uri).getSchemeSpecificPart()).getParent();
if (Objects.nonNull(parent)) {
final Stream<String> folders = StreamSupport.stream(parent.spliterator(), false)
.map(Path::toString);
Expand Down

0 comments on commit 96919b2

Please sign in to comment.