Commit Graph
1198 Commits
Author SHA1 Message Date
Jacques Le Roux b7642843fd Fixes 2 typos in Javadoc found by chance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@983946 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 11:55:44 +00:00
Jacques Le Roux b552004b9b A patch from René Scheibe ""setShippingOption" service called from one page checkout throws Exception" (https://issues.apache.org/jira/browse/OFBIZ-3886) - OFBIZ-3886
The shippingTotal has to be a BigDecimal for the methods called...

    * org.ofbiz.base.util.UtilFormatOut.formatCurrency(...)
    * org.ofbiz.order.shoppingcart.ShoppingCart.setItemShipGroupEstimate(...)

...so in case it's null, initialize it with BigDecimal.ZERO instead of 0.00

Fixes also some JavaDoc in UtilFormatOut.java

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@983920 13f79535-47bb-0310-9956-ffa450edef68
2010-08-10 10:43:01 +00:00
Adam Heath 5b4e8071c5 Add appendTo/append variant that allows for a prefix and suffix around
the separator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981533 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:21 +00:00
Adam Heath cb1646e320 More StringUtil tests; This also tests double-encoding detection, which
required changing the type of defaultWebEncoder.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981532 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:15 +00:00
Adam Heath 77912ea777 StringUtil now has a private constructor; all uses of it must use the
singleton static INSTANCE(only one such use is in ofbiz).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981531 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:09 +00:00
Adam Heath ce409cd671 Start adding StringUtil tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981530 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:02 +00:00
Adam Heath 509532a3d4 Add methods for testing iterability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981529 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:45:54 +00:00
Scott Gray ad81f1d1f1 Null check was incorrectly being used to determine if the directory existed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981104 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 23:47:55 +00:00
Scott Gray 4448c4a866 No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Adrian Crum 86c11b0eaf Documentation improvements in Assert.java and TimeDuration.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980982 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 22:13:48 +00:00
Adrian Crum 46d6ef4c83 Added two new annotations, and did some code cleanups. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980645 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:40:16 +00:00
Jacques Le Roux 725f40b9d0 A patch from Sascha Rodekamp "Method to get a child element attribute from a specific XML file" (https://issues.apache.org/jira/browse/OFBIZ-3874) - OFBIZ-3874
Just a good method to return a named attribute of a named child node or a default if null. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967151 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 16:06:41 +00:00
Erwan de Ferrieres c39c604127 Manage compositeTypes in multi handler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967012 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 09:27:59 +00:00
Adam Heath 827c205352 Fix file leak problem in KeyStore, the stream must be closed by the
caller(which also generally means doing it in a finally clause).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966785 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 18:30:51 +00:00
Erwan de Ferrieres 124f19b1b4 Finally adding Apache FOP 1.0, barcode generation is now working
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966662 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 14:02:39 +00:00
Erwan de Ferrieres 9a78318c28 Reverting FOP1.0 integration as it is breaking the barcode generation. Still some work to be done
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966392 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 19:56:00 +00:00
Erwan de Ferrieres d5020c9d5e Adding the new FOP 1.0 to OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966285 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:44:16 +00:00
Adam Heath b198a80d4e Fix typo s/espacing/escaping/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965919 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:32 +00:00
Adam Heath 695cc497f2 Fix coverage reports; the coverage for base was reporting 100%, which is
not correct.  With real numbers on base, it shows a lot of missing
lines.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965914 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:06 +00:00
Adrian Crum 9c11c2c261 Added Boolean converter tests - copied from Apache Commons Convert.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965843 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:39:05 +00:00
Adrian Crum b8ad20ea06 Import cleanups and compiler warning fixes - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965841 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:36:13 +00:00
David E. Jones 127bc8cba1 Small change so that formatted intervals don't have superfluous commas
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@963630 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 09:34:29 +00:00
Adrian Crum d898b0b695 Fixed UtilCache.java JavaDoc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@960373 13f79535-47bb-0310-9956-ffa450edef68
2010-07-04 18:07:14 +00:00
Erwan de Ferrieres e710059ab7 OFBIZ-3798 Add xml-rpc engine on serviceengine - A new patch from Nicolas Malin (https://issues.apache.org/jira/browse/OFBIZ-3798) - Also updating xml-rpc libs from 3.0.1 to 3.1.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959261 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 10:52:12 +00:00
Erwan de Ferrieres 0803e3c6f1 Reverting previous commit as it wasn't fully reviewed and was producing errors. Sorry guys...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959076 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 19:19:55 +00:00
Erwan de Ferrieres ad183f5cea OFBIZ-3798 Add xml-rpc engine on serviceengine - (https://issues.apache.org/jira/browse/OFBIZ-3798)
A patch from Nicolas Malin - adding a generic service to call xml-rpc server. The goal is to have a technical interface to make calls directly from mini-lang.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959071 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 18:43:56 +00:00
Adam Heath e780a65555 Convert Arrays.asList() to a normal, modifiable List.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958274 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:45 +00:00
Adam Heath f685831073 Fix several generics warnings that have crept in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958273 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:39 +00:00
Adam Heath c20e5a2ac7 Fix bug forwarded by BJ, from the user list; namely,
FastList.subList().add(Object) throws UnsupportedOperationException.
This commit should be undone when javolution is fixed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958270 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:16 +00:00
Jacques Le Roux d931ca6dfc Organize imports (found by chance), no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958040 13f79535-47bb-0310-9956-ffa450edef68
2010-06-25 17:16:29 +00:00
Adam Heath af5a7f91fe Remove useless check for non-null bundle, immediately after a null
check, in UtilResourceBundle.getBundle().

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956472 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:13 +00:00
Adam Heath 8c90119420 s/safeWait/Thread.sleep/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956471 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:08 +00:00
Adam Heath 08e5f40d52 Make use of makeMapWritable and makeListWritable to copy the list and
map.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956470 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:02 +00:00
Adam Heath 7fea76ce97 Fix formatting issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956469 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:08:57 +00:00
Erwan de Ferrieres 35fed9293a Replacing groovy with the lastest stable release (we had a rc since december 2009)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955036 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 20:17:17 +00:00
Jacopo Cappellato c287fa6126 Reverted change based on feedback from Adam Heath and Adrian Crum; the issue with Oracle will be resolved with a different approach.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953220 13f79535-47bb-0310-9956-ffa450edef68
2010-06-10 05:20:31 +00:00
Jacopo Cappellato 7cf599d103 Implemented sql date to time converter to avoid errors with Oracle.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@952997 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 13:20:21 +00:00
Jacques Le Roux e57c2599a9 A patch from Sumit Pandit "Issue in rendering Freemarker Template from String." (https://issues.apache.org/jira/browse/OFBIZ-3782) - OFBIZ-3782
With the help of Bob Morley (it was more a cache issue than what Sumit thought)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950866 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 04:11:32 +00:00
Adam Heath b2e13f2a28 Add a new marker interface, IsEmpty.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950764 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:00 +00:00
Adam Heath e8ad94f1f2 Revert wrongly committed 950253
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950283 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:02:06 +00:00
Adam Heath ca13adff80 Revert wrongly committed 950254
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950281 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:42 +00:00
Adam Heath 6c2124c44f Revert wrongly committed 950256
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950279 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:05 +00:00
Adam Heath 67912df510 Revert wrongly committed 950259
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950276 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:05 +00:00
Adam Heath 73e0f908c6 Revert wrongly committed 950260
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950275 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:45 +00:00
Adam Heath e4e262751b Add unix(glibc)-compatible password hashing, exact same output, with
support for salts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950260 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:54 +00:00
Adam Heath e29d564abb Only test UtilCache.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950259 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:49 +00:00
Adam Heath 93adfe2429 Start making use of DependencyPool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950256 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:32 +00:00
Adam Heath b0a2e51209 Start work in provides in inflight features.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950254 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:19 +00:00
Adam Heath 447ef0c1da add() now returns the newly added item, or one that was added
concurrently by another thread.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950253 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:13 +00:00
Jacques Le Roux 3d4e68c1f7 A patch from Sascha Rodekamp "Encapsulate Methods in the UtilHttp Method" (https://issues.apache.org/jira/browse/OFBIZ-3788) - OFBIZ-3788
The Methods getQueryStringOnlyParameterMap, getPathInfoOnlyParameterMap and getUrlOnlyParameterMap can be better encapsulated. It does not affect the workflow but makes it easier to use the API.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949802 13f79535-47bb-0310-9956-ffa450edef68
2010-05-31 16:40:34 +00:00