Page tree

Versions Compared

Key

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

...

This panel provides settings for managing exclusion templates. These templates can be used as follows:

When delivering code

When delivering a new source code version in the Manage Exclusions step of the wizard, see: Standard onboarding - add a new Version - deliver code - generate snapshot or Advanced onboarding - add a new version and deliver source code:

Image Modified

When editing an existing version

When editing an existing version in the Version Management screen in Application - Versions:

Image Modified

Creating a template allows you to define the folders or files types that should always be excluded (any excluded items will be ignored during the source code analysis). You can then re-use a template each time you deliver source code. One template will be provided out of the box called "default" as shown below (this cannot be edited nor deleted). This template will exclude the following items:

  • target/ (folder
  • temp/ (folder)
  • tests/ (folder)
  • *test (file)
  • tmp/ (folder)
  • .svn/ (folder)
  • .git/ (folder)

Image Modified

Use this option to create a new exclusion template. The following dialog box will be displayed allowing you to create the exclusions you require:

Image Modified

The pattern matching system uses glob patterns (see https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob for examples of how this system works). Enter an expression to match the folders you want to exclude and then press ENTER to add the expression to the list of excluded items.

For example:

  • *.txt will exclude all files with the extension .txt
  • tests/ will exclude any folders named tests and everything inside them - e.g. root_folder/tests, root_folder/another_folder/tests
  • *.Tests/ will exclude any folders whose name includes .Tests (for example C:\Support\Delivery\Sample.Tests\sample\)
  • patterns starting with / will exclude starting only from the root folder. In other words, /tests/ will exclude everything in the specific folder root_folder/tests but not root_folder/another_folder/tests

Image Modified

Click to edit the selected template. You cannot edit the predefined template called default.

Image Modified

Click to delete the selected template. You cannot delete the predefined template called default. Note also that deleting a template that you have already used in a source code version will mean that when delivering a new version none of the exclusions provided in the deleted template will be actioned.