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
The correct description is load default data, not load all
data since the default in OFBiz serveri is to load seed,
seed-initial and demo only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752135 13f79535-47bb-0310-9956-ffa450edef68
Gradle does not allow generating JavaDocs if they have javadocs that are not properly
formatted. This commit will override this behavior by adding the following code snippet:
javadoc.failOnError = false
However, the long term solution is to actually fix all the JavaDoc errors in our current
OFBiz API
Note that gradle will continue to show the errors in standard output, but the build will
not fail
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752131 13f79535-47bb-0310-9956-ffa450edef68
We were lucky to discover some problems in the build script on the
windows operating system (Thank you Jacques Le Roux). After investigating
the matter we realized that among other problems the process name (executable)
is massive and leads to problems on windows. However, this is not the only
problem with the current build script setup. Sometimes exeucting tasks in a combo
fail due to a dependency-tree problem with the current implementation.
The solution was to create a Jar file that holds the classpath and hides it from
the process name. Hence, instead of a massive classpath shown in the command process
it is all declared inside a single jar file. This lead to multiple improvements in the
build script including:
- The process name is now much shorter and cleaner both on Windows and Unix-like systems
- The task teminateOfbiz now has a much cleaner implementation on Unix systems
- Executing any tasks in combos would still maintain the correct ordering of executing graph
The most tricky part to figure out in the implementation is how to build the Jar Class-Path
for each operating system. Unfortunately, on Windows it was extremely tricky as windows
accepts weird naming conventions on the Class-Path manifest input. For example, \C:\whatever
will work but C:\whatever will not work
So the main difference in this implementation now is that the ofbiz server commands will
retrieve the classpath from a jar, and not directly construct it in the command line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752125 13f79535-47bb-0310-9956-ffa450edef68
remove unnecessary jar entries in .gitignore. Also for some reason .gitignore was
not working properly due to some encoding or EOL character so I had to recreate
with the correct entries
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752065 13f79535-47bb-0310-9956-ffa450edef68
Not necessary to delete the file because the gradle "clean" task
already deletes the entire build directory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752060 13f79535-47bb-0310-9956-ffa450edef68
Issue reported by Jacques Le Roux (Thank you). Strangely only
Windows detected this issue. It is very simple to resolve, just
run the master script evaluation phase before running the subprojects
evaluation phase of gradle. This fixes the issue and provides a more
solid program for both Unix-OSs and Windows
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752059 13f79535-47bb-0310-9956-ffa450edef68
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
* removed the code that implemented the deprecated "call-bsh" operation in Minilang
* removed the BeanShellContainer (it has been disabled a long time ago)
* removed the BeanShell service engine, no more used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751947 13f79535-47bb-0310-9956-ffa450edef68
This feature has been contributed a long time ago as an experimental feature but never really matured into a production ready artifact: since it was contributed, no users asked about how to use it, or tested it, or reported bugs or enhancement requests.
More importantly, the feature has always been disabled in the OFBiz framework (i.e. the widget code and the entity engine code were not using it).
This removal should not impact our user base; however, after the removal, an entry to the Attic will be created to keep track of it and to make it easier, to interested users, to get this code, improve it (e.g. by making it dependent on a live external jar, for example MapDB instead of JDBM) and possibly contribute it back to the project.
The most compelling reason for its removal is that the feature was based on a snapshot, unreleased version of JDBM, which is now a mostly dead project: for licensing reasons we are no more allowed to bundle jars in our releases. Additionally, having code that relies an old jar from a no more active project represents a maintenance issue for the community.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751817 13f79535-47bb-0310-9956-ffa450edef68