Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35373

Javac in Gradle uses multi-line messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • warnings-plugin
    • None
    • Jenkins 2.7
      Gradle 2.13
      Ubuntu Server 14.04

      Currently, Jenkins' warnings plugin (Java Parser) has issues with parsing Gradle's javac output.

      The issue can be connected to GRADLE-1230

      The latest version of gradle can generate

      :xxx-state:xxx-yyy:compileTestJava/home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
              Class<? extends StateStore> storeClass =
                              ^
        missing type arguments for generic class StateStore<T>
        where T is a type-variable:
          T extends State declared in interface StateStore
      1 warning
      

      As you can see the name of the phase and name of the file are glued with each other compileTestJava/home/

      Please also notice, that compiler warnings are written to stderr, although gradle's output is written to stdout, so stderr may interleave stdout incorrectly.

      Here is gradle's stderr

      /home/szhem/Projects/<PATH_TO_TESTS>/Test.java:106: warning: [rawtypes] found raw type: StateStore
              Class<? extends StateStore> storeClass =
                              ^
        missing type arguments for generic class StateStore<T>
        where T is a type-variable:
          T extends State declared in interface StateStore
      1 warning
      

      and here is corresponding stdout

      :xxx-state:xxx-yyy:compileTestJava
      

            drulli Ulli Hafner
            szhem Sergey Zhemzhitsky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: