Commit Graph
2421 Commits
Author SHA1 Message Date
Jacques Le Roux e03e7ad6f2 After Adam's remark about formatting (actually mostly about Double instead of double), Sascha provided a new patch which was still not well formatted. So I decided to use the same formatting than in getPropertyValue. Even if it does not follow the "brackets around blocks rule" Sun convention. I have explained this a bit to Sascha at https://issues.apache.org/jira/browse/OFBIZ-3425 "Extend getPropertyNumber, Default Value"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903571 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:59:25 +00:00
Jacques Le Roux 0eb5a20261 A patch from Sascha Rodekamp "Extend getPropertyNumber, Default Value" (https://issues.apache.org/jira/browse/OFBIZ-3425) - OFBIZ-3425
Adds a method to have a default value to getPropertyNumber methods, can't hurt and maybe useful in some cases.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 12:30:02 +00:00
Adrian Crum 2bef93bf64 ComparableRange test improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902525 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 03:18:52 +00:00
Adrian Crum 389e4e4431 Refactored DateRange.java:
1. Extends new class ComparableRange.
2. downcastTimestamp protected method renamed to timestampToDate and made static.
3. Misc code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902512 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:04:22 +00:00
Adrian Crum 883fd96835 Small JavaDoc fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902510 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:01:08 +00:00
Adrian Crum 4051b7a1eb Unit test for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:19:47 +00:00
Adrian Crum a31caf2059 Sanity check on ComparableRange - make sure the constructor arguments are the same class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902345 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:00:53 +00:00
Adrian Crum 3e3daa73b2 Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902344 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:52:34 +00:00
Adrian Crum 5a80577ec9 Created a Range interface, and an implementation for all Comparable classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902342 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:39:30 +00:00
Adrian Crum a6bf032741 Small improvement to ClobToString converter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902341 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:38:09 +00:00
Scott Gray aa3f01ade4 Removed deprecated method UtilXml.readXmlDocument(InputStream), concludes org.ofbiz.base deprecation cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902230 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:38 +00:00
Scott Gray ec93506d54 Removed deprecated class UtilParse.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902229 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:32 +00:00
Scott Gray 8e276aba74 Removed deprecated method StringUtil.htmlSpecialChars(String, boolean, boolean, boolean), there was an undeprecated overloaded method (StringUtil.htmlSpecialChars(String)) calling this method so I've moved the implementation to it and marked it as deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902228 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:27 +00:00
Scott Gray 21b953e7d8 Removed deprecated class OutputStreamByteCount.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902227 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:22 +00:00
Scott Gray 812ec2585e Added missing deprecated annotations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902225 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:10:20 +00:00
Anil Patel 722c4c33f0 Now checking for Boolean type in request attributes and adding it to returned Json attributes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901689 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 13:03:18 +00:00
Adrian Crum e80cf29e02 Simplified the number converters. Eliminated an unnecessary abstract class, made use of Java's auto-boxing. Non-localized Number to String conversions use the the toString() method - so the result is what you would expect.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901058 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 04:36:42 +00:00
Scott Gray b8abee939f Add converters to/from ByteBuffer and byte[]
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899824 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:43:42 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adrian Crum a91a37e6af A less aggressive UtilProperties.java update, suggested by Adam Heath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898648 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 04:41:03 +00:00
Adrian Crum 1d47be2260 First pass at converting UtilProperties.java to Java 6, plus some small code cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898338 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 14:24:36 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Erwan de Ferrieres 8726524ab1 Creating a calendar event was starting at 12:00 even if selecting a start time before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896504 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 16:20:27 +00:00
Bilgin Ismet Ibryam 6b0a2fe97f Use getLocalName() instead of getNodeName() and getTagName() methods. This change will fix errors in soap call, where elements have namespace prefixes.
I didn't notice any error caused from these changes, but it would be great if someone with more xml knowledge takes a loot at it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894359 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 11:33:39 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath 17e8d26105 Fix some javadoc warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894037 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:01 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 05b3ea3230 Make use of the init target, to set excludes based on available
libraries, so that the common classes target can be used.  This also
sets src.exc.set correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894028 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:20:32 +00:00
Adam Heath a412eb1898 Normalize javadoc windowtitle.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894026 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:19:10 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Adrian Crum 2b0d1e0c63 Improved converter tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893635 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 21:39:55 +00:00
Adrian Crum ca49d9bc66 First batch of converter tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893313 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 20:54:55 +00:00
Adam Heath dae44c3bd4 Some set helper methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893077 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:08:43 +00:00
Adam Heath ac8c6c51c0 Add trax support libraries, so that junitreport can work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892694 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:31:11 +00:00
Adam Heath c95c42b395 Upgrade ant to 1.7.1.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892693 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:30:14 +00:00
Adam Heath ad3b379d34 Fix groovy class parsing/caching.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891070 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 23:24:02 +00:00
Adam Heath 2abf8fed43 Utility methods for reading strings from streams and readers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891068 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 23:23:15 +00:00
David E. Jones 4e89c158ed Based on idea from Patrick Antivackis in issues #OFBIZ-3257: changed order of sources for parameters Map so that request parameters are the lowest priority instead of second highest; in some general/random testing this seems to work fine, and addresses the issue Patrick brought up as well as preserving flexibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890831 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 15:37:12 +00:00
Jacques Le Roux 4415d1f33b Typo, but this commit is rather a warning: if you put an underscore in your permission it will be stripped by the lines just below this change, ie
// trim the permissions (remove spaces)
    for (int i = 0; i < this.basePermission.length; i++) {
        this.basePermission[i] = this.basePermission[i].trim();
        if (this.basePermission[i].indexOf('_') != -1) {
            this.basePermission[i] = this.basePermission[i].substring(0, this.basePermission[i].indexOf('_'));
        }
    }
So if you put MY_APP as a permission it will end as MY (I will add a comment at http://cwiki.apache.org/confluence/display/OFBTECH/OFBiz+security)

Also because the comment and the code are not consistent I wonder what those lines are really for...
This is from pre Apache Era. I prefer to not touch...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890311 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 13:30:03 +00:00
Hans Bakker f9e1b11bde Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00
Adam Heath 7286ff8d28 Instrumentation with cobertura. It won't actually do anything, tho,
until cobertura-1.9.3.jar is placed into framework/base/lib.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889839 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:27:18 +00:00
Adam Heath 68e0788392 Generic instrumentation framework. Nothing is configured to use it yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889838 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:26:24 +00:00
Adam Heath d22fbbe257 Upgrade asm from 2.2 to 3.2; this required upgrading to an unreleased
version of groovy(ick), and a new webslinger snapshot.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889836 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:21:36 +00:00
Adam Heath de36a4dfb8 Add the beginnings of a tester for GenericMap. Doesn't really verify
anything yet, and is rather stupid, in that it only does printlns.  Not
adding this to the existing test infrastructure, until it is ready.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889763 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:45:32 +00:00
Adam Heath 2b12434323 Rename putAll(Iterator) to putAllIterator(Iterator).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889762 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:44:36 +00:00
Adam Heath 52383e1988 Support ConcurrentModificationException for iterators.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889761 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:43:55 +00:00
Adam Heath 7dcca5e431 Inverted wrapped hasNext/next processing, so that
ConcurrentModificationException support will work, thru an isValid
helper call.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889759 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:42:33 +00:00
Adam Heath ef08ee7003 Generic test case assertEquals methods, can be used as an extends, or
statically.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889757 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:40:13 +00:00
Adrian Crum 4585668b7e Changed ObjectType info logging level from warning to verbose.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889748 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 18:25:07 +00:00