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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated: