Managing files to the Navigator Application war file

The operator provides a mechanism to add files into your Navigator application WAR file. This can be useful for enabling customizations.

About this task

In a sample use case, you might want to add a workflow step processor customization. This requires a .jsp file inside of the Navigator WAR file. You can configure the operator to locate the custom file and copy it to a specified location in the WAR file.

The following source files types are supported for copy into the WAR file for Navigator:
  • .jpeg
  • .jpg
  • .gif
  • .png
  • .bmp
  • .svg
  • .pcx
  • .tif
  • .tiff
  • .html
  • .htm
  • .jsp
  • .css

Other file types are ignored and not copied into the WAR file.

This copy operation uses the copy_files_to_war parameter to specify a configured XML file with the copy parameters.

Procedure

To configure this capability:

  1. In the configDropin/overrides directory for Navigator, create an XML file with the following format:
    <files>
        <file>
            <source>$source_file_path$</source>
            <dest>$target_file_path$</dest>
        </file>
    ......
    </files>
  2. Replace the $source_file_path$ with the path to the file that you want to add.
  3. Replace the $target_file_path$ with the location in your WAR file where you want to add the custom file.
  4. Save the file to the configuration overrides folder for Navigator:
    /opt/ibm/wlp/usr/servers/defaultServer/configDropins/overrides
  5. In the custom resource file, uncomment the copy_files_to_war parameter and add the path and name of the XML file that you created for the file copy operation.