Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-299

addAsResources() does not remove /classes segment when adding output directory to deployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.0-beta-3
    • None

         @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"));
         }
      

              Unassigned Unassigned
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: