Import-Package:\
javax.jcr.nodetype,\
org.apache.commons.logging,\
+org.apache.jackrabbit.*;version="[1,4)",\
*
\ No newline at end of file
import static org.argeo.slc.ManifestConstants.BUNDLE_LICENSE;
import static org.argeo.slc.ManifestConstants.BUNDLE_SYMBOLICNAME;
import static org.argeo.slc.ManifestConstants.BUNDLE_VERSION;
+import static org.argeo.slc.ManifestConstants.EXPORT_PACKAGE;
import static org.argeo.slc.ManifestConstants.SLC_ORIGIN_M2;
import java.io.FileNotFoundException;
}
}
-// if (!fileProps.contains(EXPORT_PACKAGE.toString())) {
-// fileProps.put(EXPORT_PACKAGE.toString(), "*");
-// }
+ if (!fileProps.containsKey(EXPORT_PACKAGE.toString())) {
+ fileProps.put(EXPORT_PACKAGE.toString(),
+ "*;version=\"" + fileProps.getProperty(BUNDLE_VERSION.toString()) + "\"");
+ }
// if (!fileProps.contains(IMPORT_PACKAGE.toString())) {
// fileProps.put(IMPORT_PACKAGE.toString(), "*");
// }
continue keys;
}
additionalEntries.put(key.toString(), value.toString());
- // logger.log(DEBUG, () -> key + "=" + value);
+ logger.log(DEBUG, () -> key + "=" + value);
}
}
+
+// try (Builder bndBuilder = new Builder()) {
+// Jar jar = new Jar(downloaded.toFile());
+// bndBuilder.addClasspath(jar);
+// Path targetBundleDir = targetCategoryBase.resolve(artifact.getName() + "." + artifact.getBranch());
+//
+// Jar target = new Jar(targetBundleDir.toFile());
+// bndBuilder.setJar(target);
+// return targetBundleDir;
+// }
}
Path targetBundleDir = processBundleJar(downloaded, targetCategoryBase, additionalEntries);
logger.log(Level.DEBUG, () -> "Processed " + downloaded);
Path descriptorsBase = Paths.get("../tp").toAbsolutePath().normalize();
+// factory.processM2BasedDistributionUnit(descriptorsBase.resolve("org.argeo.tp/slf4j"));
+// System.exit(0);
+
// Eclipse
factory.processEclipseArchive(
descriptorsBase.resolve("org.argeo.tp.eclipse.equinox").resolve("eclipse-equinox"));
factory.processEclipseArchive(descriptorsBase.resolve("org.argeo.tp.eclipse.rcp").resolve("eclipse-rcp"));
// Maven
- factory.processCategory(descriptorsBase.resolve("org.argeo.tp.javax"));
+ factory.processCategory(descriptorsBase.resolve("org.argeo.tp.sdk"));
factory.processCategory(descriptorsBase.resolve("org.argeo.tp"));
factory.processCategory(descriptorsBase.resolve("org.argeo.tp.apache"));
factory.processCategory(descriptorsBase.resolve("org.argeo.tp.jetty"));
- factory.processCategory(descriptorsBase.resolve("org.argeo.tp.sdk"));
factory.processCategory(descriptorsBase.resolve("org.argeo.tp.jcr"));
}
}
Import-Package: javax.jcr.nodetype,\
javax.jcr.security,\
-org.apache.jackrabbit.api,\
-org.apache.jackrabbit.commons,\
+org.apache.jackrabbit.api;version="[1,4)",\
+org.apache.jackrabbit.commons;version="[1,4)",\
+org.apache.jackrabbit.*;version="[1,4)",\
*
\ No newline at end of file
<location path="${project_loc:argeo-slc-unstable}/output/a2/org.argeo.tp.jetty" type="Directory"/>
<location path="${project_loc:argeo-slc-unstable}/output/a2/org.argeo.tp.sdk" type="Directory"/>
<location path="${project_loc:argeo-slc-unstable}/output/a2/org.argeo.tp.jcr" type="Directory"/>
- <location path="${project_loc:argeo-slc-unstable}/output/a2/org.argeo.tp.javax" type="Directory"/>
</locations>
</target>
\ No newline at end of file
--- /dev/null
+Bundle-License: Apache-2.0
+SLC-Origin-M2: :2.3.0
\ No newline at end of file
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.cli
+SLC-Origin-M2: org.apache.sshd:sshd-cli
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.common
+Fragment-Host: org.apache.sshd.core
+Import-Package: org.bouncycastle.jce.provider;resolution:=optional,
+ net.i2p.crypto.eddsa;resolution:=optional,
+ *
+SLC-Origin-M2: org.apache.sshd:sshd-common
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.core
+SLC-Origin-M2: org.apache.sshd:sshd-core
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.git
+SLC-Origin-M2: org.apache.sshd:sshd-git
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.putty
+SLC-Origin-M2: org.apache.sshd:sshd-putty
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.scp
+SLC-Origin-M2: org.apache.sshd:sshd-scp
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: org.apache.sshd.sftp
+SLC-Origin-M2: org.apache.sshd:sshd-sftp
+SLC-Origin-ManifestNotModified: true
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.cli
-Bundle-Version: 1.4.0
SLC-Origin-M2: commons-cli:commons-cli:1.4
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.codec
-Bundle-Version: 1.13.0
SLC-Origin-M2: commons-codec:commons-codec:1.13
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.dbcp
-Bundle-Version: 1.4.0
SLC-Origin-M2: commons-dbcp:commons-dbcp:1.4
Import-Package: javax.transaction.*; resolution:="optional",\
*
--- /dev/null
+Bundle-License: Apache-2.0
+Bundle-SymbolicName: org.apache.commons.exec
+SLC-Origin-M2: org.apache.commons:commons-exec:1.3
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.fileupload
-Bundle-Version: 1.4.0
Import-Package: javax.portlet;resolution:=optional,\
*
SLC-Origin-M2: commons-fileupload:commons-fileupload:1.4
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.httpclient
-Bundle-Version: 3.1.0
SLC-Origin-M2: commons-httpclient:commons-httpclient:3.1
-Export-Package: org.apache.commons.httpclient.*;version="3.1.0"
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.io
-Bundle-Version: 2.6.0
-Export-Package: org.apache.commons.io.*;version="2.6"
SLC-Origin-M2: commons-io:commons-io:2.6
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.commons.pool
SLC-Origin-M2: commons-pool:commons-pool:1.5.7
-Export-Package: org.apache.*
--- /dev/null
+Bundle-License: Apache-2.0
+Bundle-SymbolicName: org.apache.commons.vfs
+Import-Package: org.apache.tools.ant.*;resolution:=optional,
+*
+SLC-Origin-M2: org.apache.commons:commons-vfs2:2.0
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.httpcomponents.httpclient
-SLC-Origin-M2: org.apache.httpcomponents:httpclient:4.5.9
-Export-Package: org.apache.http.*;version="4.5.9"
\ No newline at end of file
+SLC-Origin-M2: org.apache.httpcomponents:httpclient:4.5.9
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.httpcomponents.httpcore
-SLC-Origin-M2: org.apache.httpcomponents:httpcore:4.4.10
-Export-Package: org.apache.http.*;version="4.4.10"
\ No newline at end of file
+SLC-Origin-M2: org.apache.httpcomponents:httpcore:4.4.10
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.httpcomponents.httpmime
-SLC-Origin-M2: org.apache.httpcomponents:httpmime:4.5.9
-Export-Package: org.apache.http.*;version="4.5.9"
\ No newline at end of file
+SLC-Origin-M2: org.apache.httpcomponents:httpmime:4.5.9
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.lucene
-SLC-Origin-M2: org.apache.lucene:lucene-core:3.6.2
-Export-Package: org.apache.lucene.*
\ No newline at end of file
+SLC-Origin-M2: org.apache.lucene:lucene-core:3.6.2
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.tika.core
-Bundle-Version: 1.22.0
SLC-Origin-M2: org.apache.tika:tika-core:1.22
SLC-Origin-ManifestNotModified: true
Bundle-Activator: org.apache.tika.parser.internal.Activator
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.tika.parsers
-Bundle-Version: 1.22.0
Import-Package: *;resolution:=optional
-SLC-Origin-M2: org.apache.tika:tika-parsers:1.22
-Export-Package: org.apache.tika.*
\ No newline at end of file
+SLC-Origin-M2: org.apache.tika:tika-parsers:1.22
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.xalan
-SLC-Origin-M2: xalan:xalan:2.7.2
-Export-Package: org.apache.*
+SLC-Origin-M2: xalan:xalan:2.7.2
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.xalan.serializer
-SLC-Origin-M2: xalan:serializer:2.7.2
-Export-Package: org.apache.*
+SLC-Origin-M2: xalan:serializer:2.7.2
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.xerces
Import-Package: sun.*;resolution:=optional,
- *
-SLC-Origin-M2: xerces:xercesImpl:2.12.0
-Export-Package: org.apache.*
+*
+SLC-Origin-M2: xerces:xercesImpl:2.12.0
\ No newline at end of file
Bundle-License: Apache-2.0
Bundle-SymbolicName: org.apache.xml.resolver
-SLC-Origin-M2: xml-resolver:xml-resolver:1.2
-Export-Package: org.apache.*
+SLC-Origin-M2: xml-resolver:xml-resolver:1.2
\ No newline at end of file
Bundle-SymbolicName: org.apache.xmlbeans
DynamicImport-Package: *
Import-Package: org.apache.tools.ant.*;resolution:=optional,
- net.sf.saxon.*;resolution:=optional,
- com.sun.*;resolution:=optional,
- *
-SLC-Origin-M2: org.apache.xmlbeans:xmlbeans:3.1.0
-Export-Package: org.apache.*
+net.sf.saxon.*;resolution:=optional,
+com.sun.*;resolution:=optional,
+*
+SLC-Origin-M2: org.apache.xmlbeans:xmlbeans:3.1.0
\ No newline at end of file
+++ /dev/null
-Bundle-SymbolicName: javax.websocket
-SLC-Origin-M2: javax.websocket:javax.websocket-api:1.1
-SLC-Origin-ManifestNotModified: true
Bundle-License: Public Domain
Bundle-SymbolicName: EDU.oswego.cs.dl.util.concurrent
-SLC-Origin-M2: concurrent:concurrent:1.3.4
-Export-Package: EDU.oswego.*
\ No newline at end of file
+SLC-Origin-M2: concurrent:concurrent:1.3.4
\ No newline at end of file
Bundle-License: Apache-2.0
-SLC-Origin-M2: :2.18.3
-Export-Package: org.apache.jackrabbit.*;version="2.18.3"
+SLC-Origin-M2: :2.18.3
\ No newline at end of file
--- /dev/null
+Bundle-SymbolicName: javax.websocket
+Bundle-License: GPL-2.0-only OR CDDL-1.1
+SLC-Origin-M2: javax.websocket:javax.websocket-api:1.1
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-License: Apache-2.0
+SLC-Origin-M2: :9.4.24.v20191120
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-api
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.api
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-client
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.client
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-common
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.common
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:javax-websocket-client-impl
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.javax.websocket
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:javax-websocket-server-impl
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.javax.websocket.server
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-server
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.server
--- /dev/null
+SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-servlet
+SLC-Origin-ManifestNotModified: true
+Bundle-SymbolicName: org.eclipse.jetty.websocket.servlet
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-api
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.api
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-client
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.client
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-common
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.common
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:javax-websocket-client-impl
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.javax.websocket
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:javax-websocket-server-impl
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.javax.websocket.server
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-server
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.server
+++ /dev/null
-SLC-Origin-M2: org.eclipse.jetty.websocket:websocket-servlet
-SLC-Origin-ManifestNotModified: true
-Bundle-SymbolicName: org.eclipse.jetty.websocket.servlet
--- /dev/null
+Bundle-License: EPL-2.0
+SLC-Origin-M2: org.eclipse.jdt:ecj:3.28.0
+SLC-Origin-ManifestNotModified: true
\ No newline at end of file
--- /dev/null
+Bundle-License: BSD-3-Clause
+SLC-Origin-M2: org.eclipse.jgit:org.eclipse.jgit:5.5.0.201909110433-r
+SLC-Origin-ManifestNotModified: true
Import-Package: org.hamcrest;resolution:=optional,\
org.hamcrest.core;resolution:=optional,\
*
-SLC-Origin-M2: junit:junit:4.12
-Export-Package: junit.*;version="4.12.0"
\ No newline at end of file
+SLC-Origin-M2: junit:junit:4.12
\ No newline at end of file
Bundle-License: MIT
Bundle-SymbolicName: org.redline-rpm
-Bundle-Version: 1.2.8
Import-Package: sun.security.*;resolution:=optional,
org.apache.tools.ant.*;resolution:=optional,
org.apache.tools.zip;resolution:=optional,
--- /dev/null
+Bundle-SymbolicName: com.fasterxml.jackson.core.jackson-annotations
+SLC-Origin-M2: com.fasterxml.jackson.core:jackson-annotations
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: com.fasterxml.jackson.core.jackson-core
+SLC-Origin-M2: com.fasterxml.jackson.core:jackson-core
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-SymbolicName: com.fasterxml.jackson.core.jackson-databind
+SLC-Origin-M2: com.fasterxml.jackson.core:jackson-databind
+SLC-Origin-ManifestNotModified: true
--- /dev/null
+Bundle-License: Apache-2.0
+SLC-Origin-M2: :2.10.0
+++ /dev/null
-Bundle-License: Apache-2.0
-Bundle-SymbolicName: org.slf4j.api
-SLC-Origin-M2: org.slf4j:slf4j-api:1.7.28
--- /dev/null
+Bundle-License: Apache-2.0
+SLC-Origin-M2: :1.7.28
--- /dev/null
+Bundle-SymbolicName: org.slf4j.api
+SLC-Origin-M2: org.slf4j:slf4j-api
--- /dev/null
+Bundle-SymbolicName: org.slf4j.commons.logging
+SLC-Origin-M2: org.slf4j:jcl-over-slf4j
+Export-Package: org.apache.commons.logging.*;version="1.2"
\ No newline at end of file