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

Use relative path of non-Java files as 'packageName'

    Details

    • Similar Issues:

      Description

      Replace the package tab with a paths tab for non Java files.

        Attachments

        1. cpd.xml
          9 kB
        2. dry.html
          17 kB
        3. dry.png
          dry.png
          42 kB
        4. dry-warnings.xml
          56 kB

          Issue Links

            Activity

            drulli Ulli Hafner created issue -
            drulli Ulli Hafner made changes -
            Field Original Value New Value
            Component/s analysis-core [ 15709 ]
            Component/s tasks-plugin [ 15498 ]
            Component/s warnings [ 15513 ]
            drulli Ulli Hafner made changes -
            Link This issue depends on JENKINS-6683 [ JENKINS-6683 ]
            drulli Ulli Hafner made changes -
            Description The path to the source files that contain duplicated source code is not shown. If there are several source files with the same name, but in different locations, there is no way of knowing in which files the duplication occurs.

            The problem becomes apparent when the source files are in the C language and there is no package names associated with the files.

            If there are no package associated with a source file, the path should be presented instead.
            Replace the package tab with a paths tab for non Java files.
            Hide
            drulli Ulli Hafner added a comment -

            The relative path name is now stored as a property of an annotation, the leading / still needs to be removed.

            <pathName>/tasks/src/main/java/hudson/plugins/tasks/TasksTabDetail.java</pathName>

            Show
            drulli Ulli Hafner added a comment - The relative path name is now stored as a property of an annotation, the leading / still needs to be removed. <pathName>/tasks/src/main/java/hudson/plugins/tasks/TasksTabDetail.java</pathName>
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : drulli
            Path:
            trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java
            trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/AnnotationContainer.java
            trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/FileAnnotation.java
            trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/JavaPackage.java
            trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/Messages.properties
            trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/Messages_de.properties
            trunk/hudson/plugins/analysis-core/src/main/resources/tabview/main.jelly
            trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages.jelly
            trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages_de.properties
            trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages_ja.properties
            trunk/hudson/plugins/dry/src/test/java/hudson/plugins/dry/parser/DuplicateCodeTest.java
            trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
            trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/WarningsPublisher.java
            http://jenkins-ci.org/commit/32079
            Log:
            [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/AbstractAnnotation.java trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/AnnotationContainer.java trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/FileAnnotation.java trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/model/JavaPackage.java trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/Messages.properties trunk/hudson/plugins/analysis-core/src/main/resources/hudson/plugins/analysis/Messages_de.properties trunk/hudson/plugins/analysis-core/src/main/resources/tabview/main.jelly trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages.jelly trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages_de.properties trunk/hudson/plugins/analysis-core/src/main/resources/tabview/packages_ja.properties trunk/hudson/plugins/dry/src/test/java/hudson/plugins/dry/parser/DuplicateCodeTest.java trunk/hudson/plugins/tasks/src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/WarningsPublisher.java http://jenkins-ci.org/commit/32079 Log: [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            drulli Ulli Hafner added a comment -

            Integrated in Hudson Plug-ins (Compile) #13
            [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.
            [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.
            [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.
            [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.

            Show
            drulli Ulli Hafner added a comment - Integrated in Hudson Plug-ins (Compile) #13 [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab. [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab. [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab. [FIXED JENKINS-6698] Use path name of file as package name for non-Java sources in the package tab.
            abayer Andrew Bayer made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 136793 ] JNJira + In-Review [ 204223 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: