Package hudson.plugins.dry.parser

Examples of hudson.plugins.dry.parser.DuplicationParserRegistry


    @Override
    public ParserResult perform(final MavenBuildProxy build, final MavenProject pom, final MojoInfo mojo,
            final PluginLogger logger) throws InterruptedException, IOException {
        FilesParser dryCollector = new FilesParser(PLUGIN_NAME, DEFAULT_DRY_XML_FILE,
                new DuplicationParserRegistry(getNormalThreshold(), getHighThreshold(), getDefaultEncoding()),
                getModuleName(pom));

        return getTargetPath(pom).act(dryCollector);
    }
View Full Code Here


    @Override
    public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException {
        logger.log("Collecting duplicate code analysis files...");

        FilesParser dryCollector = new FilesParser(PLUGIN_NAME, StringUtils.defaultIfEmpty(getPattern(), DEFAULT_DRY_PATTERN),
                    new DuplicationParserRegistry(getNormalThreshold(), getHighThreshold(), build.getWorkspace().getRemote(),
                            getDefaultEncoding()),
                    shouldDetectModules(), isMavenBuild(build));

        ParserResult project = build.getWorkspace().act(dryCollector);
        logger.logLines(project.getLogMessages());
View Full Code Here

TOP

Related Classes of hudson.plugins.dry.parser.DuplicationParserRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.