[JBoss JIRA] Moved: (SHRINKWRAP-239) Support the notion of shrinkwrap BundleArchive
by Thomas Diesler (JIRA)
[ https://jira.jboss.org/browse/SHRINKWRAP-239?page=com.atlassian.jira.plug... ]
Thomas Diesler moved ARQ-191 to SHRINKWRAP-239:
-----------------------------------------------
Project: ShrinkWrap (was: Arquillian)
Key: SHRINKWRAP-239 (was: ARQ-191)
Issue Type: Feature Request (was: Task)
Component/s: assembly
(was: OSGi Containers)
> Support the notion of shrinkwrap BundleArchive
> -----------------------------------------------
>
> Key: SHRINKWRAP-239
> URL: https://jira.jboss.org/browse/SHRINKWRAP-239
> Project: ShrinkWrap
> Issue Type: Feature Request
> Components: assembly
> Reporter: Thomas Diesler
>
> Currently we create test bundles like this
> final JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class);
> archive.setManifest(new Asset()
> {
> public InputStream openStream()
> {
> OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance();
> builder.addBundleSymbolicName(archive.getName());
> builder.addBundleManifestVersion(2);
> builder.addBundleActivator(SimpleActivator.class.getName());
> // [TODO] generate a separate bundle the contains the test case
> builder.addExportPackages(OSGiEmbeddedFrameworkTestCase.class);
> builder.addImportPackages("org.jboss.arquillian.junit", "org.jboss.shrinkwrap.api", "org.jboss.shrinkwrap.api.spec");
> builder.addImportPackages("javax.inject", "org.junit", "org.junit.runner");
> return builder.openStream();
> }
> });
> archive.addClasses(SimpleActivator.class, SimpleService.class);
> archive.addClasses(OSGiEmbeddedFrameworkTestCase.class);
> This should be done much easier via a BundleArchive
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months