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
Currently the configuration file (SeoConfig.xml) is incorporated in the product component. However this is more related to how the e-commerce operates than to the functions in the backend catalog and warehousing applications.
The file should therefore be moved to its appropriate place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752863 13f79535-47bb-0310-9956-ffa450edef68
With the move to dependency mgt through gradle/gradlew the download definitions for the drivers of the most commonly used rdbms solutions were removed.
Adding these to the build.gradle file will deliver a great pleasure adoption wise through a small effort.
jleroux: This is an agreed temporary workaround while we are trying to implement interactive tasks at OFBIZ-7808
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752843 13f79535-47bb-0310-9956-ffa450edef68
Currently many properties files in various components are named after the component, i.e. the bi component has bi.properties.
In order to have consistency from component to component the search.properties file in the special purpose/lucene component must be renamed to lucene.properties and all references in components should reflect the change.
jleroux: I had to handle the src path change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752842 13f79535-47bb-0310-9956-ffa450edef68
This is the first of two steps in the above mentioned JIRA. This
first step changes the java source directory for every component
from /src to /src/main/java. The next step will be adding unit
tests to every component in /src/test/java
Thank you to Deepak Dixit for tips on how to use the SVN commands
to make the appropriate file moving.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752838 13f79535-47bb-0310-9956-ffa450edef68
Completes r1752771, I did not change the not concerned scripts. Though I worked carefully, I could have missed something so please check (notably typos, I did not test all). Note: we had no "apply-ofbiz-patches" Ant target (in applyOfbizPatchesAndHotDeploy.sh)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752806 13f79535-47bb-0310-9956-ffa450edef68
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
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
Remove all bsh libraries and bsh remaining fonctionnalities.
Bsh interpreter is replaced by GroovyShell evaluation.
To avoid groovyShell undefined var exception, the evaluated expression is analysed, detecting variables used and setting its to null if undefined in context.
Today only alphabetic variable with '_' are detected (i.e. my_variable==null).
Add in example a test replacement of " syntax to simple quote.
Remove all found bsh references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752231 13f79535-47bb-0310-9956-ffa450edef68