当前位置: 首页>>代码示例>>Java>>正文


Java ParserResult类代码示例

本文整理汇总了Java中hudson.plugins.analysis.core.ParserResult的典型用法代码示例。如果您正苦于以下问题:Java ParserResult类的具体用法?Java ParserResult怎么用?Java ParserResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ParserResult类属于hudson.plugins.analysis.core包,在下文中一共展示了ParserResult类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: BanditResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
private BanditResult(final Run<?, ?> build, final BuildHistory history,
                 final ParserResult result, final String defaultEncoding, final boolean canSerialize) {
    super(build, history, result, defaultEncoding);

    if (canSerialize) {
        serializeAnnotations(result.getAnnotations());
    }
}
 
开发者ID:mewz,项目名称:bandit-plugin-,代码行数:9,代码来源:BanditResult.java

示例2: DependencyCheckResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
DependencyCheckResult(final Run<?, ?> build, final BuildHistory history, final ParserResult result,
                      final String defaultEncoding, final boolean canSerialize) {
    super(build, history, result, defaultEncoding);

    if (canSerialize) {
        serializeAnnotations(result.getAnnotations());
    }
}
 
开发者ID:jenkinsci,项目名称:dependency-check-plugin,代码行数:9,代码来源:DependencyCheckResult.java

示例3: perform

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
public BuildResult perform(final Run<?, ?> build, final FilePath workspace, final PluginLogger logger) throws InterruptedException, IOException {
    logger.log("Collecting Dependency-Check analysis files...");

    FilesParser parser = new FilesParser(DependencyCheckPlugin.PLUGIN_NAME, StringUtils.defaultIfEmpty(getPattern(), DEFAULT_PATTERN),
            new ReportParser(getDefaultEncoding()), shouldDetectModules(), isMavenBuild(build));

    ParserResult project = workspace.act(parser);
    logger.logLines(project.getLogMessages());

    DependencyCheckResult result = new DependencyCheckResult(build, getDefaultEncoding(), project, usePreviousBuildAsReference(), useOnlyStableBuildsAsReference());
    build.addAction(new DependencyCheckResultAction(build, this, result));

    return result;
}
 
开发者ID:jenkinsci,项目名称:dependency-check-plugin,代码行数:16,代码来源:DependencyCheckPublisher.java

示例4: perform

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException {
    logger.log("Collecting JSLint analysis files...");

    FilesParser parser = new FilesParser(PLUGIN_NAME, StringUtils.defaultIfEmpty(getPattern(), DEFAULT_PATTERN),
            new CheckStyleParser(getDefaultEncoding()),
            shouldDetectModules(), isMavenBuild(build));
    ParserResult project = build.getWorkspace().act(parser);
    logger.logLines(project.getLogMessages());

    CheckStyleResult result = new CheckStyleResult(build, getDefaultEncoding(), project, getUseStableBuildAsReference());
    build.getActions().add(new CheckStyleResultAction(build, this, result));

    return result;
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:16,代码来源:CheckStylePublisher.java

示例5: CheckStyleResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
CheckStyleResult(final AbstractBuild<?, ?> build, final BuildHistory history,
        final ParserResult result, final String defaultEncoding, final boolean canSerialize) {
    super(build, history, result, defaultEncoding);

    if (canSerialize) {
        serializeAnnotations(result.getAnnotations());
    }
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:9,代码来源:CheckStyleResult.java

示例6: perform

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
public ParserResult perform(final MavenBuildProxy build, final MavenProject pom,
        final MojoInfo mojo, final PluginLogger logger) throws InterruptedException, IOException {
    FilesParser checkstyleCollector = new FilesParser(PLUGIN_NAME,
            new CheckStyleParser(getDefaultEncoding()), getModuleName(pom));

    return getFileName(mojo, pom).act(checkstyleCollector);
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:9,代码来源:CheckStyleReporter.java

示例7: createAction

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
protected Action createAction(final HealthDescriptor healthDescriptor, final String defaultEncoding, final ParserResult aggregatedResult) {
    return new DependencyCheckResultAction(build, healthDescriptor,
            new DependencyCheckResult(build, defaultEncoding, aggregatedResult, usePreviousBuildAsReference(), useOnlyStableBuildsAsReference()));
}
 
开发者ID:jenkinsci,项目名称:dependency-check-plugin,代码行数:6,代码来源:DependencyCheckAnnotationsAggregator.java

示例8: createAction

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
protected Action createAction(final HealthDescriptor healthDescriptor, final String defaultEncoding, final ParserResult aggregatedResult) {
    return new CheckStyleResultAction(build, healthDescriptor,
            new CheckStyleResult(build, defaultEncoding, aggregatedResult, useOnlyStableBuildsAsReference()));
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:6,代码来源:CheckStyleAnnotationsAggregator.java

示例9: createAggregatedAction

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
/** {@inheritDoc} */
public MavenAggregatedReport createAggregatedAction(final MavenModuleSetBuild build, final Map<MavenModule, List<MavenBuild>> moduleBuilds) {
    return new CheckStyleMavenResultAction(build, getHealthDescriptor(), getDefaultEncoding(),
            new CheckStyleResult(build, getDefaultEncoding(), new ParserResult(), false));
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:6,代码来源:CheckStyleMavenResultAction.java

示例10: createResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
protected CheckStyleResult createResult(final MavenBuild build, final ParserResult project) {
    return new CheckStyleReporterResult(build, getDefaultEncoding(), project, getUseStableBuildAsReference());
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:5,代码来源:CheckStyleReporter.java

示例11: createBuildResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
@Override
protected CheckStyleResult createBuildResult(final AbstractBuild<?, ?> build, final ParserResult project, final BuildHistory history) {
    return new CheckStyleResult(build, history, project, "UTF8", false);
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:5,代码来源:CheckstyleResultTest.java

示例12: CheckStyleMavenResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
/**
 * Creates a new instance of {@link CheckStyleMavenResult}.
 *
 * @param build
 *            the current build as owner of this action
 * @param defaultEncoding
 *            the default encoding to be used when reading and parsing files
 * @param result
 *            the parsed result with all annotations
 */
@SuppressWarnings("deprecation")
public CheckStyleMavenResult(final AbstractBuild<?, ?> build, final String defaultEncoding,
        final ParserResult result) {
    super(build, defaultEncoding, result, false, MavenCheckStyleResultAction.class);
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:16,代码来源:CheckStyleMavenResult.java

示例13: CheckStyleReporterResult

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
/**
 * Creates a new instance of {@link CheckStyleReporterResult}.
 *
 * @param build
 *            the current build as owner of this action
 * @param defaultEncoding
 *            the default encoding to be used when reading and parsing files
 * @param result
 *            the parsed result with all annotations
 * @param useStableBuildAsReference
 *            determines whether only stable builds should be used as
 *            reference builds or not
 */
public CheckStyleReporterResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
        final boolean useStableBuildAsReference) {
    super(build, defaultEncoding, result, useStableBuildAsReference, CheckStyleMavenResultAction.class);
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:18,代码来源:CheckStyleReporterResult.java

示例14: MavenCheckStyleResultAction

import hudson.plugins.analysis.core.ParserResult; //导入依赖的package包/类
/**
 * Creates a new instance of <code>MavenCheckStyleResultAction</code>.
 *
 * @param owner
 *            the associated build of this action
 * @param healthDescriptor
 *            health descriptor to use
 * @param defaultEncoding
 *            the default encoding to be used when reading and parsing files
 */
public MavenCheckStyleResultAction(final AbstractBuild<?, ?> owner, final HealthDescriptor healthDescriptor,
        final String defaultEncoding) {
    super(owner, healthDescriptor, new CheckStyleResult(owner, defaultEncoding, new ParserResult(), false));
    this.defaultEncoding = defaultEncoding;
}
 
开发者ID:davidparsson,项目名称:jslint-checkstyle-plugin,代码行数:16,代码来源:MavenCheckStyleResultAction.java


注:本文中的hudson.plugins.analysis.core.ParserResult类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。