[
https://issues.apache.org/jira/browse/OFBIZ-7534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15358426#comment-15358426 ]
Jacques Le Roux commented on OFBIZ-7534:
----------------------------------------
Hi Taher,
I just began to test. Here are some things I noticed so far. As you may know I'm working on WIndows and I got this during my 1st build
{code}
C:\projectASF-Mars\ofbiz>gradlew
:compileJava
C:\projectASF-Mars\ofbiz\framework\common\src\org\ofbiz\common\UrlServletHelper.java:249: error: unmappable character for encoding Cp1252
str = str.replace("´╝?", "-");
^
[3 other cases like that...]
{code}
I never saw (noticed?) that before and just learnt that a complete and definitive fix is to set JAVA_TOOL_OPTIONS env var to -Dfile.encoding=UTF8. I report this here for others and I guess a word in the README.MD and the wiki would fit.
Apart that build and test went perfectly well. After using "gradlew eclipse" I got a cleaned .project but an awful .classpath :D. I guess it's no longer an issue for us if it builds correctly (good riddance). I though noticed in Eclipse (after several refreshs there) that Eclipse complained absurdly about the classpath, an Eclipse restart fixed that!
About README.MD and the .bat prefix. You don't need to put the prefix to run the commands. So "gradlew.bat cleanAll loadDefault" should be "gradlew cleanAll loadDefault", etc.
I tried
bq. gradlew 'ofbiz --start
but got
{code}
C:\projectASF-Mars\ofbiz>gradlew 'ofbiz --start
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
FAILURE: Build failed with an exception.
* What went wrong:
Task ''ofbiz' not found in root project 'ofbiz'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.465 secs
C:\projectASF-Mars\ofbiz>
{code}
What could I miss?
> Migrate OFBiz from Apache Ant to Gradle build system
> ----------------------------------------------------
>
> Key: OFBIZ-7534
> URL:
https://issues.apache.org/jira/browse/OFBIZ-7534> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Upcoming Branch
> Reporter: Taher Alkhateeb
> Assignee: Taher Alkhateeb
> Labels: ant, build-tools, gradle
> Attachments: ANT_GRADLE_COMPARISON.txt, OFBIZ-7534.patch, OFBIZ-7534.patch, OFBIZ-7534.patch, build.gradle, gradle-wrapper.jar
>
>
> This is a major refactoring task referring to the [email thread|
http://ofbiz.markmail.org/message/vstt3wxuubmjgmqj?q=Important+Changes+to+Trunk+and+Use+of+Ant+%26+Gradle] in which the community voted for the switch after a proposal from the PMC
> The purpose of this JIRA is to achieve the following objectives
> - Fully implement a working compiling system in Gradle that passes all tests
> - Remove all ant and maven build scripts from the system
> - update the documentation of the system to reflect these changes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)