J2EE Analysis Unit editor - Source Settings tab


This section provides a detailed description of the specific Source Settings tab in the J2EE Analysis Unit editor.

Java tab
Java File Extensions This section displays a list of the file extensions that are included in the current file filter for your Java code analysis. Only files that match these file extensions will be taken into account during the analysis.
Java Files Use this section to include or exclude specific source files for the Analysis Unit for analysis purposes - these are mainly to be used when you are manually creating your Analysis Unit but can also be used if you are modifying an automatically created Analysis Unit.
  • Use the buttons to include or exclude specific Source Files (in the case files, only files matching the choices made in Java File Extensions above will be considered) or Source Folders (folders are searched recursively).

    By default CAST will automatically suggest the Deployment Folder set in the Current Version tab (Application editor) for your Package when adding new source code folders or files.
  • Use the button to remove an existing entry
  • Use the button to edit an existing entry
  • If this Analysis Unit is automatically defined use the button to reset the list to the entries defined by the CAST Delivery Manager Tool

If this Analysis Unit is automatically defined, then any auto defined entries will be read only.

Resources tab

XML

You can find out more about XML file handling in XML Configuration Files Handling (J2EE).

XML File Extensions This section displays a list of the file extensions that are included in the current file filter for the XML files in your analysis. Only files that match these file extensions will be taken into account during the analysis.
Also use Project Root Path for XML Files If you select this option, the project root path (i.e. the location of the .project file for the Analysis Unit) will be used as a source for the XML server files. If you wish to add additional source files use the option described below.
XML Files Use this section to include or exclude specific source files for the Analysis Unit for analysis purposes.
  • Use the buttons to include or exclude specific Source Files or Source Folders (folders are searched recursively).

    By default CAST will automatically suggest the Deployment Folder set in the Current Version tab (Application editor) for your Package when adding new source code folders or files.
  • Use the button to remove an existing entry
  • Use the button to edit an existing entry
  • If this Analysis Unit is automatically defined use the button to reset the list to the entries defined by the CAST Delivery Manager Tool

If this Analysis Unit is automatically defined, then any auto defined entries will be read only.

Properties

You can find out more about Properties file handling in Properties Files Handling (J2EE).

Also use Project Root Path for for Property Files If you select this option, the project root path (i.e. the location of the .project file for the Analysis Unit) will be used as a source for the property files. If you wish to add additional source files use the option described below.
Property Files Use this section to include or exclude specific source files for the Analysis Unit for analysis purposes.
  • Use the buttons to include or exclude specific Source Files or Source Folders (folders are searched recursively).

    By default CAST will automatically suggest the Deployment Folder set in the Current Version tab (Application editor) for your Package when adding new source code folders or files.
  • Use the button to remove an existing entry
  • Use the button to edit an existing entry
  • If this Analysis Unit is automatically defined use the button to reset the list to the entries defined by the CAST Delivery Manager Tool

If this Analysis Unit is automatically defined, then any auto defined entries will be read only.

Web Application tab
Web Application Root Path Indicates the folder that is defined as the web application root folder for the Analysis Unit for analysis purposes. The Web Application Root Path is the path to the folder that contains web content files (*.HTML, *.JSP etc.). This field does not need to be populated (i.e. it is optional).

If this Analysis Unit has been automatically defined during the "Set as Current Version", then CAST will attempt to populate this field automatically. You can choose a different location (use Browse) if necessary, however, CAST recommends letting the CAST Management Studio handle this.

Note that:

  • when available the Project path (i.e. the location of the .project file as defined in the Current Version tab) of the Analysis Unit is used as a base folder to discover XML / Properties and for Web files (when there is no Web Application Root Path configured.
  • when a Project path (i.e. the location of the .project file as defined in the Current Version tab) its not available (for a User Defined Analysis Unit for example), the "Web Application Root Path" is still used as before (i.e. it indicates the folder that is defined as the root folder for the Analysis Unit for analysis purposes.
  • It is now possible to analyze web applications that do not contain a web.xml file (mandatory to support Servlet 3.0). In this case, the "Web Application Root Path" will be automatically discovered by the analyzer based on the location of the web files on disk (if the field is populated then this path will be used instead of an automatic discovery).
Web Application Descriptor Indicates the J2EE application's Web Application Descriptor. By default, CAST will use the Web Application Root Path set above and append \WEB-INF\web.xml. If this is not correct for your application, you can choose a new Application Descriptor.

Note that path resolution for the objects defined inside the selected web.xml file (for example tag libraries) is made using the default location of the web.xml file (\WEB-INF folder).

Web Server Files (JSP)

Web Server File Extensions This section displays a list of the file extensions that are included in the current file filter for your source code analysis. Only files that match these file extensions will be included in the analysis.
Also use Application Root Path for Web Server Files If you select this option, the Application Root Path defined above will be used as a source for the web server files. If you wish to add additional source files use the option described below.
Files Use this section to include or exclude specific source files for the Analysis Unit for analysis purposes.
  • Use the buttons to include or exclude specific Source Files (in the case of files, only files matching the choices made in JSP File Extensions above will be considered) or Source Folders (folders are searched recursively).

    By default CAST will automatically suggest the Deployment Folder set in the Current Version tab (Application editor) for your Package when adding new source code folders or files.
  • Use the button to remove an existing entry
  • Use the button to edit an existing entry
  • If this Analysis Unit is automatically defined use the button to reset the list to the entries defined by the CAST Delivery Manager Tool

If this Analysis Unit is automatically defined, then any auto defined entries will be read only.

Web Client Files

Client File Extensions This section displays a list of the file extensions that are included in the current file filter for your source code analysis. Only files that match these file extensions will be included in the analysis.
Also use Application Root Path for Web Client Files If you select this option, the Application Root Path defined above will be used as a source for the web client files. If you wish to add additional source files use the option described below.
Files Use this section to include or exclude specific source files for the Analysis Unit for analysis purposes.
  • Use the buttons to include or exclude specific Source Files (in the case of files, only files matching the choices made in Client File Extensions above will be considered) or Source Folders (folders are searched recursively).

    By default CAST will automatically suggest the Deployment Folder set in the Current Version tab (Application editor) for your Package when adding new source code folders or files.
  • Use the button to remove an existing entry
  • Use the button to edit an existing entry
  • If this Analysis Unit is automatically defined use the button to reset the list to the entries defined by the CAST Delivery Manager Tool

If this Analysis Unit is automatically defined, then any auto defined entries will be read only.


CAST Website