use of org.glassfish.appclient.server.core.jws.ExtensionFileManager.Extension in project Payara by payara.
the class JavaWebStartInfo method processExtensionReferences.
private void processExtensionReferences() throws IOException {
// TODO: needs to be expanded to handle signed library JARS, perhap signed by different certs
final URI fileURI = URI.create("file:" + helper.appClientServerOriginalAnchor(dc).getRawSchemeSpecificPart());
Set<Extension> exts = extensionFileManager.findExtensionTransitiveClosure(new File(fileURI), // new File(helper.appClientServerURI(dc)).getParentFile(),
dc.getSource().getManifest().getMainAttributes());
tHelper.setProperty(APP_LIBRARY_EXTENSION_PROPERTY_NAME, jarElementsForExtensions(exts));
for (Extension e : exts) {
final URI uri = URI.create(JWSAdapterManager.publicExtensionLookupURIText(e));
final StaticContent newSystemContent = createSignedStaticContent(e.getFile(), signedFileForDomainFile(e.getFile()), uri, extensionName(e.getFile()));
jwsAdapterManager.addStaticSystemContent(uri.toString(), newSystemContent);
}
}
Aggregations