Commit Graph
448 Commits
Author SHA1 Message Date
Jacques Le Roux 5f1f00276d A patch from Philipp Hoppen " Individual logfiles for scheduled jobs" (https://issues.apache.org/jira/browse/OFBIZ-2042) - OFBIZ-2042
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@719836 13f79535-47bb-0310-9956-ffa450edef68
2008-11-22 11:24:28 +00:00
Jacques Le Roux 2af8a8c28d Minerva commented out for convenience. As Oxygen reported an error, I looked for an XSD but found none.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@719719 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 21:27:01 +00:00
Adrian Crum fc32f9e7d8 A rudimentary iCalendar integration implementation. Work efforts can be published in iCalendar format. The published calendar is read-only.
Run ant run-install, then navigate to:

https://localhost:8443/iCalendar/CALENDAR_PUB_DEMO/MyCalendar.ics

for a demonstration.

I will continue to build this out as I have time.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718684 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 18:56:11 +00:00
Adrian Crum a7b1c9c92a Removed static fields that are no longer needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718618 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 14:32:40 +00:00
Adam Heath 3935ab51c0 Implement multiple resource loading from the classpath; this means
that framework doesn't have to reference transforms that exist in
later components.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718491 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 06:09:58 +00:00
Adrian Crum 8cfee75105 Small fixup for one of my previous commits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@714087 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 18:06:37 +00:00
Adam Heath feab072e37 Ported to the java1.4 exception chaining feature, instead of
maintaining our own reference to the nested/chained throwable.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@713576 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 00:20:48 +00:00
Adrian Crum f4a3855f56 Oops, missed the JavaDoc comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712239 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 19:50:02 +00:00
Adrian Crum 6c084dc8e3 Deprecated one more unnecessary class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712237 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 19:47:04 +00:00
Adrian Crum cd731c702b Fixed a small bug in UtilProperties.java where some properties files were cached twice.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712201 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 17:06:48 +00:00
Adrian Crum a414ac0c9b Code cleanups in the base component - deprecated unused/unnecessary classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712195 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 16:54:41 +00:00
Adam Heath 23fd64c410 Remove the prepare targets, they are already defined in common.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711773 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 06:17:36 +00:00
Adam Heath e4566854d9 Javadoc updates; no warnings!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709585 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 22:15:48 +00:00
Adam Heath 2678df713a Make it work with clean global ant. Now both ./ant and a system
installed ant will work; tested in a brand new clean chroot.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708993 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 19:47:20 +00:00
Adam Heath 422ee9eb03 Fix use of optional ant features, <scriptdef>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708924 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 15:51:41 +00:00
Adam Heath 08197bc0d6 Whoops; this didn't work when it was used from a parent build.xml,
and recursed into a sub build.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708775 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 04:49:39 +00:00
Adam Heath b32378737b Finish feature integration; the ofbiz-jjtree task now works.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708760 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 03:22:05 +00:00
Adam Heath e8ba1f34d8 Add javacc, with support script.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708734 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 00:05:36 +00:00
Adam Heath 658136e0e4 Add the standard license header.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708730 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 23:52:44 +00:00
Adam Heath a60909100b Add a new ant task, <if><condition/><commands/><else/></if>, since
ant itself doesn't support such a construct.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708699 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 22:08:24 +00:00
Hans Bakker 2a6ef131a6 scheduler now takes saturday/sundays into account
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708444 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 05:54:21 +00:00
Adrian Crum 67c49da276 Improved TimeDuration.java - now supports negative durations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@707488 13f79535-47bb-0310-9956-ffa450edef68
2008-10-23 22:38:56 +00:00
Scott Gray 82e9c5243f Fix for problem that the new cross domain session cookie valve was having with localhost domains.
Thanks to Mridul Pathak for the patch and Andrew Zeneski for his advice

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703784 13f79535-47bb-0310-9956-ffa450edef68
2008-10-12 10:56:41 +00:00
Adrian Crum 23a198ac3e Added some methods to TimeDuration.java to convert to/from a long value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703283 13f79535-47bb-0310-9956-ffa450edef68
2008-10-09 22:38:32 +00:00
Adrian Crum 6afad138f7 UtilDateTime.toCalendar(...) now accepts Date objects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@702495 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 14:42:46 +00:00
Jacques Le Roux 6d692c0e0d A patch from Michael Imhof "ObjectType does not recognize arrays" (https://issues.apache.org/jira/browse/OFBIZ-1008) - OFBIZ-1008
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@702377 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 08:01:50 +00:00
Scott Gray 3245bb2bff disabling the session valve for now, for some reason the browser stops storing the session cookie when domian=.localhost
Thanks to Jacques for the report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701686 13f79535-47bb-0310-9956-ffa450edef68
2008-10-04 18:56:17 +00:00
Scott Gray 1a24259b66 OFBIZ-1980: CrossSubdomainSessionValve for Tomcat, allows a session cookie to be shared across multiple subdomains.
Thanks to Mridul Pathak for the patch, Pranay Pandey and Chirag Manocha for testing and Andrew Zeneski for guidance and review.

Note: I made one small change, switched from logInfo to logVerbose to reduce the amount of noise created in the logs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701564 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 23:08:36 +00:00
Adrian Crum 6ed56e3b77 TimeDuration JavaDocs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701251 13f79535-47bb-0310-9956-ffa450edef68
2008-10-02 21:48:26 +00:00
Adrian Crum bc88754b41 DateRange JavaDocs and code cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700863 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 18:41:37 +00:00
Adrian Crum 96ea0572f0 Oops, previous DateRange change made it mutable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700663 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 02:39:49 +00:00
Adrian Crum 59e2913fdb Completed Timestamp support in DateRange. Also added some comparison methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700660 13f79535-47bb-0310-9956-ffa450edef68
2008-10-01 02:34:16 +00:00
Adrian Crum 4f91a53973 Fixed the DateRange class so it will work properly when java.sql.Timestamp is used in its constructor. Also cleaned up the toString method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@700579 13f79535-47bb-0310-9956-ffa450edef68
2008-09-30 21:09:28 +00:00
Adrian Crum 1a2911ff31 Fixed quirky problem with UI labels - sometimes the fallback locale didn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698429 13f79535-47bb-0310-9956-ffa450edef68
2008-09-24 05:50:42 +00:00
Adrian Crum 1a5b389697 Moved a couple of the temporal expression related classes to the base component, removed some POC code, and added elapsed time calculation to the TimeDuration class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698055 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 01:07:16 +00:00
Adam Heath 6c911c1d2d A couple helper methods, so that calling code doesn't have to have so
many catch blocks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@692610 13f79535-47bb-0310-9956-ffa450edef68
2008-09-06 04:10:17 +00:00
Adam Heath ae2e0a53bb Use a StringBuilder to read url text.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@692566 13f79535-47bb-0310-9956-ffa450edef68
2008-09-05 22:21:06 +00:00
Andrew Zeneski f42108441d added option to disable log4j conifguration
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689210 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 20:36:42 +00:00
Adrian Crum eff5f89d39 Simplified Scott's FlexibleStringExpander NPE fix and updated the JavaDocs.
Many thanks to Scott for catching that, and many thanks to David Jones for his suggestions on the refactor.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688348 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 15:56:17 +00:00
Scott Gray eb425ac447 NPE fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688296 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 11:15:23 +00:00
Adrian Crum 3ac5d11bb9 Added some synchronization code to FlexibleStringExpander.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687900 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 23:34:59 +00:00
Adrian Crum 65d194a557 Changed UtilObject.getByteCount(Object obj) exception handling to log verbose, since exceptions are regularly thrown and they were clogging up the console log.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687884 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 22:31:58 +00:00
Adrian Crum 4172761060 More FlexibleMapAccessor.java fixups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687842 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 20:09:48 +00:00
Adrian Crum df34ed93d5 A small tweak of the FlexibleStringExpander.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687500 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 23:12:39 +00:00
Adrian Crum 3aa803f9bc Small fix for UtilObject. The getByteCount(Object obj) method was returning unusual results for non-serializable objects. I also added an explanatory note in the JavaDoc.
An interesting article on getting the size of Java objects - http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html?page=1.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687473 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 21:33:52 +00:00
Adrian Crum ead3169d5c FlexibleStringExpander refactor.
1. Improved parsing logic - the entire expression is pre-parsed now.
2. Factory method stores parsed expressions in the cache.
3. Single null/empty expression instance - saves on memory.
4. Class names and variable names shortened to reduce object size.
5. Small performance improvements.

The expression cache is set up with no limit. We'll have to see if that needs to be changed. Larger installations might need to limit the expression cache size.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687422 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 18:50:04 +00:00
Adam Heath c3054529c9 Allow joining of any item, not just string.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686845 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 18:51:08 +00:00
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Adam Heath e410552cc9 No longer *copy* the extra support files into the classes dir;
instead, just add them straight to the final jar.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath 8328cfc565 Don't make base/start subdirs in build/classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685783 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:16:19 +00:00