Commit Graph
8640 Commits
Author SHA1 Message Date
Mridul Pathak db98226bf3 [OFBIZ-7529] Part 3 of "Delete stale java files from applications and framework". Deleted following files/directories, their references and example implementations -
framework/webapp/src/main/java/org/apache/ofbiz/webapp/view/JasperReportsJXlsViewHandler.java
framework/webapp/src/main/java/org/apache/ofbiz/webapp/view/JasperReportsPdfViewHandler.java
framework/webapp/src/main/java/org/apache/ofbiz/webapp/view/JasperReportsPoiXlsViewHandler.java
framework/webapp/src/main/java/org/apache/ofbiz/webapp/view/JasperReportsXmlViewHandler.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754636 13f79535-47bb-0310-9956-ffa450edef68
2016-07-31 06:58:39 +00:00
Taher A. Alkhateeb 59fa9f46cd Remove the testlist OFBiz server command - OFBIZ-7924
Apply the following:
- remove the testlist command from options available in OFBiz server
- Delete the TestListContainer.java which implement the behavior
- Update the Config file to ignore properties related to that command
- Delete the properties file related to the command.

This has reference to the above JIRA and the below discussion
thread in which the community agreed to remove the testlist
server command from OFBiz. This command is an old and deprecated
command that used to create an ant script which iterates over all
test suites and execute them consecutively. It is both not-needed
and also deprecated given its dependence on Ant.

The discussion thread:
http://ofbiz.markmail.org/message/r64igaf6ihvpolaa


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754507 13f79535-47bb-0310-9956-ffa450edef68
2016-07-29 12:42:55 +00:00
Jacques Le Roux ea0ccc9721 No functional change, both Taher and I missed this little now useless var
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754434 13f79535-47bb-0310-9956-ffa450edef68
2016-07-28 17:02:44 +00:00
Jacques Le Roux f0e942d68d After removing the POS at r1754402 for OFBIZ-7804, I reviewed Taher's patch attached at OFBIZ-7924 "Remove old and deprecated OFBiz server commands" and noticed I forgot to remove the splash classes in base, doing it here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754433 13f79535-47bb-0310-9956-ffa450edef68
2016-07-28 16:56:55 +00:00
Jacques Le Roux 7ada24fd04 This removes the pos component. OFBIZ-7804 "Check if we should fix or remove the POS (hence WebPos?)"
Most is done already. Test pass but testFopMacroLibrary but I don't see how it could be related to these changes, could be a quirk on Windows, BuilBot will tell us. Anyway, I will later double-check to be sure, also to see if I did not miss anything else.

I have voluntarily left 2 or 3 moot points
I was unable to remove possible POS references in <property key="FieldDescription.ProductStore.isImmediatelyFulfilled"> for certain language I'm unable to read.
I have to check if we should keep or not this code snippet
                <!-- if inventory info is not available for all of the products, then don't do the issuance, ie there has to be at least SOME inventory info in the database to facilitate inventory-less POS terminals -->
                <entity-count entity-name="InventoryItem" count-field="iiCount">
                    <condition-expr field-name="facilityId" operator="equals" from-field="orderHeader.originFacilityId"/>
                </entity-count>
I simply commented out twice this snippet in InvoiceServices.java, because I wonder if it would not be useful when the webPos will be able to issue money change
//                if (null == adj.get("amount")) { // JLR 17/4/7 : fix a bug coming from POS in case of use of a discount (on item(s) or sale, sale here) and a cash amount higher than total (hence issuing change)
//                    continue;
//                }

While at it, since I modified OPTIONAL_LIBRARIES, I also changed these svn:properties: svn:eol-style = native & svn:mime-type = text/plain


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754402 13f79535-47bb-0310-9956-ffa450edef68
2016-07-28 12:27:20 +00:00
Jacques Le Roux 93834caafb A request from Pierre Smits for "Removal of old OFBiz images from images folder" https://issues.apache.org/jira/browse/OFBIZ-7919
There are a few OFBiz images left behind in the image folder in the image component.

jleroux: This is certainly not a major issue but I see no reasons to keep these old unused images. I'll put a note in Attic.
While doing so I decided to remove opentravelsystem_logo.jpg and also to hide the bin folder (in OFBiz root) in Windows, it was confusing!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753774 13f79535-47bb-0310-9956-ffa450edef68
2016-07-22 10:22:11 +00:00
Jacques Le Roux 0c9ef9068c Damned, it's the 2nd time I inadvertently commit this unfinished file
I remove it from repo (even if not used yet) and I'll complete this task!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753385 13f79535-47bb-0310-9956-ffa450edef68
2016-07-19 13:36:01 +00:00
Jacques Le Roux 1fbad8362c Creates a (short term) Gradle "cleanAnt" task to remove old build dirs - https://issues.apache.org/jira/browse/OFBIZ-7898
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
2016-07-19 13:01:15 +00:00
Taher A. Alkhateeb ce718d81c6 Break down the tests of requestStatus and requestShutdown - OFBIZ-7897
The two tests were lumped together and if one throws an exception the other
will never throw it. So test coverage was not done properly. This commit
fixes this issue by separating the calls into two different tests.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753348 13f79535-47bb-0310-9956-ffa450edef68
2016-07-19 08:20:45 +00:00
Taher A. Alkhateeb d5cf4875a2 Introduce unit tests to the start component - OFBIZ-7897
This is the first batch of unit tests for the Start component
which introduces 8 unit tests for parsing the start commands
and also some tests for the AdminClient.

At some point if the tests become numerous we might need to
break it down into multiple files. The tests are implemented
with standard JUnit tests. A minor correction was done to the
StartupCommandUtil class by converting the List of startup
commands to a Set to remove duplicates. This was discovered
thank to the unit tests being introduced.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753274 13f79535-47bb-0310-9956-ffa450edef68
2016-07-18 17:28:31 +00:00
Jacques Le Roux f47ffc755c A request from Pierre Smits for "Move *CertKeystore.groovy* to location according to best practice" https://issues.apache.org/jira/browse/OFBIZ-7892
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753196 13f79535-47bb-0310-9956-ffa450edef68
2016-07-18 10:11:56 +00:00
Deepak Dixit f6ea4def32 (OFBIZ-6274) Change it loger level from info to all for org.apache.ofbiz, as all is top level logging level so if we turn on verbose/timing logging then it will working fine. As currently it set to info so timing/verbose log was not printed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753168 13f79535-47bb-0310-9956-ffa450edef68
2016-07-18 08:18:48 +00:00
Jacques Le Roux 84485f2a8e Fixes an issue in the log where only warning were shown. Related with <<Rename OFBiz artifacts from 'org.ofbiz.*' to org.apache.ofbiz.*'>> - https://issues.apache.org/jira/browse/OFBIZ-6274
We had already the org.apache logger. IIRW, it's because we use Apache libs (eg Tomcat) and we want to be warned when issues appear at this level. 
By adding the org.apache.ofbiz info logger we should keep warnings a the org.apache level and get info at the org.apache.ofbiz level

I'm though unsure why we needed 
<logger name="org.apache.ofbiz.base.converter.Converters" level="warn"/>
which seems contradictory. I Googled for an explanation but I'm still short of it. I'll check with http://logging.apache.org/log4j/2.x/manual/configuration.html.

For now it works, so I apply the patch because it's already a relief and will help to resolve the harder problem of instable tests results.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753029 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 08:37:19 +00:00
Jacques Le Roux 414c48d1f2 A modified patch from Pierre Smits for "Ftl to Widget: improve ViewCertificate to use widgets instead of ftl" https://issues.apache.org/jira/browse/OFBIZ-6302
jleroux: I updated the patch. I fixed things by hand: tabs in the groovy files, removed the ftl file because of a tree conflicts due to the recent ftl files move and updated org.ofbiz to org.apache.ofbiz in CertKeystore.groovy

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1753024 13f79535-47bb-0310-9956-ffa450edef68
2016-07-17 08:14:46 +00:00
Deepak Dixit c96a44e0d2 (OFBIZ-6274) Uncommented auto-detect font for apache fop, I commented this code on local box for testing, It was taking too much time to load system font.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752925 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 11:16:20 +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
Deepak Dixit 1db94eeaee (OFBIZ-1319) Replace selectall.js occurance with OfbizUtil.js.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752900 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:46:24 +00:00
Deepak Dixit ef0d840b39 (OFBIZ-1319) Rename selectall.js to OfbizUtil.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752898 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:41:48 +00:00
Deepak Dixit 2d033da102 (OFBIZ-1319) Rename selectall.js to OfbizUtil.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752895 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:36:33 +00:00
Taher A. Alkhateeb b37ef2d280 Migrate ALL java files from /src to /src/main/java - OFBIZ-7790
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
2016-07-15 14:17:14 +00:00
Jacques Le Roux e833382970 A fixing patch from Charl Bouwer for "Province data for South Africa via GeoData_ZA.xml and address format for South Africa in GeoData.xml" https://issues.apache.org/jira/browse/OFBIZ-7778
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752344 13f79535-47bb-0310-9956-ffa450edef68
2016-07-12 20:45:28 +00:00
Jacques Le Roux e8d4e38164 A patch from Charl Bouwer for "Province data for South Africa via GeoData_ZA.xml and address format for South Africa in GeoData.xml" https://issues.apache.org/jira/browse/OFBIZ-7778
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752253 13f79535-47bb-0310-9956-ffa450edef68
2016-07-12 09:31:49 +00:00
Nicolas Malin e79d59a785 Improve FinAccountStatus entity to manage changeByUserLoginId field with conversion of minilang service to entity-auto. This previous service manage a specific case for the statusEndDate field that set the date when a new entry is stored on statusDate and the same value on previous stored on statusEndDate. This field is also present on ExampleStatus, so extend the EntityAuto engine to manage this case. Thanks Nameet Jain for the OFBIZ-7623
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752232 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 23:05:34 +00:00
Gil Portenseigne 3130f0eb95 OFBIZ-7763 :
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 &quot; 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
2016-07-11 23:04:54 +00:00
Jacques Le Roux 87d4d4a9da No functional changes, removes superfluous blanks (reported error when validated in OFBiz)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752151 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 12:49:15 +00:00
Deepak Dixit 2d23e50680 (OFBIZ-7765) Fix typo, Added mistakenly removed closing comment tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752142 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 10:30:43 +00:00
Deepak Dixit 96b5ff4f52 (OFBIZ-7765) Removed testBsh service references from code. Thanks Rishi Solanki for pointing out.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752140 13f79535-47bb-0310-9956-ffa450edef68
2016-07-11 10:22:32 +00:00
Jacques Le Roux 2dbfbea9f9 Temporarily comments because the "high-ascii" test is failing on BuildBot (only) when switching to Gradle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752043 13f79535-47bb-0310-9956-ffa450edef68
2016-07-09 19:56:35 +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
Jacopo Cappellato 6d3f6d1ceb Removed two unused jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751951 13f79535-47bb-0310-9956-ffa450edef68
2016-07-08 18:05:44 +00:00
Jacopo Cappellato 539084a511 OFBIZ-7763 Removed a series of artifacts dependent on the old Beanshell jar that is going to be removed from the project; specifically:
* 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
2016-07-08 17:53:59 +00:00
Jacopo Cappellato f6ab874a61 OFBIZ-7765 converted Minilang code that was using the deprecated "call-bsh" element to use the "script" element with Groovy. Thanks to Deepak Dixit for the work and the patch and to Nicolas Malin for the review and imporvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751945 13f79535-47bb-0310-9956-ffa450edef68
2016-07-08 17:37:36 +00:00
Jacopo Cappellato 7820ab91de Removed a label no more used after the removal of JDBM in commit 1751817; thanks to Nicolas Malin for spotting this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751818 13f79535-47bb-0310-9956-ffa450edef68
2016-07-07 17:09:47 +00:00
Jacopo Cappellato e0da901504 OFBIZ-7760 Removed from UtilCache the ability to persist entries in the file system.
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
2016-07-07 17:00:05 +00:00
Jacques Le Roux b06357197c A fixing patch from Tufan Kaynak for "Geo data for Turkey" https://issues.apache.org/jira/browse/OFBIZ-7755
Correction for relating to the parent in REGIONS relation (TR instead of right TUR)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751790 13f79535-47bb-0310-9956-ffa450edef68
2016-07-07 12:35:10 +00:00
Jacques Le Roux 9ab9f3a70e No functional change, fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751680 13f79535-47bb-0310-9956-ffa450edef68
2016-07-06 13:40:21 +00:00
Nicolas Malin fa265a8460 no functionnal change, fix formating if
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751670 13f79535-47bb-0310-9956-ffa450edef68
2016-07-06 12:21:04 +00:00
Nicolas Malin 5bb21306a6 no functionnal change, remove space end line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751667 13f79535-47bb-0310-9956-ffa450edef68
2016-07-06 12:18:32 +00:00
Nicolas Malin 55660a9859 no functionnal change, remove space end line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751660 13f79535-47bb-0310-9956-ffa450edef68
2016-07-06 11:43:35 +00:00
Jacques Le Roux 2eb79775e5 A patch from Tufan Kaynak for "Geo data for Turkey" https://issues.apache.org/jira/browse/OFBIZ-7755
Files for including Province data for Turkey via GeoData_TR.xml and address format for Turkey in GeoData.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751635 13f79535-47bb-0310-9956-ffa450edef68
2016-07-06 09:08:07 +00:00
Nicolas Malin 9e72d270f1 Add new process on entity-auto for create invocation to populate automatically the field changeUserLoginId and statusDate for EntityStatus. The purpose is track userlogin for status change, and apply on all entity that cover the EntityStatus concept. The origin issue has been raise by Nameet Jain on OFBIZ-7611
This improvement add a control to not update or delete an EntityStatus by entity-auto (for help developer) and complete unit test

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751530 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 19:06:52 +00:00
Arun Patidar 7d7fba2cd2 Applied patch from jira issue - OFBIZ-7717 - Enforce noninstantiability to EntityTypeUtil class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751482 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 14:05:06 +00:00
Arun Patidar b0b67a436c Applied patch from jira issue - OFBIZ-7716 - Enforce noninstantiability to CommonWorkers class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751480 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 14:00:40 +00:00
Arun Patidar 3aea5616fb Applied patch from jira issue - OFBIZ-7708 - Enforce noninstantiability to UrlServletHelper class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751477 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 13:57:14 +00:00
Arun Patidar 13cb2062bc Applied patch from jira issue - OFBIZ-7692 - Enforce noninstantiability to AuthHelper class. Thanks Rahul Singh and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751473 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 13:51:33 +00:00
Arun Patidar 2ce5aa29ba Applied patch from jira issue - OFBIZ-7684 - Enforce noninstantiability to ServiceConfigUtil class. Thanks Rahul Singh and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751470 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 13:45:14 +00:00
Pranay Pandey a1e8562c3a [OFBIZ-7636] No functional changes. framework ftl reformatting for better code readability. Thanks Vaibhav Jain for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751469 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 13:41:14 +00:00
Mridul Pathak 2da83e9dc1 [OFBIZ-7443] UI improvements on XML Data Export screen: label "Entity Names:" not positioned correctly; "Entity Sync Dump:" text box not visible in all the themes except Tomahawk. Thanks Gopal Yadav for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751430 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 10:00:20 +00:00
Deepak Dixit dd05dbe7a3 (OFBIZ-7750) Applied patch jira issue.
===========================================
Error adding foreign key: ModelEntity was null for related entity name Tenant
===========================================

Thanks Nameet Jain for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751423 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 08:54:26 +00:00
Ashish Vijaywargiya e1e45da5ed Applied patch from jira issue - OFBIZ-7705 - Remove Google Checkout component from specialpurpose as it was discontinued.
Thanks Ravi for removing the reference of Google Checkout from everywhere.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751393 13f79535-47bb-0310-9956-ffa450edef68
2016-07-05 04:24:53 +00:00