Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5095

Encoding of sources get lost on transition from Ant to Gradle

    XMLWordPrintableJSON

Details

    Description

      I've completed transition of legacy NetBeans Java project (it builds library code with Ant) to Gradle type. Gradle project builds fine. The last unresolved problem is with IDE editor that displays source files in system's "windows1251" encoding rather than in "utf-8". Code checker reports errors for them. Project's Properties/Sources tab no longer has a field to set common encoding for sources. So editor mistakenly applies system's encoding while sources went from Git where they are stored in UTF-8.
      Partial work-around was found with [optional plugin|Gradle / Netbeans - Howto set encoding to UTF-8 in Editor and Compiler - Stack Overflow]. That's fine for small project but mine contains 1500+ source files so this solution doesn't look reasonable. Moreover, I'm not sure it's portable because I see no changes in project's file tree.

      Attachments

        Activity

          People

            lkishalmi Laszlo Kishalmi
            nvtby Nikolai Varankine
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: