Home | Forums

CloverMerge

This tool merges existing Clover databases to allow for combined reports to be generated.

Usage

 java com.cenqua.clover.CloverMerge [OPTIONS] PARAMS [DBFILES...]

Params

-i, --initstring <file> Clover initstring. Clover initstring. This is the path where the new merged database will be written.

Options

-s, --span <interval> Specifies the span to use when reading subsequent databases to be merged. This option can be specified more than once and applies to all databases specified after the option, or until another span in specified
-v, --verbose Enable verbose logging.
-d, --debug Enable debug logging.

API Usage

CloverMerge provides a simple API that accepts an array of strings representing the command line arguments and returns an integer result code. The following fragment illustrates use of the API:

 import com.cenqua.clover.CloverMerge;
    ...
    String [] cliArgs = { "-i", "new.db",  "proj1.db", "proj2.db", "-s", "10s", "proj3.db" };
    int result = CloverMerge.mainImpl(cliArgs);
    if (result != 0) {
           // problem during instrumentation
    }

Examples

 java com.cenqua.clover.CloverMerge -i new.db proj1.db proj2.db

Merges proj1.db and proj2.db into the new database new.db. A span of zero seconds is used.

 java com.cenqua.clover.CloverMerge -i new.db proj1.db -s 30s proj2.db \
            proj3.db

Merges proj1.db, proj2.db and proj3.db into the new database new.db. A span of zero seconds is used for proj1.db, and a span of 30 seconds is used for proj2.db and proj3.db.