[jboss-user] [JBoss Microcontainer Development] New message: "Re: How to migrate AssembledDirectory"

Adrian Brock do-not-reply at jboss.com
Tue Mar 2 10:08:17 EST 2010

User development,

A new message was posted in the thread "How to migrate AssembledDirectory":


Author  : Adrian Brock
Profile : http://community.jboss.org/people/adrian@jboss.org

> johnbailey wrote:
> A better long-term approach would be to move to using ShrinkWrap archives to declaratively create ear/war/jar archives.  ShrinkWrap already has fluent API to add classes/resources to an archive.
Not for these tests. We don't want to create an archive, although Thomas has already found a tool for doing that called "bnd".
For these tests, we want to pass the metadata objects in explicitly (via the predetermined attachments on the deployment)
rather than having them parsed from xml.
e.g. for testing all the different permutations of OSGi metadata
we use an "AssembledDirectory" that filters the specified packages in the classpath and then
we create many different OSGiMetaData objects with slight tweaks to different parameters.
Any other way would require hundreds of manifest files and slow down the tests as you have to construct the jars.


To reply to this message visit the message page: http://community.jboss.org/message/529380#529380

More information about the jboss-user mailing list