當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。