Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Violations plugin fails on checkstyle Translation missing check #76

Open
glance- opened this issue Oct 20, 2015 · 0 comments
Open

Violations plugin fails on checkstyle Translation missing check #76

glance- opened this issue Oct 20, 2015 · 0 comments

Comments

@glance-
Copy link

glance- commented Oct 20, 2015

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant