Run analysis only
The Run analysis only option enables you to start the process of source code analysis of all Analysis Units in the Application without having to generate a Snapshot. This can be useful if you are simply exploiting the results in CAST Enlighten (for example).
You can launch this option from various locations:
- Applications view > Right click the Application and select Execute > Analysis > Run analysis only
- Application editor > Use the Run analysis only option available in the Execute tab:
- You will then be prompted to select some analysis options:
- These options are explained below.
- Click Finish to proceed with the analysis - a progress dialog will dispay each step in the analysis process:
- In order to use the Run Analysis only option, you must have already set the Version as "current" in the Delivery tab (Application editor) and have checked and configured your Analysis Units.
- You can also run your analysis when you generate a Snapshot
- You can also use the Run Analysis on current Analysis Unit option (located in the Analysis Unit editor). It runs an analysis for the current Analysis Unit.
- CAST does not support two or more analyses running in parallel on the same machine.
- Some actions that are executed during a snapshot are not executed in this mode - for example the CAST System Views are not updated.
- See View analysis log for more information.
These options are visible to all regardless of the audience type selected in the Toolbar:
|Continue last Analysis||If you have selected this option an Analysis Unit will not be processed when all of the following criteria are met: |
|Send mail report (if configured)||If you have defined an SMTP server in Preferences - Mail and you have defined a set of recipients in the Application editor, Notes tab, then ticking this option will send an email to the list of recipients when the analysis is complete detailing the success (or otherwise) of the action.|
These options are only visible in Expert mode (see the Toolbar for more information about audience type). These options are only for expert users and should only be activated if you are requested to do so by CAST Support as part of a troubleshooting exercise.
|Activate debug options||If you want to configure any of the options in the Debug section, you must first tick this option.|
|Skip Analysis Result Save||Select this option if you simply want to run the analysis but do not want to save the results in the Analysis Service. This is useful for testing an analysis to see if it will run correctly without having to "pollute' the Analysis Service with potentially incorrect results. Use the analysis log to check for errors. |
Please do not activate this options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.
|Show SQL||When activated, will display the SQL sent to the data server in the analysis log. Please do not activate this options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.|
|Skip Metrics Compute||Please do not activate these options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.|
|Skip Natural Metrics Compute|
|Activate Metrics Trace|
|Activate AMT Memory Profiling||Please do not activate this options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.|
|Activate Inference Engine traces||Please do not activate this options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.|
|Activate Inference Engine technical log|
|Include debug messages||Select this option to activate verbose logging. Please do not activate this options unless you are requested to do so by CAST Support as part of a troubleshooting exercise.|
|Keep Generated Files from JSP||When you select this option, generated .JAVA files for the JSP Implementation Classes will be stored in the LISA folder.||Please note that for all these options, any generated files will be stored in the LISA folder as follows: |
See Preferences - CAST General for more information about the location of the LISA folder.
|Keep Generated Files from Java Annotations||When you select this option, XML Annotation files generated when an Environment Profile that includes detection of Java Annotations will be stored in the LISA folder. See Support for Java Annotations for more information.|
|Keep Generated Files from EJB||When you select this option, generated files for EJB will be stored in the LISA folder.|
|Keep Generated Files from Web Services||When you select this option, generated files for Web Services will be stored in the LISA folder.|
|Keep Generated CAST Scripts from XML and Annotations||This option enables you to choose a location to store the .castscript files that are generated following an analysis (via Environment Profile) that uses the XQuery/Zorba processing mechanism. |
This can be particularly useful if you are receiving errors during the analysis and you want to modify your XQuery file so that it outputs syntax that can be understood by the J2EE Analyzer.
If this option is deactivated, .castscript files will still be generated, but they will not be retained after the analysis.
|Activate CAST Scripts traces||When the checkbox is selected, all Log messages with DEBUG level called in .castscript files will be logged in the analysis log as an information message with the prefix "DEBUG: ", for example: |
log("this is a debug message", DEBUG) will generate Information "DEBUG: This is a DEBUG message" in the Log.
This information can help you refine and tune your .castscript function so that they work as expected.
|Generate fatal error in missing DEBUG information|
|Generate web layers for the MA process or not|