plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java
private void mergeDeprecatedInfo()
            throws MavenReportException {
        if ("sun_checks.xml".equals(configLocation) && !"sun".equals(format)) {
            configLocation = FORMAT_TO_CONFIG_LOCATION.get(format);

            throw new MavenReportException("'format' parameter is deprecated: please replace with <configLocation>"
                    + configLocation + "</configLocation>.");
        }

        if (StringUtils.isEmpty(propertiesLocation)) {
            if (propertiesFile != null) {
                propertiesLocation = propertiesFile.getPath();

                throw new MavenReportException("'propertiesFile' parameter is deprecated: please replace with "
                        + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>.");
            } else if (propertiesURL != null) {
                propertiesLocation = propertiesURL.toExternalForm();

                throw new MavenReportException("'propertiesURL' parameter is deprecated: please replace with "
                        + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>.");
            }
        }

        if ("LICENSE.txt".equals(headerLocation)) {
            File defaultHeaderFile = new File(project.getBasedir(), "LICENSE.txt");
            if (!defaultHeaderFile.equals(headerFile)) {
                headerLocation = headerFile.getPath();
            }
        }

        if (StringUtils.isEmpty(suppressionsLocation)) {
            suppressionsLocation = suppressionsFile;

            if (StringUtils.isNotEmpty(suppressionsFile)) {
                throw new MavenReportException("'suppressionsFile' parameter is deprecated: please replace with "
                        + "<suppressionsLocation>" + suppressionsLocation + "</suppressionsLocation>.");
            }
        }

        if (StringUtils.isEmpty(packageNamesLocation)) {
            packageNamesLocation = packageNamesFile;

            if (StringUtils.isNotEmpty(packageNamesFile)) {
                throw new MavenReportException("'packageNamesFile' parameter is deprecated: please replace with "
                        + "<packageNamesFile>" + suppressionsLocation + "</packageNamesFile>.");
            }
        }
    }
private void mergeDeprecatedInfo()
            throws MavenReportException {
        if ("sun_checks.xml".equals(configLocation) && !"sun".equals(format)) {
            configLocation = FORMAT_TO_CONFIG_LOCATION.get(format);

            throw new MavenReportException("'format' parameter is deprecated: please replace with <configLocation>"
                    + configLocation + "</configLocation>.");
        }

        if (StringUtils.isEmpty(propertiesLocation)) {
            if (propertiesFile != null) {
                propertiesLocation = propertiesFile.getPath();

                throw new MavenReportException("'propertiesFile' parameter is deprecated: please replace with "
                        + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>.");
            } else if (propertiesURL != null) {
                propertiesLocation = propertiesURL.toExternalForm();

                throw new MavenReportException("'propertiesURL' parameter is deprecated: please replace with "
                        + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>.");
            }
        }

        if ("LICENSE.txt".equals(headerLocation)) {
            File defaultHeaderFile = new File(project.getBasedir(), "LICENSE.txt");
            if (!defaultHeaderFile.equals(headerFile)) {
                headerLocation = headerFile.getPath();
            }
        }

        if (StringUtils.isEmpty(suppressionsLocation)) {
            suppressionsLocation = suppressionsFile;

            if (StringUtils.isNotEmpty(suppressionsFile)) {
                throw new MavenReportException("'suppressionsFile' parameter is deprecated: please replace with "
                        + "<suppressionsLocation>" + suppressionsLocation + "</suppressionsLocation>.");
            }
        }

        if (StringUtils.isEmpty(packageNamesLocation)) {
            packageNamesLocation = packageNamesFile;

            if (StringUtils.isNotEmpty(packageNamesFile)) {
                throw new MavenReportException("'packageNamesFile' parameter is deprecated: please replace with "
                        + "<packageNamesFile>" + suppressionsLocation + "</packageNamesFile>.");
            }
        }
    }
private void mergeDeprecatedInfo ( ) throws MavenReportException { if ( "sun_checks.xml" . equals ( configLocation ) && ! "sun" . equals ( format ) ) { configLocation = FORMAT_TO_CONFIG_LOCATION . get ( format ) ; throw new MavenReportException ( "'format' parameter is deprecated: please replace with <configLocation>" + configLocation + "</configLocation>." ) ; } if ( StringUtils . isEmpty ( propertiesLocation ) ) { if ( propertiesFile != null ) { propertiesLocation = propertiesFile . getPath ( ) ; throw new MavenReportException ( "'propertiesFile' parameter is deprecated: please replace with " + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>." ) ; } else if ( propertiesURL != null ) { propertiesLocation = propertiesURL . toExternalForm ( ) ; throw new MavenReportException ( "'propertiesURL' parameter is deprecated: please replace with " + "<propertiesLocation>" + propertiesLocation + "</propertiesLocation>." ) ; } } if ( "LICENSE.txt" . equals ( headerLocation ) ) { File defaultHeaderFile = new File ( project . getBasedir ( ) , "LICENSE.txt" ) ; if ( ! defaultHeaderFile . equals ( headerFile ) ) { headerLocation = headerFile . getPath ( ) ; } } if ( StringUtils . isEmpty ( suppressionsLocation ) ) { suppressionsLocation = suppressionsFile ; if ( StringUtils . isNotEmpty ( suppressionsFile ) ) { throw new MavenReportException ( "'suppressionsFile' parameter is deprecated: please replace with " + "<suppressionsLocation>" + suppressionsLocation + "</suppressionsLocation>." ) ; } } if ( StringUtils . isEmpty ( packageNamesLocation ) ) { packageNamesLocation = packageNamesFile ; if ( StringUtils . isNotEmpty ( packageNamesFile ) ) { throw new MavenReportException ( "'packageNamesFile' parameter is deprecated: please replace with " + "<packageNamesFile>" + suppressionsLocation + "</packageNamesFile>." ) ; } } }
Merge in the deprecated parameters to the new ones, unless the new
parameters have values.

@throws MavenReportException
@deprecated Remove when deprecated params are removed.
Merge in the deprecated parameters to the new ones unless the new parameters have values .