Commit Graph
39 Commits
Author SHA1 Message Date
Taher A. Alkhateeb 0060762a66 Fixed: Rename the URL for gradle tab-completion to the correct official one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806285 13f79535-47bb-0310-9956-ffa450edef68
2017-08-26 10:51:12 +00:00
Taher A. Alkhateeb 3806cad490 Refactor OFBiz containers and remove StartupCommandToArgsAdapter
(OFBIZ-9441)

A major refactoring patch that applies the following changes:

- Fully refactor the EntityDataLoadContainer
- Fully refactor the TestRunContainer
- In both above mentioned containers the logic is broken up into smaller
  methods to enhance code readability. It also changes the signature of
  the method calls to rely on StartupCommand instead of String[] arrays
- Remove most old documentation and commented out code where applicable
- Delete the StratupCommandToArgsAdapter as it is no longer needed
- Create a new feature in which OFBiz by default fails if any data file
  fails to load. This can be overridden by passing a flag called
  "continue-on-failure" e.g. ./gradlew "ofbiz --load-data continue-on-failure"
- Add a new property to --test called "loglevel" (old code but working properly)
- Add many new properties to the --load-data command including repair-columns,
  try-inserts, maintain-txs, etc ... These properties are old, but somehow
  did not make it into the command line arguments. This code is now exposed
  through the command line to set a direction in the future of whether to
  keep or delete these extra commands
- Update the documentation output of ./gradlew "ofbiz --help" to incorporate
  the new mentioned properties
- Refactor README.md to incorporate the changes to the gradle commands for both
  "-load-data" and "-test" properties. Also remove the gradle GUI
  documentation as it is now deprecated.
- Also refactor README.md in other locations to cleanup and make it more
  consistent. This icludes moving long notes into new sections and reducing
  the verbosity of the security header. Furthermore, created a new header
  called Miscellaneous documentation to house the newly created sections
- lots of small changes to remove EOL white space

Thanks: Jacques Le Roux for reviewing and testing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1805947 13f79535-47bb-0310-9956-ffa450edef68
2017-08-23 18:56:15 +00:00
Nicolas Malin 32c6473a1c Fixed: Correct the documentation to run an OFBiz suite test. The example gave the java class but to run a suite test we need to give the suite-name of test-suite element that we want to run each test-case.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1803390 13f79535-47bb-0310-9956-ffa450edef68
2017-07-29 20:05:12 +00:00
Jacques Le Roux d952873c74 Implemented: Rename "loadAll" the "loadDefault" Gradle task
(OFBIZ-9411)

As discussed on user ML (https://s.apache.org/xjFj) rename "loadAll" 
the "loadDefault" Gradle task.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798844 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 15:35:59 +00:00
Jacques Le Roux 5a98e8fb42 No functional change.
Adds a mention about using component-load.xml file in the plugins directory
Small reformatting to better split the note
Make beware (deletes plugins dir) bold

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794130 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 09:21:55 +00:00
Jacques Le Roux 702c361d62 Completed: Error message when svn updating due to pullAllPluginsSource
(OFBIZ-9262)

No functional change, mode the note about the trunk split as a news almost on
top of file (temporary and ideas welcome)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787464 13f79535-47bb-0310-9956-ffa450edef68
2017-03-17 18:10:29 +00:00
Jacques Le Roux 1d41658728 No functional change, fixes a typo in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787426 13f79535-47bb-0310-9956-ffa450edef68
2017-03-17 15:47:54 +00:00
Jacques Le Roux dce00c7947 Completed: Error message when svn updating due to pullAllPluginsSource
(OFBIZ-9262)

No functional change, improves the documentation of the removing of the 
specialpurpose and hot-deploy directories. 
And the necessity to use the pullPluginSource or  pullAllPluginsSource Gradle 
tasks, feel free to amend...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787424 13f79535-47bb-0310-9956-ffa450edef68
2017-03-17 15:46:43 +00:00
Jacques Le Roux 18d650576f Completed: Error message when svn updating due to pullAllPluginsSource
(OFBIZ-9262)

No functional change, document the removing of the specialpurpose and hot-deploy
directories. And the necessity to use the pullPluginSource or 
pullAllPluginsSource Gradle tasks, feel free to amend...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787307 13f79535-47bb-0310-9956-ffa450edef68
2017-03-17 09:12:35 +00:00
Jacques Le Roux 6a6b74756e No functional change, just a fews word about pullPluginSource and the
pullAllPluginsSource Gradle tasks and where the .svn directory are placed.

Completes previous commit r1786566, by placing the note below the cmd line expl 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786567 13f79535-47bb-0310-9956-ffa450edef68
2017-03-12 12:33:49 +00:00
Jacques Le Roux 9bb630a8cc No functional change, just a fews word about pullPluginSource and the
pullAllPluginsSource Gradle tasks and where the .svn directory are placed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786566 13f79535-47bb-0310-9956-ffa450edef68
2017-03-12 12:31:10 +00:00
Taher A. Alkhateeb d135a7224c Implemented: New task pullAllPluginsSource and improvements to plugins API
(OFBIZ-9182)

Implemented a new gradle task called pullAllPluginsSource which downloads
all the official apache OFBiz plugins from source control and places them
in the /plugins directory inclusive of their .svn directory. This task makes
it possible to automate buildbot for OFBiz with the need to use something like
svn:externals and to have two separate build scripts for framework-alone and
framework+plugins. The task delete all pre-existing plugins as it needs to
download the plugins as a full sub-repository

In addition to above mentioned new task, this commit also applies:
- Update README.md with new task definition and cleanup
- Improve the plugins API in gradle to make use of shared code for calling
  gradle as a sub-process from multiple locations
- minor formatting issues in build.gradle


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1786562 13f79535-47bb-0310-9956-ffa450edef68
2017-03-12 08:03:43 +00:00
Jacques Le Roux 1e8e01e2bb No functional change, French and English grammar collided in my mind
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782811 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:45:41 +00:00
Jacques Le Roux ead5fac7ce No functional change, fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782810 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:45:01 +00:00
Jacques Le Roux 43342377af No functional change, small change in main README.md for OWASP dependencyCheck
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782799 13f79535-47bb-0310-9956-ffa450edef68
2017-02-13 16:14:42 +00:00
Taher A. Alkhateeb 9383236995 Implemented: new gradle task pullPluginSource using a subversion gradle plugin
(OFBIZ-9182)

Added a new gradle task called pullPluginSource that fetches a plugin from
the (yet to be created) plugins repository. Also updated the README.md file
to reflect the changes that happened recently on the plugin management tasks

This is the last commit required before restructuring the subversion repository
as per the discussion thread mentioned in the above JIRA


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782605 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 13:36:40 +00:00
Pranay Pandey 2755f11ebd Improved: Readability of README.md by adding some line breaks.
There was a need of huge horizontal scroll in the Security block.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1779311 13f79535-47bb-0310-9956-ffa450edef68
2017-01-18 11:10:36 +00:00
Jacques Le Roux f109ab4973 No functional change, just documentation in README.MD
Adds a note for % progress indicator 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778415 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 10:26:24 +00:00
Jacques Le Roux e7c14d5bfc No functional change, just documentation in README.MD
Adds a note for JDBC drivers
Move the Security section below the Quick start section

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778413 13f79535-47bb-0310-9956-ffa450edef68
2017-01-12 10:15:57 +00:00
Taher A. Alkhateeb 72b9013f24 Implemented: renamed the directory specialpurpose to plugins
(OFBIZ-7972)

In another step towards completing the plugin system for OFBiz, we renamed
the /specialpurpose directory to /plugins and changed all occurences of the
word "specialpurpose" to "plugins" in all files found in the system

Reference discussion: http://markmail.org/message/hpyuxkmftiyn44w2


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778271 13f79535-47bb-0310-9956-ffa450edef68
2017-01-11 10:48:47 +00:00
Taher A. Alkhateeb e4314c5323 Fixed: provided an updated script for gradle bash-completion in README.md
The old reference for gradle bash completion is broken. Hence using a newer
fork that works correctly and in multiple environments


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1776453 13f79535-47bb-0310-9956-ffa450edef68
2016-12-29 17:01:57 +00:00
Taher A. Alkhateeb dba8fdecdb Improved: provided clearer documentation for the eclipse task in Gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1775597 13f79535-47bb-0310-9956-ffa450edef68
2016-12-22 09:30:55 +00:00
Michael Brohl 9608823026 Improved: corrected typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1774737 13f79535-47bb-0310-9956-ffa450edef68
2016-12-17 11:12:13 +00:00
Jacopo Cappellato c0286adac2 Improved: added license header to the main README file of the project.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762061 13f79535-47bb-0310-9956-ffa450edef68
2016-09-23 12:58:04 +00:00
Jacopo Cappellato e3a8470d8c Improved: major refactoring of the content of the LICENSE and NOTICE files as
a consequence of the fact that, after the switch to Gradle, most of the 
product's dependencies are not bundled in the package.

While doing that, I have also cleaned up and unified the format of the files, 
removed unnecessary content (like the full text of other licenses), moved the 
"Crypto notice" from NOTICE to README.md, merged the LICENSE/NOTICE files in 
specialpurpose with the ones in the distribution's main folder.
In general, I have followed the directions provided by these documents:
http://www.apache.org/dev/licensing-howto.html
http://www.apache.org/dev/crypto.html



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762037 13f79535-47bb-0310-9956-ffa450edef68
2016-09-23 09:20:56 +00:00
Jacques Le Roux 671139b69c Improves: Create a Gradle task to use Xlint arguments when building
(OFBIZ-8251)

Attached is a simple and clean fix. Essentially, it's better to just use Xlint which is equal to Xlint:all to show everything and you can dig through it for whatever you want.
What this fix requires is only passing a project property called Xlint. So .. the syntax is ./gradlew -PXlint build

This adds also the documentation for both this issue and the OWASP-DC task

Thanks: Taher

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761131 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 06:51:23 +00:00
Taher A. Alkhateeb fd84a9cbe6 Implemented: Create a (PoC) plugin system for OFBiz based on Gradle
(OFBIZ-7972)

This commit creates a basic plugin API for OFBiz that interoperates
with maven repositories. We are committing this code as "experimental"
to allow contributors to start experimenting with this system easily
as per the discussion on the above JIRA and in ML in the below thread.

This new plugin API is documented in README.md and provides the following
new gradle tasks for managing plugins:

- createPlugin: creates a new plugin based on templates, place it in
  the plugins directory and activate it (add to component-load.xml)
- installPlugin: Activate a plugin and run its Install task. Plugin
  must exist already in /specialpurpose
- uninstallPlugin: Deactivate a plugin and run its uninstall task
- removePlugin: Uninstall a plugin and then delete it from the filesystem
- pushPlugin: publish a plugin to local maven repository
- pullPlugin: download a plugin with its dependencies (plugins) from
  a repository and install them

Discussion: http://markmail.org/message/h7fiicba2rtyl6cb

Thanks: Jacopo Capellato, Michael Brohl, Gil Portenseigne for feedback
and testing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760917 13f79535-47bb-0310-9956-ffa450edef68
2016-09-15 11:20:05 +00:00
Jacques Le Roux c895d10c0a Completes: Put notsoserial in Attic
OFBIZ-8241

We decided to no longer support notsoserial because we not only have no longer issues OOTB, but also because the classes protected by default are now also covered by the external libs themselves, even those we don't use OOTB.

Those who use RMI, JNDI, JMX or Spring and maybe other Java classes OFBiz does not use OOTB would still be at risk if they don't use a tool like notsoserial. 
So we will amend the https://cwiki.apache.org/confluence/display/OFBIZ/The+infamous+Java+serialization+vulnerability Wiki page to let them know about that.
The main OFBiz README.MD file is also modified to be sure this is known by our users. BTW adding a security section is certainly a good idea.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1760484 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 06:43:34 +00:00
Divesh Dutta 7e6550c1ef Removed unwanted changes from my last commit i.e 1757947
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757949 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 05:49:28 +00:00
Divesh Dutta 0dd39b0191 [OFBIZ-7558] Fixed:Any update made for Qty to Produce in a newly created Production Run is not saved. Thanks Swapnil Shah for reporting the issue and Anuj Jain for providing the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757947 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 05:47:34 +00:00
Taher A. Alkhateeb d71a00ea4f apply changes to simplify and shorten gradle task calls - OFBIZ-7968
Apply the following changes to the gradle build script:

- Make only the "componentName" argument mandatory for the createComponent
  task and all other arguments are optional.
- Make only the "tenantId" argument mandatory for the createTenant task
  and all other arguments are optional
- update the documentation accordingly in README.md

This simplifies the calls to these tasks and relives us from the need to
create any interactive tasks in the build system.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757359 13f79535-47bb-0310-9956-ffa450edef68
2016-08-23 11:28:30 +00:00
Jacques Le Roux 5779ef0160 "Updates documentation with respect to implementation of gradle as a replacement of ant" - https://issues.apache.org/jira/browse/OFBIZ-7677
We forgot to put the necessary svn properties (especially EOL:native) and got an issue with last commit, this fixes the whole

Also remove the useless in repo .README.md.html which I believe is created by the GFM Eclipse plugin I installed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757045 13f79535-47bb-0310-9956-ffa450edef68
2016-08-21 11:02:36 +00:00
Jacques Le Roux 7d2c5a77b2 "Updates documentation with respect to implementation of gradle as a replacement of ant" - https://issues.apache.org/jira/browse/OFBIZ-7677
Adds a convenient pandoc.bat as a reminder for now, to be enhanced later. Maybe it will become a Gradle task rather or maybe even several Gradle tasks if we use CONTRIBUTING-template.md and other possible *.md files

Updates the README.md file:
* Improve the "Load default OFBiz data" explanation
* adds the ® sign in 2 places (OFBiz and Tomcat)
* Misc other minor changes

Replaces README.MD.html renamed README.md.html after regeneration

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757043 13f79535-47bb-0310-9956-ffa450edef68
2016-08-21 10:21:47 +00:00
Taher A. Alkhateeb 474299f8cc remove the tasks ofbizSecure and ofbizBackgroundSecure from gradle - OFBIZ-7951
Removes the ofbizSecure and ofbizBackgroundSecure and makes all OFBiz server tasks
secure by default. Also, update the documentation of README.md and the StartupCommandUtil
to remove these entries from the documentation.

This has reference to a thread discussion here -> http://markmail.org/message/zbbun7zrzdrtxavv


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756305 13f79535-47bb-0310-9956-ffa450edef68
2016-08-14 07:24:42 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Taher A. Alkhateeb 200bcc67e4 Add a tip in the README.md file on how to apply tab completion - OFBIZ-7534
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752035 13f79535-47bb-0310-9956-ffa450edef68
2016-07-09 18:27:36 +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 f919337487 update the documentation in the README.md file for new task - OFBIZ-7534
I forgot to add the documentation to the previous commit in which
we added a new task to gradle called terminateOfbiz


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751789 13f79535-47bb-0310-9956-ffa450edef68
2016-07-07 12:33:53 +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