[
https://issues.apache.org/jira/browse/OFBIZ-8119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15461082#comment-15461082 ]
Taher Alkhateeb commented on OFBIZ-8119:
----------------------------------------
Okay so this confirmed my suspicion that the OS is the culprit. Windows does not like Unicode for some reason, one of the many things this os does not like to comply with.
I suggest to add a comment to the code snippet something like:
{code}
/* enforce UTF-8 java compilation
* encoding on Windows platforms
*/
{code}
> Character encoding issue found in file build.gradle
> ---------------------------------------------------
>
> Key: OFBIZ-8119
> URL:
https://issues.apache.org/jira/browse/OFBIZ-8119> Project: OFBiz
> Issue Type: Bug
> Components: ALL APPLICATIONS
> Affects Versions: Trunk
> Environment: Window10
> java version "1.8.0_101"
> Reporter: fumiyoshi.to
> Priority: Minor
> Attachments: OFBIZ-8119_CharacterEncodingInBuildFile.patch, build-error.png
>
>
> I cann't build ofbiz when I run gradlew.
> I found utf-8 should be the default character encoding used by the comipiling work.
> eg.
> def defaultEncoding = 'UTF-8'
> tasks.withType(AbstractCompile)*.options*.encoding = defaultEncoding
> tasks.withType(GroovyCompile)*.groovyOptions*.encoding = defaultEncoding
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)