[jboss-jira] [JBoss JIRA] (AS7-5213) Add org.osgi.core dependency to ARQ generated test deployments
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Thu Jul 19 02:21:06 EDT 2012
Thomas Diesler created AS7-5213:
-----------------------------------
Summary: Add org.osgi.core dependency to ARQ generated test deployments
Key: AS7-5213
URL: https://issues.jboss.org/browse/AS7-5213
Project: Application Server 7
Issue Type: Task
Components: OSGi, Test Suite
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.2.0.Alpha1
We have a number of test deployments that integrate with OSGi, but don't have the necessary module dependencies. Currently such a deployment has to use code like this
{code}
@Deployment
public static JavaArchive createdeployment() {
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "example-javaee");
archive.addClasses(HttpSupport.class);
archive.setManifest(new Asset() {
@Override
public InputStream openStream() {
ManifestBuilder builder = ManifestBuilder.newInstance();
builder.addManifestHeader("Dependencies", "org.osgi.core");
return builder.openStream();
}
});
return archive;
}
{code}
The ARQ protocol layer should transparently handle this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list