Page tree
Skip to end of metadata
Go to start of metadata

Package Configuration tab - Which project should we take into account for the analysis?


Note that this is not visible for Database and Specific Repository Source Packages.

Note that part of this section is designed to be configured once the source package has been packaged, thus changes you make to this section once the source package has been packaged will require you to re-run the Package action.

This section defines which projects in your chosen source code the CAST Delivery Manager Tool should:

  • include in a Source Package for analysis - by default ALL projects that are identified will be included
  • exclude from the Source Package for analysis - by default no projects will be excluded unless you tell the CAST Delivery Manager Tool to do so.

Type of project to discover in the package

This sub-section enables you to specify the project types that the CAST Delivery Manager Tool should discover in the Source Package. This is particularly useful for situations where your Source Code target contains multiple technologies and projects and you are only interested in some of them.

By default all project types are selected - simply uncheck those that you do not wish to the CAST Delivery Manager Tool to discover and select. If the CAST Delivery Manager Tool discovers a project matching a type that has been unchecked, it will be skipped and will not feature in the Package action results displayed in the Package Content tab (i.e. the project will not even be marked as Ignored).

Please see Package Content tab - Projects found in package (in the description of the Ignored status) for more information about how excluded projects are handled in the CAST Management Studio.

Note that an Eclipse no nature project is an Eclipse project in which the <nature> tag is not defined in the .project file.

Projects to exclude

Exclusion rules

This section enables you to configure the "exclusion" rules that you require. When the Package action is run, and an exclusion rule is matched, then the project in question will be marked as Ignored in the results displayed in the Package Content tab.

If you are unsure, you should leave the default settings as they are and review the extraction in the Package Content tab first.

Please see Package Content tab - Projects found in package (in the description of the Ignored status) for more information about how excluded projects are handled in the CAST Management Studio.

Note that:

- the option Exclude all empty projects refers to projects that do not have associated source code.
- the option Exclude Test code will exclude all folders named "test" that are discovered during the Package action.

Filtering rules

You can use this section to define Filtering rules to exclude specific projects from the Source Package. The filtering rules can be based on:

  • The project technology type
  • the name of the project using a Regular Expression
  • the project's path using a Regular Expression

When the Package action is run, and an exclusion rule is matched, then the project in question will be marked as Ignored in the results displayed in the Package Content tab.

Please see Package Content tab - Projects found in package (in the description of the Ignored status) for more information about how excluded projects are handled in the CAST Management Studio.

Use this button to add a filtering rule - a dialog box will appear and you can define the rule:

Note that the Close button will save the changes you make.

Technology criterion Choose the technology type that your filtering rule will be applied to. Selecting None will ensure that technology type is ignored and filtering will only occur on the project name or file path.
Project name criterion / Project file path criterion Select either option to activate the appropriate settings. You can define the following combinations of criteria:
  • Project name criterion alone
  • Project file path criterion alone
  • Project name criterion AND Project file path criterion

See Use Regular Expressions for more information about the available options.

Note that if you activate more than one filtering criteria in the above dialog box, the AND operator is used to combine the criteria. In other words, all selected criteria must match to exclude the project.

CAST therefore recommends that you avoid activating for example the Project Name criterion to exclude Project A AND the Project File Path criterion to exclude Project B within one single Filtering rule - the result will be that the Filtering Rule is ignored and no projects will be excluded. If you need to exclude more than one project, you should instead create an individual Filtering Rule for each project.

Use this button to edit an existing filtering rule - a dialog box will appear in which you can modify the existing filtering rule.
Use this button to remove an existing filtering rule from the list.

Project exclusion

This section is designed to be used after the Package action has been run to exclude projects that have been extracted and are already "selected" in the Source Package. When the Package action is re-run, then the selected projects will be marked as Ignored in the results displayed in the Package Content tab.

Please see Package Content tab - Projects found in package (in the description of the Ignored status) for more information about how excluded projects are handled in the CAST Management Studio.

Note that this section is not configurable unless you have already used the Package option.

Use this button to exclude a project - a dialog box will appear and you can select the project you want to exclude:

Only projects that have already been extracted and are part of a Source Package will be listed here. In addition, projects will not appear in this dialog box if they have already been added to the exclusion list.

Use this button to remove an existing project from the list of excluded projects.

CAST Website

  • No labels