This is a bug in which createTenant crashes due to groovy gstring
evaluation where a string is needed. The fix is simple by removing
gstring and passing variables directly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758662 13f79535-47bb-0310-9956-ffa450edef68
For some reason we completely forgot to add the themes as gradle sub projects.
The current implementation of gradle treats every component as a sub project
and all themes are ofbiz components, and as such should be sub projects as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758102 13f79535-47bb-0310-9956-ffa450edef68
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
This is a security issue which was pending for too long. It only updates Tomcat to 8.0.36 because I got issues with 8.5.3 when just changing to 8.0.36 in build.gradle files worked.
I also changed the version number in LICENSE, even if some libs are only downloaded by Gradle as dependencies of the main present in build.gradle, this is a WIP.
I have investigated if we really need to have all the external jar libs in LICENSE even if we don't deliver them in 1st place, but are still used when building, see http://markmail.org/message/emnu6s5wu2yuyith
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757318 13f79535-47bb-0310-9956-ffa450edef68
This commit has no effect on the used libraries in OFBiz. It simply removes
libraries that are pulled automatically as dependencies from other libraries
and hence not needed to be declared explicitly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757074 13f79535-47bb-0310-9956-ffa450edef68
To resolve this issue we can convert the current use for import/export vcard by an other api ez-vcard (https://github.com/mangstadt/ez-vcard) under bsd licence and present on jcenter.
The refactoring raise some problem on existant code, we will try with Gil to improve the import/export to grow data conversion to functional framework.
Some improve on import :
* check if more than one email is present before check the prefered else take the one
* check if more than one phone is present before check the prefered else take the one
* check if more than one address is present before check the prefered else take the one
* When you load a party by vcard, initialize a reference by fn attribute on PartyIndentification to escape the second loading
Will need continue improve the import like correct Organization loading, update process, add service to detect already party present
I also improve the screen result to display all parties loaded by the import and all already present.
The solution isn't perfect but it's work and compile, first purpose to delete jpim.jar is done :)
Related issue OFBIZ-7961
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756949 13f79535-47bb-0310-9956-ffa450edef68
I am attaching a patch that creates a custom libs folder in OFBiz top level directory where people can keep their jars and update the master script build.gradle accordingly.
jleroux: I svn:ignore the libs folder since only specific users libs will get there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756515 13f79535-47bb-0310-9956-ffa450edef68
The property used to be hidden from certain functions in the build
script making the system crash. Changing the definition from def to
ext.os fixes the issue and renders all functions operational. Thank
you Jacques Le Roux for reporting this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756407 13f79535-47bb-0310-9956-ffa450edef68
Many places exist in build.gradle in which checking for the operating system
happens, where each time a variable is declared. This commit unifies all OS
checks in one variable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756310 13f79535-47bb-0310-9956-ffa450edef68
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
When running loadTenant task without passing the tenantId
property then gradle would run the task to full and only
complain of missing property at the end.
This fix ensures that the task fails before running anything
if the tenantId is missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754773 13f79535-47bb-0310-9956-ffa450edef68
- Convert many compile dependencies to runtime dependencies in Gradle
- Move dependencies from framework to specialpurpose
(only one in example component)
- put a comment above dependencies which we think should be removed
completely subject to further testing and confirmation from the
community.
After investigating the libs we realized that most of the dependencies
in OFBiz are runtime rather than compile time. Furthermore, we also
suspect that many of the runtime dependencies are not needed, however
further testing is needed before we can confirm and remove them from
build.gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754640 13f79535-47bb-0310-9956-ffa450edef68
This is taking too long, and we need to find a way to have it loaded only when needed. At least it works and is the right solution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754524 13f79535-47bb-0310-9956-ffa450edef68
This is so far a much better solution than what I proposed. We will have though to see how to add entries in the equivalent of the suppress.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754508 13f79535-47bb-0310-9956-ffa450edef68
They are EOLs changes on this commit. The only real change is this addition:
task start(group: ofbizServer) {
dependsOn 'ofbiz --start'
description 'Start an OFBiz instance'
}
Please don't change the EOLs, here is why:
when we created the build.gradle file (and actually all *.gradle files) there was not yet this .gradle line in the OFBiz Subversion config file
So when I updated my svn working copy I got the *nix EOLs with the .gradle file committed by Taher. So each time I changed a line a lot of confusing EOLs changes appeared.
Now that we have the .gradle line in the OFBiz Subversion config file, you will see the last EOLs changes on this commit when reviewing.
This is normal and will happen only once. Then my svn working copy will have the Windows EOLs, and we should not longer see any EOLs changes in next commits.
This is of course true for this file, but will happen also on other already existing .gradle files when I will change a line there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754071 13f79535-47bb-0310-9956-ffa450edef68
This commit fully moves BIRT to remote libs. After a lot of
investigation we realized there were two offending dependencies
that prevented BIRT from working (Derby, and a PDF dependency).
Once these two dependencies were excluded BIRT successfully
compiled and all tests ran. I did some further manual testing
of BIRT and all HTML and PDF reports seem to render correctly.
This resolves what I consider the most difficult component
to migrate to remote libs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753886 13f79535-47bb-0310-9956-ffa450edef68
Most likely due to an editor problem in the environment of
Jacques Le Roux which converts the EOL characters from unix
\n to windows \r\n. I had to apply dos2unix to fix it again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753885 13f79535-47bb-0310-9956-ffa450edef68
Thanks to Jacques Le Roux for detecting the bug. The fix is extremely
simple with 4 characters, just add the .bat extension to the command
in the windows based version as shown in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753823 13f79535-47bb-0310-9956-ffa450edef68
The cleanAnt (previously cleanAntBuild) gradle task is designed to get
rid of old artifacts generated by the previous system (Apache Ant). This
commit applies changes and improvements as follows:
- Shorten the description of the task to make the output
nicer in ./gradlew tasks
- rename the task from cleanAntBuild to cleanAnt because this
task not only gets rid of old build directories but also ofbiz.jar
(or any artifacts generated by ant which might be added)
- Move the task location above the cleanAll task. The location of
declaration is important because it means that it will automatically
run whenever the task cleanAll executes (dependency matched by regex)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753820 13f79535-47bb-0310-9956-ffa450edef68
Taher proposed off line a better writing for the cleanAntBuild task, using Groovy rather than copying from the old Ant task. He tested it, so here it is.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753382 13f79535-47bb-0310-9956-ffa450edef68
Fixes the cleanAntBuild target, Taher make me notice that I put 2 whitespaces after /. I then realised that I used build.xml instead of build in the paths. This works (tested, I was abused in my 1st test only looking for "dir /s *ofbiz*.jar" (Windows)
Anyway I'll soon replace it by a proposition from Taher
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753381 13f79535-47bb-0310-9956-ffa450edef68
This adapts the "old" Ant "clean*" targets in order to allow to remove old build dirs. It's not a problem if you have done an Ant clean just before removing Ant whith a "svn up" but I guess most of us did not.
I will then also remove the related svn:ignore (build dirs)... WIP...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753360 13f79535-47bb-0310-9956-ffa450edef68