本文整理汇总了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());
}
}
示例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());
}
}
示例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;
}
示例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;
}
示例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());
}
}
示例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);
}
示例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()));
}
示例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()));
}
示例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));
}
示例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());
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}