A resource group is a collection of resources (i.e., files and/or folders) defined by a set of one or more Ant file patterns. In this section:
About Resource Group Performance
The performance of DTP API when resource groups are used depends on the file patterns in the resource groups. Performance is most heavily influenced by how the database engine matches the pattern of the string specified. More complex file patterns are slower because they require more complex algorithms for matching strings.
From fastest to slowest, the three string matching algorithms:
String equality ("=" in SQL)
SQL
LIKE
operatorRegular expressions
We have observed that string equality and LIKE can be up to ten times faster than regular expressions.
Example File Patterns
Pattern | Description | Examples |
---|---|---|
String equality ( | Fastest This pattern contains no wildcards (**, *, or ?). | com.parasoft.foo/src/main/com/parasoft/foo/Alpha1.java Bar.java |
SQL | Fast This pattern ends with a | com.parasoft.foo/** com.parasoft.foo/ |
SQL regular expressions | Slowest This pattern uses any other use of wildcards. | com.parasoft.foo/*/.java com.parasoft.foo/**/Alpha1.java com.parasoft.foo/src/main/com/parasoft/foo/*.java com.parasoft.foo/src/*/com/parasoft/foo/Alpha1.java com.parasoft.foo/src/main/com/parasoft/foo/Alpha?.java */.java |
Adding Resource Groups
- Choose Report Center Settings from the settings menu.
- Click Projects in the Administration tab and click on a project.
- In the Resource Groups section, click Create Resource Group and enter a name.
- Specify include and exclude patterns for the resource group and click Confirm. You can specify multiple patterns per resource group.
You can define resource groups using the DTP REST API (see REST API).
Removing Resource Groups from a Project
Click the trash icon and confirm that you want to delete the resource group when prompted.
Deleting a resource group from a project deletes the association between the resource group and the project. It does not delete the resource group from your system. To delete a resource group from DTP, you must use the DTP REST API.
Editing Resource Groups
Click on the resource group name and make any changes in the Modify Resource Group dialog.