Commit Graph
9 Commits
Author SHA1 Message Date
Mathieu Lirzin 04f2a2ca3b Improved: Replace ‘iterateOverActiveComponents’ with ‘activeComponents’ in build script (OFBIZ-10695)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854587 13f79535-47bb-0310-9956-ffa450edef68
2019-03-01 13:56:14 +00:00
Jacques Le Roux 5f37e7ea51 Fixed: Don't guess the system file separator
(OFBIZ-10428)

In case of Windows we need to escape "\" so adding "\\" } before fileSep 
is required

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833957 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 21:47:46 +00:00
Jacques Le Roux 7b79f3d2b4 Improved: Don't guess the system file separator
(OFBIZ-10428)

The JVM already knows the file separator of the current system when running 
Gradle so use that value instead of guessing from the operating system property.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833949 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:36:59 +00:00
Jacques Le Roux 7d0ac17753 Fixes (as in French "fixer" verb) the Gradle project name to ofbiz as it was before and we agreed at OFBIZ-7893 (an instant I even thought about using OFBiz but then the little KISS voice in my head said NO!)
Thanks to https://leanpub.com/gradle-goodness-notebook/read#leanpub-auto-changing-the-project-name

This closes "Rename generated *ofbiz-gradle.jar* to *ofbiz.jar*" at https://issues.apache.org/jira/browse/OFBIZ-7893

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754623 13f79535-47bb-0310-9956-ffa450edef68
2016-07-30 16:23:58 +00:00
Jacques Le Roux c15e759b73 A patch from Michael Brohl for "iterateOverActiveComponents exists twice" https://issues.apache.org/jira/browse/OFBIZ-7749 reported by Pierre Smits
Currently the iterateOverActiveComponents function or tasks exists both in build.gradle and settings.gradle. Do we need both? 

This patch introduces a new Gradle file which holds the shared method iterateOverActiveComponents which is used by build.gradle and settings.gradle. Thanks Pierre for the trigger to learn some Gradle stuff


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752890 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 05:22:24 +00:00
Taher A. Alkhateeb 477750e81b Fix multiple flaws in the build scripts (mostly OS) related - OFBIZ-7779
Thank you Jacques Le Roux for reporting this! This commit achieves the
following improvements:

- refactor the code for the settings to make it more organized
  by moving blocks of code into more appropriate locations in
  the build script
- Remove the exclusion on a library that is no longer necessary
  thanks to work done by Gil Portenseigne to remove these libraries
- refactor settings.gradle to define projects in an OS independent way.
  I realized that the projects were improperly defined in windows
  which makes their count 49 as opposed to 52 projects on other OSes
- Introduce regex expressions to properly format the .classpath file
  for eclipse. The regex expressions makes identifying the unwanted
  items possible for all OSes

Luckily Jacques Le Roux uses Windows OS and as he was testing the framework
with eclipse he reported imporper path settings generated by the gradle
eclipse task.

Upon investigation, we realized multiple problems exist in the build scripts
relating to operating-system specific path delimiters. All tests pass
on both windows and Linux and eclipse is not complaining on either OS
from the .classpath generated file. Hence committing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752658 13f79535-47bb-0310-9956-ffa450edef68
2016-07-14 13:12:24 +00:00
Taher A. Alkhateeb f62f7b11e9 fix multiple issues in eclipse plugin for gradle - OFBIZ-7779
Thanks to Jacques Le Roux for informing us. This patch fixes
the following in gradle for eclipse:

- First, make all references to files relative to ${rootDir}.
  This has the added value of being able to work when called
  from any directory and resolves some issues with eclipse
- Remove the config resources from eclipse. These config resources
  represent any files in $componentName/config which are necessary
  for OFBiz to work but not needed as a source directory in eclipse.

Still work in progress and more to come


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752302 13f79535-47bb-0310-9956-ffa450edef68
2016-07-12 15:21:06 +00:00
Taher A. Alkhateeb 4d2b415a91 Another major patch for OFBIZ-7534 replacing Ant with Gradle
This is the first patch that takes OFBiz to the point of no return
in terms of switching from Ant to Gradle build system. Specifically
this patch applies the following items:

- Delete all old Ant and Maven build scripts
- Delete 169 Jar libraries and replace them with remote ones in the
  gradle build script
- update the gradle build scripts for the dependencies and other minor
  changes needed for the script work correctly

All tests pass with the command ./gradlew cleanAll loadDefault testIntegration

Again, thank you for everyone who contributed valueble time and effort in this
process.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752033 13f79535-47bb-0310-9956-ffa450edef68
2016-07-09 18:10:19 +00:00
Taher A. Alkhateeb c2cb34d1e9 First commit in replacing Apache ant with Gradle - OFBIZ-7534
This commit represents a pivotal change in the history of the
project in which the build system is being replaced from Apache
Ant to Gradle of which the discussion mail thread link is below.

Thanks to everyone who helped with testing and feedback

This commit delivers the following:

- add the gradle wrapper directory in gradle/* which holds
  all items necessary for gradle to run
- add the build.gradle master script
- add the settings.gradle script which declares all the subprojects
- add documentation for how to use everything in a new file called
  README.md (written in markdown)

The new script is capable of the functionality that used to exist
in Ant with some additional features including automation of eclipse
files generation and many other functions.

To complete this new feature, we need to apply the following _after_
this commit:
- change the buildbot to utilize gradle instead of ant
- delete all ant & maven scripts
- replace all local jars with remote ones from jcenter

Reference thread: http://ofbiz.markmail.org/message/vstt3wxuubmjgmqj?q=Important+Changes+to+Trunk+and+Use+of+Ant+%26+Gradle

Reference JIRA: https://issues.apache.org/jira/browse/OFBIZ-7534



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751309 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 15:22:47 +00:00