Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-161

war.staticContent() looks for static content in $PWD, even when run from a fatjar

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      Take the following code example:

       WARArchive war = ShrinkWrap.create(WARArchive.class);
       war.staticContent();
      

      When run from a foo-swarm.jar, that code looks for static content relative to $PWD. Instead, it should look for the static content inside the jar. It doesn't appear src/main/resources/ ends up inside the -swarm.jar by default, or at least not in the web-client of our booker sample app, so perhaps it is looking in the jar first and falling back to $PWD?

      Either way, we need to figure out the right way to handle static assets when run from a fatjar.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bbrowning Bruce Browning
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: