Source code data collection service
The source code data collection service regularly updates your source code data so that, when you run a dependency build, the source code data is in sync with your most recent source code changes.
Engineering Workflow Management ,
scanners collect source code data to help find source code dependencies for a build. To collect
source code data, you need the following:
- A source code scanner: Scans source files and collects dependency data, which provide information about dependencies both on and of those files.
- An associated language definition: You can associate some or all of your source files with language definitions. When you associate a source code scanner with a language definition, it tells the source code data collection service which scanner to use for which files. You must associate with a language definition any source files that you want to scan for source code data.
The source code data collection service does not automatically scan all the streams to collect source code data. It only scans the streams that you want to scan. By default, no stream is selected for scanning. To enable a stream for source code data scanning, perform the following steps:
- Expand the Enterprise Extensions node and select .
- In the Scan Configurations dialog that opens, select the stream for the scan.
- Click the Request Scan (
) icon in the toolbar. - In the Request Scan wizard that opens, select the scan options in the
following way:
- To specify the scope of the files to be scanned, select one of the following scan types:
- Scan entire stream to scan all the changed files in the stream.
- Scan components to scan the files that are associated with the selected components. You select the components by clicking Add.
- Scan files associated with language definitions to scan the files that are associated with the selected language definitions. You select the language definitions by clicking Add.
- To scan only the files that have changed, select Scan changed files only. On the contrary, to reset the source code data, clear Scan changed files only. You reset the source code data only when something is wrong with your source code data and you must completely re-create it for your stream.
- To specify the scope of the files to be scanned, select one of the following scan types:
- Run the scan.
The source code data collection service updates your source code
data in one of the following two ways:
- With a default data scanner included with Engineering Workflow Management
- With data scanners that you provide to keep your data in sync with the latest source code changes
You can change the frequency with which the source code data collection service runs, and you can easily view file data. For more information, refer to one of these topics: