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

NPE when calling WebArchive.addAsResource(String, String) with a directory name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0.1
    • None
    • None

    Description

      When calling WebArchive.addAsResource(String, String) with a path that is a directory, and that directory is on the classpath, but inside another jar, a NPE is thrown.

      The same kind of code works fine when run from inside the jar.

      I'll attach an example maven project that reproduces the issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simon-lindgren Simon Lindgren (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: