Add Content Files

The first Add Files to WAR dialog box enables you to add content files or whole directories to your .war file. An example of a content file would be a .gif or .html file.
  1. Click Browse to select the root directory of the files or directories that you want to add. For example, if your class files are part of a package called adder and your directory structure looks like:
    examples
        |
        adder
            |
            MyAdder.html
    
    then choose examples as your root directory.
  2. Select the directory or file that you want to add from the root directory structure. If you chose examples directory in the previous step, all of the files and directories contained in examples are displayed in the root directory structure.
  3. Click Add to add the selected directory or file to the .war file. If you chose examples as your root directory and added MyAdder.html to the .war file, adder/MyAdder.html or adder\MyAdder.html should appear in the lower text field.
  4. If you want to add class files, click Next to advance to the dialog for adding class files to the .war file.
  5. If you don't want to add class files, click Finish.
To remove a file or directory from the .war file, select its entry from the field in the 'Files to be Added' section of the dialog box and click Remove.

Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.