Skip to content

Run report with different configurations #320

@davidnewcomb

Description

@davidnewcomb

I have written a groovy script that reduces all the changes down to only report changes across our 'special' annotations given our rules. This is all working.
A new requirement has come in to split the report into three: one for the public interfaces, one for the internal interfaces and the original one with everything. These 3 reports will go to different teams.

In the groovy script I have this at the top:

REPORT_PUBLIC = true
REPORT_SEMI = true

I am wondering what options are available to help? The simplest solution would be to make 3 copies of the groovy script one with true/true, one with true/false and one with false/true. Then have 3 separate maven plugin declarations each with a different html-path so they don't overwrite each other.

The docs mentions you can have extra executions so the output base name is based on the execution id, so can I pass parameters into the main script from the execution block to get my 3 different reports.

Or maybe trying to pass -Dblar=semi then read it with System.getenv() inside the script.

I'm just looking for a bit of advice on a cleaner way of doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions