Patch for non-english source code and anchor to jump to specific line of code

XMLWordPrintable

    • Type: Patch
    • Resolution: Won't Fix
    • Priority: Minor
    • Component/s: cobertura-plugin
    • None

      Hi. Cobertura Plugin Developers.

      I enhanced some cobertura plugin feature 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.

      Attached patch is made for

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

              Created:
              Updated:
              Resolved: