[
https://issues.apache.org/jira/browse/OFBIZ-7534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362352#comment-15362352
]
Taher Alkhateeb commented on OFBIZ-7534:
----------------------------------------
Thank you for the wonderful feedback Ashish!
So, a few feedback points:
- Ant is an imperative tool (do things in sequence) whereas Gradle is
declarative. Because of this difference, the Gradle output is very different
from ant when doing ./gradlew whatever --info. So we have multiple solutions
for this, for example, we can loop over all components and compile them one by
one separately in a different configuration classpath and then combine them
together at the end. It's a bit of a pain to get the code right but nothing
major. Another solution is to write custom logger.info or println statements to
show what is going on during the compilation process. Yet another option is to
break the compilation process into the subprojects. I will think some more of
the best solution and I'll put it in the list of future things to do to improve
the output of Gradle
- Ctrl-C does not work with Gradle because it is a powerful engine that can do
multiple tasks in parallel by spawning threads and processes. So a simple
Ctrl-C does not work because it only kills gradle, not the other sub-processes.
So I am going to work on a new task called terminateOfbiz which searches for
running instances of OFBiz and kill them.
- Hmmmm, very good point on the database. Should I let Gradle check if a
database exists, and if not then terminate with a clear message? It would be
easy to check if a derby database exists, but what about the others? should I
establish a JDBC connection?
Great feedback, very useful information, thank you!
> 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, 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)