Scan Phase Order
FlexNet Code Insight 6.13.2
Your custom scan-phase adapter code uses one (or possibly more) of the following methods corresponding to scan phases. The scan calls these methods in the order shown:
|
•
|
void list<string> afterAnalysis2(list<string> inFiles) |
Note the following:
|
•
|
Auto-Writeup executes in the afterAnalysis method, while CodeAware and Analyzer execute in the afterAnalysis2 method. Most likely your custom adapter code will run in the afterAnalysis2 method. |
|
•
|
Use the afterScan and afterCommit methods judiciously in a custom adapter script as these can break the scan. |
Thus, your custom scan-phase adapter script is loaded and run based on the order in which the scan calls the method used in your custom adapter code. For example, if your script uses the afterAnalysis method in which to run your custom adapter code, the custom adapter will execute in the same afterAnalysis phase as Auto-Writeup but before the afterAnalysis2 phase in which CodeAware and Analyzer run.
Refer to the comments in autorun.CustomScanPhaseAdapter.groovy.example for detailed descriptions of each of the scan-phase methods. For more information about this sample script, see Sample Custom Scan-Phase Adapter Script.
Open topic with navigation