Jacopo Cappellato
62a546391b
small misc cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726147 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 23:31:30 +00:00
Jacopo Cappellato
fa390788fa
Renamed file to follow standard naming conventions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726141 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 22:31:58 +00:00
Adrian Crum
60de21586d
UtilMisc work - expanded and improved Object to number conversions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726074 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 17:22:35 +00:00
Jacques Le Roux
52595e4f48
A slightly modified patch from Bilgin Ibryam "Allow multi-pagination in a page" ( https://issues.apache.org/jira/browse/OFBIZ-1935 ) - OFBIZ-1935
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@725053 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 10:39:16 +00:00
Adrian Crum
a6f7092892
Converted ${env...} expression syntax to ${sys:getProperty(String)}. The old syntax still works.
...
I didn't like how an expression starting with "env." was treated differently, especially since it wasn't documented anywhere.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724851 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 19:46:44 +00:00
Adrian Crum
dc76c292df
Finished building out the Unified Expression Language functions, added detailed JavaDocs.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724835 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 19:08:19 +00:00
Adrian Crum
00c2bc4a62
Fixed a bug I introduced in FlexibleStringExpander - the special ${env...} syntax wasn't being expanded properly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724792 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 17:31:28 +00:00
Adrian Crum
f7b4614553
Added some functions to the Unified Expression Language. See the UelFunctions.java JavaDoc for details.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724616 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 05:58:18 +00:00
Adrian Crum
f48fa23ce4
More work on the Unified Expression Language code:
...
1. Renamed some things in UelUtil.java to make them more understandable
2. Moved exception handling out of UelUtil.java and into calling methods
3. Added missing UEL implementation to FlexibleStringExpander.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724428 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 18:00:22 +00:00
Adrian Crum
b8b7fa131e
Fixed parsing errors in Unified Expression Language code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724373 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 14:58:14 +00:00
Adrian Crum
d838febb44
Integrated the Unified Expression Language (JSR-245) into the FlexibleStringExpander class.
...
This commit also includes an example usage in InventoryServices.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724146 13f79535-47bb-0310-9956-ffa450edef68
2008-12-07 16:11:44 +00:00
Adrian Crum
c09cf015a1
Fixed bug where properties using the ${} syntax weren't being expanded, reported by Mridul Pathak - https://issues.apache.org/jira/browse/OFBIZ-2066 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@722104 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 15:53:13 +00:00
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