Adding files to assembled modules
Review the usage scenario (as follows) to become familiar with the Add Files dialog. Use the Add Files dialog box of the Application Assembly Tool (AAT) to import files into assembled modules including Enterprise application , Webapp (WAR), Resource adapter (RAR) and Application client (JAR) files.
This task assumes that you are performing another task, such as assembling a Web or EJB module, when the Add Files dialog is presented to you.
- Click Browse. Locate the files to add.
- To add specific individual files, select the directory or archive (WAR, JAR, RAR, ZIP, for example) containing the files.
- To add an entire directory of files, select its parent directory.
- Click OK. The selected directory or achive appears in the top left part of the dialog box, in an expandable tree.
The top right part of the dialog box shows the contents of the directory, subdirectory, or archive that is selected on the left-hand side.
- Select one or more items to add from the top right part of the dialog, then click Add. As you add files, they will be displayed in the lower half of the dialog box.
- Change your left-hand selection to gain access to other files that you want to add, as needed.
- Click OK when all of the files that you want to add appear in the lower half of the dialog box.
Usage scenario
The following example refers to the main areas of the Add Files dialog box. Details such as clicking OK are omitted. Refer to the detailed task steps above for this information.Suppose you are constructing a new application module and want to add myFile.txt file to the archive as a supplementary file. The myFile.txt currently is contained within the myFiles subdirectory of a JAR file that resides somewhere on your directory system.
- Browse for the JAR file.
- Select the JAR file.
- Exit the browse dialog. At this point:
- Area 1 of the Add Files dialog contains the path to the JAR file.
- Area 2 displays the JAR file name as the root directory of an expandable tree showing the directories in the JAR file -- including myFiles .
- Area 3 shows the root contents of the JAR file, as well as any subdirectories visible from the root.
- Select the myFiles directory from area 2, causing myFile.txt to become visible in area 3.
- Click myFiles.txt from area 3 and specify to Add the file. Now this file is listed in area 4, the lower half of the dialog, which indicates it is the file that you want to add to the new application module.
- Exit the Add Files dialog.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.