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

some cobertura plugin features to support non-english source code and add line anchors in source code view (Patch Attached)

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Fixed
    • Icon: Minor Minor
    • cobertura-plugin
    • None

      Hi. Cobertura Plugin Developers.

      I enhanced some cobertura plugin features to support non-english source code.

      cobertura plugin 1.0 reads source codes using system default encoding in SourcePainter and write html decorated sources in system default encoding.

      If the source is not written in system default encoding, decorated sources are broken.

      Even when the source is shown in the browser, plugin read the decorated source code using UTF-8 encoding(see TextFile implementation in hudson).

      So I made some changes for user to be able to choose which encoding will be used in the hudson job configuration page, and SourcePainter read sources using this configuration. And It saves source UTF-8...

      Another enhancement is .. to add anchor in the source code view like <a name='1'/> so that jump to specific line by just clicking URL like "hudson_plugin/HelloWorld_java#11"

      I hope you accept this patch so that I can enhance the other feature either.

      You can download the patch here.

      http://junoyoon.tistory.com/attachment/cfile10.uf@1343C6054C90D5B52539EE.patch

            stephenconnolly Stephen Connolly
            junoyoon junoyoon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: