Skip to content

Commit e69a235

Browse files
committed
EclipseHelper: handle manifest class path entries correctly
Simply specifying the file name does not make a correct URL, of course... it needs to be relative to the parent URL. This was not relevant so far because we only looked at manifest class path entries of .jar files generated by the surefire-maven-plugin. But in the next commit, we want to be able to index thoroughly, so we need to be able to handle bare files instead of full URLs in the manifest's Class-Path: line. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent bf22d6a commit e69a235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/annotations/EclipseHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void maybeIndex(final URL url, final ClassLoader loader) {
186186
if (classPath != null) {
187187
for (final String element : classPath.split(" +"))
188188
try {
189-
maybeIndex(new URL(element), loader);
189+
maybeIndex(new URL(url, element), loader);
190190
}
191191
catch (MalformedURLException e) {
192192
e.printStackTrace();

0 commit comments

Comments
 (0)