[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-299) addAsResources() does not remove /classes segment when adding output directory to deployment
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Tue Sep 6 09:43:27 EDT 2011
[ https://issues.jboss.org/browse/SHRINKWRAP-299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626466#comment-12626466 ]
Geoffrey De Smet commented on SHRINKWRAP-299:
---------------------------------------------
@aslak +1 for
"target" means add the directory and it's children
"target/" means add the children
The javadoc on the method should clearly state this.
> addAsResources() does not remove /classes segment when adding output directory to deployment
> --------------------------------------------------------------------------------------------
>
> Key: SHRINKWRAP-299
> URL: https://issues.jboss.org/browse/SHRINKWRAP-299
> Project: ShrinkWrap
> Issue Type: Bug
> Affects Versions: 1.0.0-beta-3
> 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
More information about the shrinkwrap-issues
mailing list