private void verifySCMTypeParams()

in src/main/java/org/apache/maven/plugins/changelog/ChangeLogReport.java [942:960]


    private void verifySCMTypeParams() throws MavenReportException {
        if ("range".equals(type)) {
            if (range == -1) {
                range = DEFAULT_RANGE;
            }
        } else if ("date".equals(type)) {
            if (dates == null) {
                throw new MavenReportException("The dates parameter is required when type=\"date\". The value "
                        + "should be the absolute date for the start of the log.");
            }
        } else if ("tag".equals(type)) {
            if (tags == null) {
                throw new MavenReportException("The tags parameter is required when type=\"tag\".");
            }
        } else {
            throw new MavenReportException("The type parameter has an invalid value: " + type
                    + ".  The value should be \"range\", \"date\", or \"tag\".");
        }
    }