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

Using the Environment Profile Manager


Environment Profiles are a set of predefined (by CAST) or custom configuration settings that can be included in an analysis:

Predefined Environment Profiles

CAST provides a number of predefined Environment Profiles that can be included in an analysis. These pre-defined Environment Profiles are designed to address specific recurrent issues during analysis (for example, configuration settings for the Spring Framework, or common-logging for Java). More details about each profile are given in Environment Profile details.

Predefined Environment Profiles are applied to analyses automatically by CAST, depending on the technology options you choose, whether at default level or at Application or Analysis Unit level. For example:

  • for the C++ technology, the option IDE used to develop the Application/Analysis Unit will determine which Environment Profile is applied.
  • for the J2EE technology, the options JDK version used to compile this application and Frameworks will determine which Environment Profiles are applied.

It is not possible to modify these pre-defined profiles.

Custom Environment Profiles

A custom Environment Profile can be particularly useful where you have several Analysis Units (for example a large project that has been split) that rely on the same specific settings. By creating a custom Environment Profile that defines these settings, you avoid having to configure each Analysis Unit with the same settings - instead you simply include the custom Environment Profile at default technology level or at Application or Analysis Unit level. When the analysis is run, the settings in the Environment Profile are taken into account.

Custom Environment Profiles are only applied to an analysis if you chose to do so. You need to add the custom Environment Profile at Application or Analysis Unit level using the Custom Environment Profile option in the Analysis tab.

Which technologies use custom and predefined Environment Profiles?
What can be included in an Environment Profile?

As already mentioned, Environment Profiles are a means to group together a set of configuration settings for your job(s). The following list gives you some idea as to what can be included in an Environment Profile for a specific language/analyzer:

  • .NET > Definition of JavaScript Libraries
  • C++ > Definition of Include Paths and Macros
  • J2EE Analyzer > Definition of Class Paths, Method Parametrization, Java Annotations, XML File Configuration and JavaScript Libraries
    • EJB > Definition of Application Server, Persistence Deployment Descriptions and Transformation File
    • Web Services (WSDL) > Definition of Implementation Language, Mapping Information File and Transformation File
  • Mainframe > Definition of Working Folders
  • Visual Basic (VB) > Definition of Method Parametrization
Managing Environment Profiles

If you want to view predefined Environment Profiles or create new custom Environment Profiles, you need to use the Environment Profile Manager. This can be accessed from the Analysis tab in the Application or Analysis Unit using the Custom Environment Profile option - click the Add button and choose Manage Environment Profiles:

This will launch the Environment Profile Manager:

The left hand section displays a collapsible list of any Predefined or existing Custom Environment Profiles listed by language type then by profile name. If this the first time you have used the Environment Profile dialog box, then this section will only contain the CAST predefine profiles - they will be grayed out.

If you have already created profiles then you can expand the list and select the profile you want to modify or delete.

The right hand section provides the means to define new profiles and get access to existing profiles for modification and deletion purposes:

  • > Use this button to create a new Environment Profile. Make sure you choose the correct type of profile.
  • > This button provides more information. Click the button to display a floating window with additional information
  • > Use this button to browse the list of existing profiles for the selected language type.
  • > Use this button to clone an existing Environment Profile - you can modify the clone for your own use.
  • > Use this button to remove a custom Environment Profile
  • > Use this button to clone an existing Environment Profile - you can modify the clone for your own use.
  • > Use this button to remove a custom Environment Profile
  • Apply > Will apply any changes you make
  • Restore > Use this button to restore a profile to the default settings
  • Close > Use this button to close the dialog box.

As each profile is specific to each technology, please click below for more information:

See Also

Environment Profile details | Importing/Exporting Environment Profiles


CAST Website

  • No labels