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

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0-beta-3
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lincolnthree Lincoln Baxter III
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: