Skip to content

Violations plugin fails on checkstyle Translation missing check #76

@glance-

Description

@glance-

Checkstyle can run a Translation check, and verify that certain translation property files exists.

When one is missing checkstyle outputs:

[ERROR] src/main/resources:[0] (misc) Translation: Properties file 'xx-messages.properties' is missing.

and the corresponding xml looks like:

<file name="/xx/trunk/src/main/resources">
<error line="0" severity="error" message="Properties file &apos;xx-messages.properties&apos; is missing." source="com.puppycrawl.tools.checkstyle.checks.TranslationCheck"/>
</file>

Then the violations plugin tries to read the directory "/xx/trunk/src/main/resources" as a file, and craps out:

WARNING: Publisher 'Report Violations' aborted due to exception:
java.io.IOException: remote file operation failed: /xx at hudson.remoting.Channel@34353fca:xx-03: java.io.FileNotFoundException: /xx/src/test/resources (Is a directory)
        at hudson.FilePath.act(FilePath.java:987)
        at hudson.FilePath.act(FilePath.java:969)
        at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
        at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
        at hudson.model.Run.execute(Run.java:1766)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:408)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions