in src/main/java/org/apache/sling/feature/extension/unpack/impl/launcher/UnpackLauncherExtension.java [35:57]
public boolean handle(ExtensionContext extensionContext, Extension extension) throws Exception {
if (extension.getType() == ExtensionType.ARTIFACTS) {
String mapping = extensionContext.getFrameworkProperties().get(Unpack.UNPACK_EXTENSIONS_PROP);
if (mapping == null || mapping.isEmpty()) {
mapping = System.getProperty(Unpack.UNPACK_EXTENSIONS_PROP);
}
if (mapping != null && !mapping.isEmpty()) {
return Unpack.fromMapping(mapping).handle(extension, new ArtifactProvider() {
@Override
public URL provide(ArtifactId artifactId) {
try {
return extensionContext.getArtifactFile(artifactId);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
});
}
}
return false;
}