This task will add profiles internally only. However, we could add later support for in in Ant/Maven. The existing clover-setup task:
would be changed to:
- we'd have the implicit profile named "default" into which all attributes from <clover-setup> as well as tags directly below <clover-setup> would be kept.
- we can have multiple profiles defined
- at runtime user can define sth like "-Dclover.profile=profile-name"
- we could also define an "empty" profile, which would use NullRecorder, thus would write no data to disk
Major benefit I see is that code is instrumented once and ready to be executed on multiple environments
Update: we already have a <profiles> tag, but it does not have so many settings as shown in a sample above.