[JBoss JIRA] Created: (ARQ-494) addAsResources() does not remove /classes segment when adding output directory to deployment
by Lincoln Baxter III (JIRA)
addAsResources() does not remove /classes segment when adding output directory to deployment
--------------------------------------------------------------------------------------------
Key: ARQ-494
URL: https://issues.jboss.org/browse/ARQ-494
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 1.0.0.CR1
Reporter: Lincoln Baxter III
{code}
@Deployment(testable = false)
public static WebArchive getDeployment()
{
return ShrinkWrap
.create(WebArchive.class, "rewrite-test.war")
.addAsResource(new File("../api/target/classes/com"))
.addAsResource(new File("../api/target/classes/META-INF"))
.addAsResource(new File("../impl-servlet/target/classes/com"))
.addAsResource(new File("../impl-servlet/target/classes/META-INF"))
.addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class)
.artifacts("org.jboss.weld.servlet:weld-servlet:1.1.1.Final")
.resolveAs(GenericArchive.class))
.setWebXML("jetty-web.xml")
.addAsWebResource(
new StringAsset("<beans/>"),
ArchivePaths.create("WEB-INF/beans.xml"))
.addAsWebResource("jetty-env.xml",
ArchivePaths.create("WEB-INF/jetty-env.xml"));
}
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira