|
|
|
@ -516,16 +516,16 @@ public abstract class Packager {
|
|
|
|
|
writtenPaths.add(path);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (getLayout() instanceof RepackagingLayout) {
|
|
|
|
|
writeClasspathIndex(writtenPaths, (RepackagingLayout) getLayout(), writer);
|
|
|
|
|
}
|
|
|
|
|
writeClasspathIndexIfNecessary(writtenPaths, getLayout(), writer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void writeClasspathIndex(List<String> paths, RepackagingLayout layout, AbstractJarWriter writer)
|
|
|
|
|
private void writeClasspathIndexIfNecessary(List<String> paths, Layout layout, AbstractJarWriter writer)
|
|
|
|
|
throws IOException {
|
|
|
|
|
if (layout.getClasspathIndexFileLocation() != null) {
|
|
|
|
|
List<String> names = paths.stream().map((path) -> "- \"" + path + "\"").collect(Collectors.toList());
|
|
|
|
|
writer.writeIndexFile(layout.getClasspathIndexFileLocation(), names);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* An {@link UnpackHandler} that determines that an entry needs to be unpacked if
|
|
|
|
|