Adding External Resources to WAR Files

See Also

When you package a web module as a WAR file, the default package includes only those files that are part of the web module. To add a file that is external to the web module to the WAR package, use the Extra Files property in the WEB-INF property sheet. Extra files might include image files, text files, or other resources that reside outside the web module. When adding extra files, the default target directory is the web module's document base (root directory).

To include extra files in a web module archive:

  1. Display the WEB-INF property sheet.
  2. Click the ellipsis (...) button in the Extra Files value field to display the Extra Files property editor.
  3. In the Extra Files dialog box, select the file to be added and select the desired directory prefix.
  4. Click Add.
    Repeat as needed. To remove an added file, select the file in the Chosen content list and click Remove.
  5. Click OK to close the property editor.
See Also
Editing Web Module Archive Properties
Creating WAR Files

Legal Notices