Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You should read the relevant documentation for each discoverer (provided in the link above) to understand how the source code will be handled.

Discovery when using AIP Console

AIP Console will automatically install discoverers based on the presence of specific source code files in the delivered source code, these are as follows:

Source code delivery using CAST AIP Console

Info

See Prerequisites - Application onboarding and Application onboarding - prerequisites for  for more detailed information about the steps you should take to deliver your source code.

...

Maven based source code

When adding a new version to analyze analyzing an Application that includes Maven based source code, you have several choices with regard to specifying where the required Maven repositories are located. The location of the repository is crucial to ensure that any associated JAR files can be automatically discovered and that POM dependencies can also be located. You can do as follows:

...

AIP Console will also use the above order to prioritise the various repositories. In other words, if you include a repository in the ZIP or in the designated source code folder this will be used instead of any local or remote repositories that have been defined.

See Configuring source code delivery for Maven for  for more information.

No .pom or .project file

When adding a new version to analyze analyzing an Application that includes JEE based source code and this source code does not contain .pom or .project file Console will behave as follows (see also Configuring source code delivery for JEE without .project file, AIP Console is currently pom file or .project file for more information):

Behaviour in Console ≥ 2.3

Console will automatically install the JEE File Discoverer whenever a .java file is encountered in your delivered source code. This extension will ensure that the required Analysis Units are created for your source code and that an analysis can proceed without issue.

Behaviour in Console ≤ 2.2

Console is unable to "discover" this code as JEE (AIP Console relies on the presence of the .pom / .project files). In this situation, the source code delivery will end in failure. In order to resolve this issue, you can manually configure AIP Console to install an extension called called the JEE File Discoverer whenever a .java file is encountered in your delivered source code. This extension will ensure that the required Analysis Units are created for your source code and that an analysis can proceed without issue.See Configuring source code delivery for JEE without .pom file or .project file for more information.

Using legacy CAST Delivery Manager Tool

Expand

How do I add a source code package to my delivery

See How do I add a source code package to my delivery.

What should you package?

When creating packages to discover and extract your JEE application you should create them as listed below:

Package

Package name/type

Mandatory?

Location/path

Notes

1

Source code

(tick)

Source code root folder

Use the "Files on your file system" / SVN / TFS options in the CAST Delivery Manager Tool:

Click to enlarge

Image Modified

2Internal/external JAR files(error)JAR file location

Use the "Automated extraction of required jar files" options in the CAST Delivery Manager Tool:

Image Modified

This package is generally created after the initial packaging action when the CAST Delivery Manager Tool detects missing items and generates corresponding alerts.

Exclusions

The CAST Delivery Manager Tool offers various exclusion options for JEE applications so that certain projects that may be detected by a discoverer are ignored:

Image Modified

Info

Note that:

  • Any source code that contains both Maven and Eclipse projects and whose type is set to "eclipse-plugin" will be ignored by the Maven Project Discoverer. An "eclipse-plugin" project means that an associated Eclipse project also exists and therefore should be handled by the Eclipse discoverer.
  • Any source code that contains both Maven and Eclipse projects and whose type is set to "maven-project" will be ignored by the Eclipse Project Discoverer. A "maven-project" project means that an associated Maven project also exists and therefore should be handled by the Maven discoverer.

In these situations, CAST highly recommends that you tick the appropriate exclusion rules in the CAST Delivery Manager Tool:

Image Modified

How do I package the Version?

See How do I package the Version for more information.

How do I validate and fine-tune my Version?

See How do I fine-tune my Version for more information.

How do I deliver the Version for analysis?

See How do I deliver the Version for analysis for more information.

Delivery acceptance

See Validate and Accept the Delivery for more information.