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

Add multiple modules at once to EnterpriseArchive

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • None

    Description

      At the moment I can add multiple modules to EnterpriseArchiv like this:

      final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "test.ear")
      .addModule(ejb)
      .addModule(war)
      .addModule(ArtifactResolver.resolve("org.jboss.seam:jboss-seam:2.2.0.GA"));

      Would be nice to shorten this a bit, like this:
      final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "test.ear")
      .addModules(ejb, war, ArtifactResolver.resolve("org.jboss.seam:jboss-seam:2.2.0.GA"));

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            michaelschuetz_jira Michael Schuetz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: