Show TOC Start of Content Area

Procedure documentationManaging Files and Directories  Locate the document in its SAP Library structure

Use

The J2EE components need different source files in order to provide the desired functionality. In this procedure, you specify which separate files and whole directories will be used by the Deploy Tool to create those J2EE components.

Procedure

       1.      In your DLP project, choose the J2EE Components tab.

       2.      Choose an application component (EJB JAR, WAR, resource adapter or application client archive).

       3.      Choose the Files tab. Enter data as required.

Specifying Files and Directories to Add

...

       1.      To add files from a directory:

...

                                                  i.       Select the Directories node.

                                                ii.       Go to the Directory Path in the Directories Panel.

                                               iii.       Select the directories you want to add. You can enter their location or you can click the button next to the Directory Path field and use the File Chooser Window to navigate to the directories.

                                               iv.       Specify a mapping name if necessary.

                                                 v.       Click the Addbutton when ready. The directory will be added as a subnode of the Directoriesnode.

Note

Directories that are not filtered by a filter and a mapping or by exclude filters are added to the project with their original structure.

       2.      To add separate files:

...

                                                  i.       Select the Files node.

                                                ii.       Go to the File Path in the Files Panel.

                                               iii.       Select the files you want to add. You can enter their locations or you can click the button next to the Files Path field and use the File Chooser Window to navigate to the files.

                                               iv.       Specify a mapping name if necessary.

                                                 v.       Click the Add button when ready. The file will be added as a subnode of the Filesnode.

Specifying a Mapping Name for a File/Directory

       1.      Choose a file or a directory from the Archive Content Tree panel.

       2.      Go to the Map Name field.

       3.      Enter the mapping for that file/directory.

Note

Each file/directory can have one mapping name only. This name is the entry with which the file or directory will be included in the archive.

Note

If you want to add a Java class file that is a part of a JAR file, set the mapping name to that Java class file within the JAR.

Specifying a Filter and a Mapping for the Files

Use this feature when you want to add separate types of files from the directory, which are necessary for the application.

       1.      Choose the directory that was already added from the Archive Content Tree panel.

       3.      In the Directories Panel, select the Extension Mappings tab.

       4.      In the Filter and Mapping fields specify a filter/mapping pair for the types of files that will be included in the archive from this directory.

Use a semicolon to specify more than one filter. For example: txt; doc; html

Note

If you point to a directory that was already added, the filtered files are added to the files in that directory. If you point to a non-existing directory, a new directory with this name is created in the archive file.

Specifying an Exclude Filter for Files

Use this feature to exclude types of files that were added with a directory from an archive.

...

       1.      Choose the directory that was already added from the Archive Content Tree panel.

       2.      In the Directories Panel select the Exclude Filters tab.

       3.      In the Exclude Filters field enter the file extension to be excluded.

Use a semicolon to specify more than one filter. For example: txt; doc; html

Previewing the Files

Use this feature to preview all files that will become part of the archive in a directory node according to specified filters.

       1.      Choose a directory that was already added from the Archive Content Tree.

       2.      In the Directories Panel, select the Show with Filters checkbox.

If you deselect Show with Filters, you can see all files in a directory tree. This feature is useful to decide exactly which file you want to include or exclude.

View Dependency Files

The files of one archive can declare dependencies on files from other archive files. To see and manage them:

       1.      Choose the J2EE Components tab.

       2.      Select the archive from the tree pane.

       3.      Click the Dependencies button. The Dependencies dialog box opens.

       4.      You can select which dependencies will be kept when creating the application component archive. To do this, select the checkboxes in front of that dependency.

       5.      If you do not want to use this dependency in the application component archive, deselect the checkbox in front of that dependency.

Note

This feature is useful if you do not know whether these files are necessary, or if you do not know where they are situated.

 

 

End of Content Area