2010年1月20日 星期三

pkgscanner - Project Hosting on Google Code

pkgscanner - Project Hosting on Google Code

The intended use is to generate the Export-Package OSGi header value to automatically expose the current classpath to an embedded OSGi container.

Example:

Collection exports = new PackageScanner()
.select(
jars(
include(
"*.jar",
"bar-*.jar"),
exclude(
"*dira*.jar")),
packages(
include(
"org.*",
"com.*",
"javax.*",
"org.twdata.pkgscanner.*"),

exclude(
"com.intellij.*")))
.withMappings(
mapPackage("org.twdata.pkgscanner.foo").toVersion("2.0.4"))
.scan();

沒有留言:

張貼留言