1 package org
.argeo
.slc
.build
;
3 import static java
.lang
.System
.Logger
.Level
.DEBUG
;
4 import static org
.argeo
.slc
.ManifestConstants
.BUNDLE_LICENSE
;
5 import static org
.argeo
.slc
.ManifestConstants
.BUNDLE_SYMBOLICNAME
;
6 import static org
.argeo
.slc
.ManifestConstants
.BUNDLE_VERSION
;
7 import static org
.argeo
.slc
.ManifestConstants
.SLC_ORIGIN_M2
;
9 import java
.io
.FileNotFoundException
;
10 import java
.io
.IOException
;
11 import java
.io
.InputStream
;
12 import java
.io
.OutputStream
;
13 import java
.io
.Writer
;
14 import java
.lang
.System
.Logger
;
15 import java
.lang
.System
.Logger
.Level
;
17 import java
.nio
.file
.DirectoryStream
;
18 import java
.nio
.file
.FileSystem
;
19 import java
.nio
.file
.FileSystems
;
20 import java
.nio
.file
.FileVisitResult
;
21 import java
.nio
.file
.Files
;
22 import java
.nio
.file
.Path
;
23 import java
.nio
.file
.PathMatcher
;
24 import java
.nio
.file
.Paths
;
25 import java
.nio
.file
.SimpleFileVisitor
;
26 import java
.nio
.file
.attribute
.BasicFileAttributes
;
27 import java
.util
.ArrayList
;
28 import java
.util
.HashMap
;
29 import java
.util
.List
;
31 import java
.util
.Properties
;
32 import java
.util
.TreeMap
;
33 import java
.util
.jar
.Attributes
;
34 import java
.util
.jar
.JarEntry
;
35 import java
.util
.jar
.JarInputStream
;
36 import java
.util
.jar
.JarOutputStream
;
37 import java
.util
.jar
.Manifest
;
39 import org
.argeo
.slc
.DefaultNameVersion
;
40 import org
.argeo
.slc
.ManifestConstants
;
41 import org
.argeo
.slc
.NameVersion
;
42 import org
.argeo
.slc
.build
.m2
.DefaultArtifact
;
43 import org
.argeo
.slc
.build
.m2
.MavenConventionsUtils
;
45 import aQute
.bnd
.osgi
.Analyzer
;
46 import aQute
.bnd
.osgi
.Jar
;
48 public class A2Factory
{
49 private final static Logger logger
= System
.getLogger(A2Factory
.class.getName());
51 private final static String COMMON_BND
= "common.bnd";
53 private Path originBase
;
54 private Path factoryBase
;
56 /** key is URI prefix, value list of base URLs */
57 private Map
<String
, List
<String
>> mirrors
= new HashMap
<String
, List
<String
>>();
59 public A2Factory(Path originBase
, Path factoryBase
) {
61 this.originBase
= originBase
;
62 this.factoryBase
= factoryBase
;
64 // TODO make it configurable
65 List
<String
> eclipseMirrors
= new ArrayList
<>();
66 eclipseMirrors
.add("https://archive.eclipse.org/");
68 mirrors
.put("http://www.eclipse.org/downloads", eclipseMirrors
);
71 public void processCategory(Path targetCategoryBase
) {
73 DirectoryStream
<Path
> bnds
= Files
.newDirectoryStream(targetCategoryBase
,
74 (p
) -> p
.getFileName().toString().endsWith(".bnd")
75 && !p
.getFileName().toString().equals(COMMON_BND
));
77 processSingleM2ArtifactDistributionUnit(p
);
80 DirectoryStream
<Path
> dus
= Files
.newDirectoryStream(targetCategoryBase
, (p
) -> Files
.isDirectory(p
));
81 for (Path duDir
: dus
) {
82 processM2BasedDistributionUnit(duDir
);
84 } catch (IOException e
) {
85 throw new RuntimeException("Cannot process category " + targetCategoryBase
, e
);
89 public void processSingleM2ArtifactDistributionUnit(Path bndFile
) {
91 String category
= bndFile
.getParent().getFileName().toString();
92 Path targetCategoryBase
= factoryBase
.resolve(category
);
93 Properties fileProps
= new Properties();
94 try (InputStream in
= Files
.newInputStream(bndFile
)) {
98 String m2Coordinates
= fileProps
.getProperty(SLC_ORIGIN_M2
.toString());
99 if (m2Coordinates
== null)
100 throw new IllegalArgumentException("No M2 coordinates available for " + bndFile
);
101 DefaultArtifact artifact
= new DefaultArtifact(m2Coordinates
);
102 URL url
= MavenConventionsUtils
.mavenCentralUrl(artifact
);
103 Path downloaded
= download(url
, originBase
, artifact
.toM2Coordinates() + ".jar");
105 Path targetBundleDir
= processBndJar(downloaded
, targetCategoryBase
, fileProps
, artifact
);
107 downloadAndProcessM2Sources(artifact
, targetBundleDir
);
109 createJar(targetBundleDir
);
110 } catch (Exception e
) {
111 throw new RuntimeException("Cannot process " + bndFile
, e
);
115 public void processM2BasedDistributionUnit(Path duDir
) {
117 String category
= duDir
.getParent().getFileName().toString();
118 Path targetCategoryBase
= factoryBase
.resolve(category
);
119 Path commonBnd
= duDir
.resolve(COMMON_BND
);
120 Properties commonProps
= new Properties();
121 try (InputStream in
= Files
.newInputStream(commonBnd
)) {
122 commonProps
.load(in
);
125 String m2Version
= commonProps
.getProperty(SLC_ORIGIN_M2
.toString());
126 if (!m2Version
.startsWith(":")) {
127 throw new IllegalStateException("Only the M2 version can be specified: " + m2Version
);
129 m2Version
= m2Version
.substring(1);
131 // String license = commonProps.getProperty(BUNDLE_LICENSE.toString());
133 DirectoryStream
<Path
> ds
= Files
.newDirectoryStream(duDir
,
134 (p
) -> p
.getFileName().toString().endsWith(".bnd")
135 && !p
.getFileName().toString().equals(COMMON_BND
));
137 Properties fileProps
= new Properties();
138 try (InputStream in
= Files
.newInputStream(p
)) {
141 String m2Coordinates
= fileProps
.getProperty(SLC_ORIGIN_M2
.toString());
142 DefaultArtifact artifact
= new DefaultArtifact(m2Coordinates
);
144 // temporary rewrite, for migration
145 String localLicense
= fileProps
.getProperty(BUNDLE_LICENSE
.toString());
146 if (localLicense
!= null || artifact
.getVersion() != null) {
147 fileProps
.remove(BUNDLE_LICENSE
.toString());
148 fileProps
.put(SLC_ORIGIN_M2
.toString(), artifact
.getGroupId() + ":" + artifact
.getArtifactId());
149 try (Writer writer
= Files
.newBufferedWriter(p
)) {
150 for (Object key
: fileProps
.keySet()) {
151 String value
= fileProps
.getProperty(key
.toString());
152 writer
.write(key
+ ": " + value
+ '\n');
154 logger
.log(DEBUG
, () -> "Migrated " + p
);
158 artifact
.setVersion(m2Version
);
159 URL url
= MavenConventionsUtils
.mavenCentralUrl(artifact
);
160 Path downloaded
= download(url
, originBase
, artifact
.toM2Coordinates() + ".jar");
162 // prepare manifest entries
163 Properties mergeProps
= new Properties();
164 mergeProps
.putAll(commonProps
);
166 // Map<String, String> entries = new HashMap<>();
167 // for (Object key : commonProps.keySet()) {
168 // entries.put(key.toString(), commonProps.getProperty(key.toString()));
170 fileEntries
: for (Object key
: fileProps
.keySet()) {
171 if (ManifestConstants
.SLC_ORIGIN_M2
.toString().equals(key
))
172 continue fileEntries
;
173 String value
= fileProps
.getProperty(key
.toString());
174 Object previousValue
= mergeProps
.put(key
.toString(), value
);
175 if (previousValue
!= null) {
176 logger
.log(Level
.WARNING
,
177 downloaded
+ ": " + key
+ " was " + previousValue
+ ", overridden with " + value
);
180 mergeProps
.put(ManifestConstants
.SLC_ORIGIN_M2
.toString(), artifact
.toM2Coordinates());
181 Path targetBundleDir
= processBndJar(downloaded
, targetCategoryBase
, mergeProps
, artifact
);
182 // logger.log(Level.DEBUG, () -> "Processed " + downloaded);
185 downloadAndProcessM2Sources(artifact
, targetBundleDir
);
187 createJar(targetBundleDir
);
189 } catch (IOException e
) {
190 throw new RuntimeException("Cannot process " + duDir
, e
);
195 protected void downloadAndProcessM2Sources(DefaultArtifact artifact
, Path targetBundleDir
) throws IOException
{
196 DefaultArtifact sourcesArtifact
= new DefaultArtifact(artifact
.toM2Coordinates(), "sources");
197 URL sourcesUrl
= MavenConventionsUtils
.mavenCentralUrl(sourcesArtifact
);
198 Path sourcesDownloaded
= download(sourcesUrl
, originBase
, artifact
.toM2Coordinates() + ".sources.jar");
199 processM2SourceJar(sourcesDownloaded
, targetBundleDir
);
200 logger
.log(Level
.DEBUG
, () -> "Processed source " + sourcesDownloaded
);
204 protected Path
processBndJar(Path downloaded
, Path targetCategoryBase
, Properties fileProps
,
205 DefaultArtifact artifact
) {
208 Map
<String
, String
> additionalEntries
= new TreeMap
<>();
209 boolean doNotModify
= Boolean
.parseBoolean(fileProps
210 .getOrDefault(ManifestConstants
.SLC_ORIGIN_MANIFEST_NOT_MODIFIED
.toString(), "false").toString());
213 fileEntries
: for (Object key
: fileProps
.keySet()) {
214 if (ManifestConstants
.SLC_ORIGIN_M2
.toString().equals(key
))
215 continue fileEntries
;
216 String value
= fileProps
.getProperty(key
.toString());
217 additionalEntries
.put(key
.toString(), value
);
220 if (artifact
!= null) {
221 if (!fileProps
.containsKey(BUNDLE_SYMBOLICNAME
.toString())) {
222 fileProps
.put(BUNDLE_SYMBOLICNAME
.toString(), artifact
.getName());
224 if (!fileProps
.containsKey(BUNDLE_VERSION
.toString())) {
225 fileProps
.put(BUNDLE_VERSION
.toString(), artifact
.getVersion());
229 // if (!fileProps.contains(EXPORT_PACKAGE.toString())) {
230 // fileProps.put(EXPORT_PACKAGE.toString(), "*");
232 // if (!fileProps.contains(IMPORT_PACKAGE.toString())) {
233 // fileProps.put(IMPORT_PACKAGE.toString(), "*");
236 try (Analyzer bndAnalyzer
= new Analyzer()) {
237 bndAnalyzer
.setProperties(fileProps
);
238 Jar jar
= new Jar(downloaded
.toFile());
239 bndAnalyzer
.setJar(jar
);
240 Manifest manifest
= bndAnalyzer
.calcManifest();
242 keys
: for (Object key
: manifest
.getMainAttributes().keySet()) {
243 Object value
= manifest
.getMainAttributes().get(key
);
245 switch (key
.toString()) {
247 case "Bnd-LastModified":
251 additionalEntries
.put(key
.toString(), value
.toString());
252 // logger.log(DEBUG, () -> key + "=" + value);
257 Path targetBundleDir
= processBundleJar(downloaded
, targetCategoryBase
, additionalEntries
);
258 logger
.log(Level
.DEBUG
, () -> "Processed " + downloaded
);
259 return targetBundleDir
;
260 } catch (Exception e
) {
261 throw new RuntimeException("Cannot BND process " + downloaded
, e
);
266 protected void processM2SourceJar(Path file
, Path targetBundleDir
) throws IOException
{
267 try (JarInputStream jarIn
= new JarInputStream(Files
.newInputStream(file
), false)) {
268 Path targetSourceDir
= targetBundleDir
.resolve("OSGI-OPT/src");
270 // TODO make it less dangerous?
271 if (Files
.exists(targetSourceDir
)) {
272 deleteDirectory(targetSourceDir
);
274 Files
.createDirectories(targetSourceDir
);
279 entries
: while ((entry
= jarIn
.getNextJarEntry()) != null) {
280 if (entry
.isDirectory())
282 if (entry
.getName().startsWith("META-INF"))// skip META-INF entries
284 Path target
= targetSourceDir
.resolve(entry
.getName());
285 Files
.createDirectories(target
.getParent());
286 Files
.copy(jarIn
, target
);
287 logger
.log(Level
.TRACE
, () -> "Copied source " + target
);
293 public void processEclipseArchive(Path duDir
) {
295 String category
= duDir
.getParent().getFileName().toString();
296 Path targetCategoryBase
= factoryBase
.resolve(category
);
297 Files
.createDirectories(targetCategoryBase
);
298 Files
.createDirectories(originBase
);
300 Path commonBnd
= duDir
.resolve(COMMON_BND
);
301 Properties commonProps
= new Properties();
302 try (InputStream in
= Files
.newInputStream(commonBnd
)) {
303 commonProps
.load(in
);
305 Properties includes
= new Properties();
306 try (InputStream in
= Files
.newInputStream(duDir
.resolve("includes.properties"))) {
309 String url
= commonProps
.getProperty(ManifestConstants
.SLC_ORIGIN_URI
.toString());
310 Path downloaded
= tryDownload(url
, originBase
);
312 FileSystem zipFs
= FileSystems
.newFileSystem(downloaded
, null);
314 List
<PathMatcher
> pathMatchers
= new ArrayList
<>();
315 for (Object pattern
: includes
.keySet()) {
316 PathMatcher pathMatcher
= zipFs
.getPathMatcher("glob:/" + pattern
);
317 pathMatchers
.add(pathMatcher
);
320 Files
.walkFileTree(zipFs
.getRootDirectories().iterator().next(), new SimpleFileVisitor
<Path
>() {
323 public FileVisitResult
visitFile(Path file
, BasicFileAttributes attrs
) throws IOException
{
324 pathMatchers
: for (PathMatcher pathMatcher
: pathMatchers
) {
325 if (pathMatcher
.matches(file
)) {
326 // Path target = targetBase.resolve(file.getFileName().toString());
327 // if (!Files.exists(target)) {
328 // Files.copy(file, target);
329 // logger.log(Level.DEBUG, () -> "Copied " + target + " from " + downloaded);
331 // logger.log(Level.DEBUG, () -> target + " already exists.");
334 if (file
.getFileName().toString().contains(".source_")) {
335 processEclipseSourceJar(file
, targetCategoryBase
);
336 logger
.log(Level
.DEBUG
, () -> "Processed source " + file
);
339 processBundleJar(file
, targetCategoryBase
, new HashMap
<>());
340 logger
.log(Level
.DEBUG
, () -> "Processed " + file
);
342 continue pathMatchers
;
345 return super.visitFile(file
, attrs
);
349 DirectoryStream
<Path
> dirs
= Files
.newDirectoryStream(targetCategoryBase
, (p
) -> Files
.isDirectory(p
));
350 for (Path dir
: dirs
) {
353 } catch (IOException e
) {
354 throw new RuntimeException("Cannot process " + duDir
, e
);
359 protected Path
processBundleJar(Path file
, Path targetBase
, Map
<String
, String
> entries
) throws IOException
{
360 NameVersion nameVersion
;
361 Path targetBundleDir
;
362 try (JarInputStream jarIn
= new JarInputStream(Files
.newInputStream(file
), false)) {
363 Manifest manifest
= new Manifest(jarIn
.getManifest());
365 // remove problematic entries in MANIFEST
366 manifest
.getEntries().clear();
367 // Set<String> entriesToDelete = new HashSet<>();
368 // for (String key : manifest.getEntries().keySet()) {
369 //// logger.log(DEBUG, "## " + key);
370 // Attributes attrs = manifest.getAttributes(key);
371 // for (Object attrName : attrs.keySet()) {
372 //// logger.log(DEBUG, attrName + "=" + attrs.get(attrName));
373 // if ("Specification-Version".equals(attrName.toString())
374 // || "Implementation-Version".equals(attrName.toString())) {
375 // entriesToDelete.add(key);
380 // for (String key : entriesToDelete) {
381 // manifest.getEntries().remove(key);
384 String symbolicNameFromEntries
= entries
.get(BUNDLE_SYMBOLICNAME
.toString());
385 String versionFromEntries
= entries
.get(BUNDLE_VERSION
.toString());
387 if (symbolicNameFromEntries
!= null && versionFromEntries
!= null) {
388 nameVersion
= new DefaultNameVersion(symbolicNameFromEntries
, versionFromEntries
);
390 nameVersion
= nameVersionFromManifest(manifest
);
391 if (versionFromEntries
!= null && !nameVersion
.getVersion().equals(versionFromEntries
)) {
392 logger
.log(Level
.WARNING
, "Original version is " + nameVersion
.getVersion()
393 + " while new version is " + versionFromEntries
);
396 targetBundleDir
= targetBase
.resolve(nameVersion
.getName() + "." + nameVersion
.getBranch());
398 // TODO make it less dangerous?
399 if (Files
.exists(targetBundleDir
)) {
400 deleteDirectory(targetBundleDir
);
405 entries
: while ((entry
= jarIn
.getNextJarEntry()) != null) {
406 if (entry
.isDirectory())
408 if (entry
.getName().endsWith(".RSA") || entry
.getName().endsWith(".SF"))
410 Path target
= targetBundleDir
.resolve(entry
.getName());
411 Files
.createDirectories(target
.getParent());
412 Files
.copy(jarIn
, target
);
413 logger
.log(Level
.TRACE
, () -> "Copied " + target
);
417 Path manifestPath
= targetBundleDir
.resolve("META-INF/MANIFEST.MF");
418 Files
.createDirectories(manifestPath
.getParent());
419 for (String key
: entries
.keySet()) {
420 String value
= entries
.get(key
);
421 Object previousValue
= manifest
.getMainAttributes().putValue(key
, value
);
422 if (previousValue
!= null && !previousValue
.equals(value
)) {
423 logger
.log(Level
.WARNING
,
424 file
.getFileName() + ": " + key
+ " was " + previousValue
+ ", overridden with " + value
);
427 try (OutputStream out
= Files
.newOutputStream(manifestPath
)) {
431 return targetBundleDir
;
434 protected void processEclipseSourceJar(Path file
, Path targetBase
) throws IOException
{
435 // NameVersion nameVersion;
436 Path targetBundleDir
;
437 try (JarInputStream jarIn
= new JarInputStream(Files
.newInputStream(file
), false)) {
438 Manifest manifest
= jarIn
.getManifest();
439 // nameVersion = nameVersionFromManifest(manifest);
441 String
[] relatedBundle
= manifest
.getMainAttributes().getValue("Eclipse-SourceBundle").split(";");
442 String version
= relatedBundle
[1].substring("version=\"".length());
443 version
= version
.substring(0, version
.length() - 1);
444 NameVersion nameVersion
= new DefaultNameVersion(relatedBundle
[0], version
);
445 targetBundleDir
= targetBase
.resolve(nameVersion
.getName() + "." + nameVersion
.getBranch());
447 Path targetSourceDir
= targetBundleDir
.resolve("OSGI-OPT/src");
449 // TODO make it less dangerous?
450 if (Files
.exists(targetSourceDir
)) {
451 deleteDirectory(targetSourceDir
);
453 Files
.createDirectories(targetSourceDir
);
458 entries
: while ((entry
= jarIn
.getNextJarEntry()) != null) {
459 if (entry
.isDirectory())
461 if (entry
.getName().startsWith("META-INF"))// skip META-INF entries
463 Path target
= targetSourceDir
.resolve(entry
.getName());
464 Files
.createDirectories(target
.getParent());
465 Files
.copy(jarIn
, target
);
466 logger
.log(Level
.TRACE
, () -> "Copied source " + target
);
470 // Path manifestPath = targetBundleDir.resolve("META-INF/MANIFEST.MF");
471 // Files.createDirectories(manifestPath.getParent());
472 // try (OutputStream out = Files.newOutputStream(manifestPath)) {
473 // manifest.write(out);
479 static void deleteDirectory(Path path
) throws IOException
{
480 if (!Files
.exists(path
))
482 Files
.walkFileTree(path
, new SimpleFileVisitor
<Path
>() {
484 public FileVisitResult
postVisitDirectory(Path directory
, IOException e
) throws IOException
{
487 Files
.delete(directory
);
488 return FileVisitResult
.CONTINUE
;
492 public FileVisitResult
visitFile(Path file
, BasicFileAttributes attrs
) throws IOException
{
494 return FileVisitResult
.CONTINUE
;
499 protected NameVersion
nameVersionFromManifest(Manifest manifest
) {
500 Attributes attrs
= manifest
.getMainAttributes();
502 String symbolicName
= attrs
.getValue(ManifestConstants
.BUNDLE_SYMBOLICNAME
.toString());
503 if (symbolicName
== null)
505 // make sure there is no directive
506 symbolicName
= symbolicName
.split(";")[0];
508 String version
= attrs
.getValue(ManifestConstants
.BUNDLE_VERSION
.toString());
509 return new DefaultNameVersion(symbolicName
, version
);
512 protected Path
tryDownload(String uri
, Path dir
) throws IOException
{
514 List
<String
> urlBases
= null;
515 String uriPrefix
= null;
516 uriPrefixes
: for (String uriPref
: mirrors
.keySet()) {
517 if (uri
.startsWith(uriPref
)) {
518 if (mirrors
.get(uriPref
).size() > 0) {
519 urlBases
= mirrors
.get(uriPref
);
525 if (urlBases
== null)
527 return download(new URL(uri
), dir
, null);
528 } catch (FileNotFoundException e
) {
529 throw new FileNotFoundException("Cannot find " + uri
);
533 for (String urlBase
: urlBases
) {
534 String relativePath
= uri
.substring(uriPrefix
.length());
535 URL url
= new URL(urlBase
+ relativePath
);
537 return download(url
, dir
, null);
538 } catch (FileNotFoundException e
) {
539 logger
.log(Level
.WARNING
, "Cannot download " + url
+ ", trying another mirror");
542 throw new FileNotFoundException("Cannot find " + uri
);
545 // protected String simplifyName(URL u) {
546 // String name = u.getPath().substring(u.getPath().lastIndexOf('/') + 1);
550 protected Path
download(URL url
, Path dir
, String name
) throws IOException
{
554 name
= url
.getPath().substring(url
.getPath().lastIndexOf('/') + 1);
557 dest
= dir
.resolve(name
);
558 if (Files
.exists(dest
)) {
559 logger
.log(Level
.TRACE
, () -> "File " + dest
+ " already exists for " + url
+ ", not downloading again");
563 try (InputStream in
= url
.openStream()) {
564 Files
.copy(in
, dest
);
565 logger
.log(Level
.DEBUG
, () -> "Downloaded " + dest
+ " from " + url
);
570 protected Path
createJar(Path bundleDir
) throws IOException
{
571 Path jarPath
= bundleDir
.getParent().resolve(bundleDir
.getFileName() + ".jar");
572 Path manifestPath
= bundleDir
.resolve("META-INF/MANIFEST.MF");
574 try (InputStream in
= Files
.newInputStream(manifestPath
)) {
575 manifest
= new Manifest(in
);
577 try (JarOutputStream jarOut
= new JarOutputStream(Files
.newOutputStream(jarPath
), manifest
)) {
578 Files
.walkFileTree(bundleDir
, new SimpleFileVisitor
<Path
>() {
581 public FileVisitResult
visitFile(Path file
, BasicFileAttributes attrs
) throws IOException
{
582 if (file
.getFileName().toString().equals("MANIFEST.MF"))
583 return super.visitFile(file
, attrs
);
584 JarEntry entry
= new JarEntry(bundleDir
.relativize(file
).toString());
585 jarOut
.putNextEntry(entry
);
586 Files
.copy(file
, jarOut
);
587 return super.visitFile(file
, attrs
);
592 deleteDirectory(bundleDir
);
596 public static void main(String
[] args
) {
597 Path originBase
= Paths
.get("../output/origin").toAbsolutePath().normalize();
598 Path factoryBase
= Paths
.get("../output/a2").toAbsolutePath().normalize();
599 A2Factory factory
= new A2Factory(originBase
, factoryBase
);
601 Path descriptorsBase
= Paths
.get("../tp").toAbsolutePath().normalize();
604 factory
.processEclipseArchive(
605 descriptorsBase
.resolve("org.argeo.tp.eclipse.equinox").resolve("eclipse-equinox"));
606 factory
.processEclipseArchive(descriptorsBase
.resolve("org.argeo.tp.eclipse.rap").resolve("eclipse-rap"));
607 factory
.processEclipseArchive(descriptorsBase
.resolve("org.argeo.tp.eclipse.rcp").resolve("eclipse-rcp"));
610 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp.javax"));
611 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp"));
612 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp.apache"));
613 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp.jetty"));
614 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp.sdk"));
615 factory
.processCategory(descriptorsBase
.resolve("org.argeo.tp.jcr"));