continue entries;
else if (entry.getName().equals("META-INF/LICENSE-notice.md"))
continue entries;
+ else if (entry.getName().equals("META-INF/DEPENDENCIES"))
+ continue entries;
+ if (entry.getName().startsWith(".cache/")) // Apache SSHD
+ continue entries;
Path target = targetBundleDir.resolve(entry.getName());
Files.createDirectories(target.getParent());
if (!Files.exists(target)) {
}
});
- DirectoryStream<Path> dirs = Files.newDirectoryStream(targetCategoryBase, (p) -> Files.isDirectory(p));
+ DirectoryStream<Path> dirs = Files.newDirectoryStream(targetCategoryBase,
+ (p) -> Files.isDirectory(p) && p.getFileName().toString().indexOf('.') >= 0);
for (Path dir : dirs) {
createJar(dir);
}
if (entry.getName().startsWith("META-INF/versions/")) // skip multi-version
continue entries;
// skip file system providers as they cause issues with native image
- if (entry.getName().startsWith("META-INF/services/java.nio.file.spi.FileSystemProvider"))
+ if (entry.getName().startsWith("META-INF/services/java.nio.file.spi.FileSystemProvider"))
continue entries;
if (entry.getName().startsWith("OSGI-OPT/src/")) // skip embedded sources
continue entries;
// String arch = segments[segments.length - 1];
// String os = segments[segments.length - 2];
boolean copyDll = false;
- Path targetDll = categoryDir.resolve(target.getFileName());
+ Path targetDll = categoryDir.resolve(targetBundleDir.relativize(target));
if (nameVersion.getName().equals("com.sun.jna")) {
if (arch.equals("x86_64"))
arch = "x86-64";
if (target.getParent().getFileName().toString().equals(os + "-" + arch)) {
copyDll = true;
}
+ targetDll = categoryDir.resolve(target.getFileName());
} else {
copyDll = true;
}
if (copyDll) {
+ Files.createDirectories(targetDll.getParent());
if (Files.exists(targetDll))
Files.delete(targetDll);
Files.copy(target, targetDll);
A2Factory factory = new A2Factory(factoryBase, descriptorsBase, true);
// factory.processSingleM2ArtifactDistributionUnit(descriptorsBase.resolve("org.argeo.tp.apache").resolve("org.apache.xml.resolver.bnd"));
-// factory.processM2BasedDistributionUnit(descriptorsBase.resolve("org.argeo.tp.apache/apache-sshd"));
+ factory.processM2BasedDistributionUnit(descriptorsBase.resolve("org.argeo.tp.apache/apache-sshd"));
// factory.processM2BasedDistributionUnit(descriptorsBase.resolve("org.argeo.tp.jetty/jetty"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.osgi"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.eclipse.rcp"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp"));
- factory.processCategory(descriptorsBase.resolve("org.argeo.tp.apache"));
+// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.apache"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.sdk"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.formats"));
// factory.processCategory(descriptorsBase.resolve("org.argeo.tp.gis"));
// Eclipse
factory.processCategory(Paths.get("osgi/api/org.argeo.tp.osgi"));
factory.processEclipseArchive(Paths.get("osgi/equinox/org.argeo.tp.osgi", "eclipse-equinox"));
-
- factory.processEclipseArchive(Paths.get("org.argeo.tp.eclipse", "eclipse-equinox"));
+ factory.processEclipseArchive(Paths.get("osgi/equinox/org.argeo.tp.eclipse", "eclipse-equinox"));
factory.processEclipseArchive(Paths.get("swt/rap/org.argeo.tp.swt", "eclipse-rap"));
factory.processEclipseArchive(Paths.get("swt/rap/org.argeo.tp.swt.workbench", "eclipse-rap"));
factory.processEclipseArchive(Paths.get("lib/macosx/x86_64/swt/rcp/org.argeo.tp.swt", "eclipse-rcp"));
factory.processEclipseArchive(Paths.get("swt/rcp/org.argeo.tp.swt", "eclipse-nebula"));
- // factory.processEclipseArchive(Paths.get("swt/rcp/org.argeo.tp.swt",
- // "eclipse-equinox"));
factory.processEclipseArchive(Paths.get("swt/rcp/org.argeo.tp.swt.workbench", "eclipse-rcp"));
factory.processCategory(Paths.get("swt/rcp/org.argeo.tp.swt.workbench"));