[ 
https://issues.apache.org/jira/browse/OFBIZ-8119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15460649#comment-15460649
 ] 

Jacques Le Roux edited comment on OFBIZ-8119 at 9/3/16 8:16 AM:
----------------------------------------------------------------

I don't mind setting the Environment Variable JAVA_TOOL_OPTIONS to 
-Dfile.encoding=UTF-8. But I actually did that only for Gradle to work.

I just stumbled upon 
https://discuss.gradle.org/t/test-failed-while-building-gradle-from-sources-because-of-java-tool-options-defined/4441
 and I believe if we had UTF-8 set in Gradle it would fix OFBIZ-7137 (which 
seems to exist only for me, but would maybe exist for fumiyoshi.to too if he 
sets JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF-8)

[~tofumiyo...@gmail.com], while Taher is working on this, could you please 
check you can reproduce OFBIZ-7137 by setting JAVA_TOOL_OPTIONS to 
-Dfile.encoding=UTF-8? Thanks! :)


was (Author: jacques.le.roux):
I don't mind setting the Environment Variable JAVA_TOOL_OPTIONS to 
-Dfile.encoding=UTF-8. But I actually did that only for Gradle to work.

I just stumbled upon 
https://discuss.gradle.org/t/test-failed-while-building-gradle-from-sources-because-of-java-tool-options-defined/4441
 and I believe if we had UTF-8 set in Gradle it would fix OFBIZ-7137 (which 
seems to exist only for me, but would maybe exist for fumiyoshi.to too if he 
sets JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF-8)

While Taher is working on this, could you please check you can reproduce 
OFBIZ-7137 by setting JAVA_TOOL_OPTIONS to -Dfile.encoding=UTF-8? Thanks! :)

> 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)

Reply via email to