IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 124 forks source link

Implicitly activate debug flag when code coverage is activated #365

Open dennis-behm opened 1 year ago

dennis-behm commented 1 year ago

Customer feedback:

Since the --debug parameter is always required when the -cc parameter is specified, why not just activate the --debug parameter whenever the -cc parameter is specified and NOT have the user have to also specify it? It would be clearer (+cleaner) to me if the user just had to specify one parameter to activate Code Coverage.

The existing implementation does not implement the dependency between the two options and the debug flag could be turned on when -cc is passed:

https://github.com/IBM/dbb-zappbuild/blob/85e0df0ed7d693457473303ba5873524bb5f7797/build.groovy#L424-L434