All .properties files are being compiled by localizer, rather than just Messages.properties

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: gradle-jpi-plugin
    • None
    • Environment:
      Plugin 0.10.0

      I have a plugin where I have Jelly string resources in a description.properties file, e.g. similar to https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties

      However, this cannot be compiled, as the generated Localizable class is created (in this case as description.java) with a package name that clashes with the source class name.

      :compileJava
      /home/.../foo-plugin/src/main/java/org/jenkinsci/plugins/foo/FooBarCause.java:8: error: class FooBarCause clashes with package of same name
      public class FooBarCause extends Cause {
             ^
      /home/.../foo-plugin/build/generated-src/localizer/org/jenkinsci/plugins/foo/FooBarCause/description.java:3: error: package org.jenkinsci.plugins.foo.FooBarCause clashes with class of 
      same name
      package org.jenkinsci.plugins.foo.FooBarCause;
      ^
      2 errors
      :compileJava FAILED
      
      
      

            Assignee:
            Daniel Spilker
            Reporter:
            Christopher Orr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: