Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3313

Improve log message for missing compiled classes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: Plugin
    • Labels:
      None

      Description

      The expected behavior when a project contains .java files and the property "sonar.java.binaries property" is not set is to fail (see SONARJAVA-2169), with the message:

      org.sonar.java.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property
      

      The message is not clear enough, the user have to guess that it is related to Java. This is even more relevant when the project main language is not Java, and it contains only a few "forgotten" .java files, asking for compiled class in this case is confusing.

      We should change the message to clearly state the origin of the problem, and proposed solutions:

      Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: