SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1609

Log a meaningful message when a mandatory Ant Sonar property is missing

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ANT-TASK-1.4
    • Component/s: Ant Task
    • Labels:
      None
    • Number of attachments :
      0

      Description

      For instance, we get the following exception when the sonar.projectKey property is not defined :

      Caused by: java.lang.RuntimeException: wrapper
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130)
      	... 39 more
      Caused by: java.lang.NullPointerException
      	at org.sonar.batch.bootstrap.ProjectFilter.getArtifactId(ProjectFilter.java:68)
      	at org.sonar.batch.bootstrap.ProjectFilter.isExcluded(ProjectFilter.java:43)
      	at org.sonar.batch.ProjectTree.applyExclusions(ProjectTree.java:98)
      	at org.sonar.batch.ProjectTree.doStart(ProjectTree.java:92)
      	at org.sonar.batch.ProjectTree.start(ProjectTree.java:66)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
      	... 38 more
      
      

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          IT added.

          Show
          Fabrice Bellingard added a comment - IT added.
          Hide
          Freddy Mallet added a comment -

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !

            People

            • Assignee:
              Fabrice Bellingard
              Reporter:
              Freddy Mallet
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: