Sun Java System Access Manager 7 2005Q4 Developer's Guide

Updating Modified WARs

Once a file within a WAR is modified, the WAR itself needs to be updated with the newly modified file. Following is the procedure to update a WAR.

ProcedureTo Update a Modified .war File

  1. cd AccessManager-base/ SUNWam

    This is the directory in which the WARs are kept.

  2. jar -uvf WARfilename.war < path_to_modified_file>

    The -uvf option replaces the old file with the newly modified file. For example:

    jar -uvf console.war newfile/index.html

    replaces the index.html file in console.war with the index.html file located in AccessManager-base/SUNWam/newfile .

  3. rm newfile/index.html

    Delete the modified file.