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

FindBugs not show correct line number

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Linux

      Description

      In the FindBugs report, the line number of code is always displayed -1.
      See attachment...

      The ant-tak (http://findbugs.sourceforge.net/manual/anttask.html) used to generate xml is:

      <property name="findbugs.home" value="/hudson/code-quality/findbugs-1.3.8" />
      <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="$

      {findbugs.home}/lib/findbugs-ant.jar"/>
      <property environment="env" />

      <findbugs home="${findbugs.home}

      " output="xml" quietErrors="true" outputFile="$

      {env.WORKSPACE}/SVN/Projeto/findbugs.xml" >
      <sourcePath path="${env.WORKSPACE}

      /SVN/Projeto/src" />
      <class location="$

      {env.WORKSPACE}

      /SVN/Projeto/classes"/>
      </findbugs>

        Activity

        Hide
        sberlotto sberlotto added a comment -

        Created an attachment (id=729)
        Image of bug

        Show
        sberlotto sberlotto added a comment - Created an attachment (id=729) Image of bug
        Hide
        mdonohue mdonohue added a comment -

        The <javac> task is more important. You need to have debugging enabled in the
        compile step to use findbugs, or any other bytecode based code analyzer.

        Show
        mdonohue mdonohue added a comment - The <javac> task is more important. You need to have debugging enabled in the compile step to use findbugs, or any other bytecode based code analyzer.
        Hide
        sberlotto sberlotto added a comment -

        Tank you so much !
        Works fine...

        Show
        sberlotto sberlotto added a comment - Tank you so much ! Works fine...

          People

          • Assignee:
            drulli Ulli Hafner
            Reporter:
            sberlotto sberlotto
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: