Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-24611] Use default encoding when reading the console log.
  • Loading branch information
uhafner committed Sep 14, 2014
1 parent d9ba0be commit 6f457dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/warnings/WarningsPublisher.java
Expand Up @@ -44,7 +44,6 @@
*/
// CHECKSTYLE:COUPLING-OFF
public class WarningsPublisher extends HealthAwareRecorder {
private static final String CONSOLE_LOG_ENCODING = "UTF-8";
private static final String PLUGIN_NAME = "WARNINGS";
private static final long serialVersionUID = -5936973521277401764L;

Expand Down Expand Up @@ -397,7 +396,7 @@ private List<ParserResult> parseConsoleLog(final AbstractBuild<?, ?> build,
logger.log("Parsing warnings in console log with parser " + parserName);

Collection<FileAnnotation> warnings = new ParserRegistry(ParserRegistry.getParsers(parserName),
CONSOLE_LOG_ENCODING, getIncludePattern(), getExcludePattern()).parse(build.getLogFile());
getDefaultEncoding(), getIncludePattern(), getExcludePattern()).parse(build.getLogFile());
if (!build.getWorkspace().isRemote()) {
guessModuleNames(build, warnings);
}
Expand Down
2 changes: 1 addition & 1 deletion warnings.iml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
Expand Down

0 comments on commit 6f457dc

Please sign in to comment.