Adding a new pattern-based project

The New Project Wizard helps you manually create a pattern-based project and add it to an application.

About this task

The New Project Wizard helps you manually create a Pattern Based project and add it to an application. Pattern Based projects include a collection of any language independent files for pattern-based analysis and scanning.

For example, you may want to logically group .xml and .config files and search them for certain pattern-based expressions. AppScan® Source for Analysis scans the files and searches for the expressions (see Customizing with pattern-based rules for details).

The steps in this topic direct you to complete all pages in the New Project Wizard (or New Application Wizard, if you are creating the project in it). Settings made in the wizard can be modified after project creation in the Properties view for a selected project.

Procedure

  1. In the Explorer view, select the application that you want to add the project to (if you have not already added an application, see Configuring applications).
  2. Complete one of these actions to open the New Project Wizard:
    1. Select File > Add Project > New Project from the main workbench menu.
    2. Right-click the selected application and choose Add Project > New Project from the context menu.
  3. In the Select Project Type page of the wizard, select Pattern Based as the project type and then click Next to advance to the next wizard page.
  4. In the Project Sources wizard page:
    1. Identify the project sources. Project sources consist of the directories in which you find project files, and any additional individual files to include in the project.

      Name the project and specify the working directory. The Working Directory is the location in which the AppScan® Source project file (.ppf) will reside. It is also the base for all relative paths.

    2. Click Add Source Root to specify a source code root and the directories or files to include or exclude from the scan.
      After adding the source root, you can exclude certain directories or files from it. To do this, select the directory or file (or multiselect these items) in the source root, right-click the selection, and then choose Exclude from the menu. If you include or exclude files, the icon to the left of the file name changes.
  5. Click Finish.