Versions Compared

Key

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

...

A custom filter file may be provided as a system property sl.customFilterFile inside the sealightsJvmParamssection in the JSON fie file for the Maven or Gradle plugins.

...

Here is a relevant JSON file fragment example:

Code Block
"sealightsJvmParams": {
    "sl.customFilterFile": "config/CustomFilter.json"
}

The resulting Maven pom file fragment example:

...

  • This parameter is only relevant to an executionType that executes the scanner like full, or scanonly. It does not apply to testonly.

  • You can declare this system property into a buildScannerParams section rather than the generic sealightsJvmParams. This way it will not be passed to java commands other than the build scanner during the Maven execution.

Custom Filter Sample file

...