Nikolai Varankine created NETBEANS-5095:
-------------------------------------------
Summary: Encoding of sources get lost on transition from Ant to
Gradle
Key: NETBEANS-5095
URL: https://issues.apache.org/jira/browse/NETBEANS-5095
Project: NetBeans
Issue Type: Improvement
Components: projects - Gradle
Affects Versions: 12.0
Reporter: Nikolai Varankine
Assignee: Laszlo Kishalmi
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|https://stackoverflow.com/questions/59800221/gradle-netbeans-howto-set-encoding-to-utf-8-in-editor-and-compiler/65136172#65136172]].
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists