Commit Graph
1697 Commits
Author SHA1 Message Date
Jacopo Cappellato 2b384efa04 Increased the length of the logger column from 20 to 30 characters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621701 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 08:29:28 +00:00
Jacopo Cappellato b20d598a67 Updated freemarker jar to the release candidate 01; waiting for the official release that should happen in mid October 2014.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621683 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 06:28:49 +00:00
Adrian Crum d81823384d Small code cleanup in UtilCache.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620249 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 00:37:24 +00:00
Adrian Crum 227ba5f9db Small improvement to UtilCache - allow a component to specify its own cache settings file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620244 13f79535-47bb-0310-9956-ffa450edef68
2014-08-25 00:02:45 +00:00
Jacopo Cappellato 38b7048581 Upgraded two j2ee spec jars from Geronimo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1619300 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 07:30:06 +00:00
Jacopo Cappellato d8c412302f OFBIZ-5287: Upgrade to Log4j2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618831 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 10:36:01 +00:00
Adrian Crum aadc814ba3 Updated Commons CSV library to the official release version (the previous version was a release candidate).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618332 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 11:22:36 +00:00
Adam Heath 58c866dfbd Add a simple Future implementation, that returns a constant,
non-changing value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617811 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:18 +00:00
Adam Heath 61a8dabc7e Add a GLOBAL_BATCH thread pool. This is different than GLOBAL_EXECUTOR,
in that:

* BATCH does not block when all the coreThreads are busy, as would
  happen with EXECUTOR.  When all coreThreads are busy, new threads will
  be spawned.
* Scheduled jobs can *not* be submitted.

You can simulate the first problem, by modifying ExecutionPool, and
force-setting the threadCount to 1.  Then, submit something to the pool,
that will then itself submit more items into the pool.  Dead-lock will
occur.

BATCH should be used when it might be posslbe that more items could be
submitted by code you are calling.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617810 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:12 +00:00
Adam Heath 2aaa234042 Add a global fork-join thread pool, and switch a bunch of stuff over to
it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617809 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:38:01 +00:00
Adam Heath 111f90c057 Add a helper method for auto adjusting the threadCount.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1617808 13f79535-47bb-0310-9956-ffa450edef68
2014-08-13 19:37:49 +00:00
Jacopo Cappellato 066d782950 Misc minor cleanups to log messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616744 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 13:16:46 +00:00
Jacopo Cappellato 37d586c160 Converted some startup messages from "important" to "info".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616431 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 07:52:23 +00:00
Jacopo Cappellato f66ab18d6e Upgrade to Commons DBCP 2; this new version is designed for Java 7 (JDBC 4.1).
Commons DBCP 2 relies on Commons Pool 2 and this commits upgrades that jar too.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1612909 13f79535-47bb-0310-9956-ffa450edef68
2014-07-23 18:26:33 +00:00
Adam Heath ccb36f2238 Fix cobertura-report when source has been generated(aka, when javacc or
jjtree has been used).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605838 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:15 +00:00
Adam Heath e04a063f21 Fix line-ending differences between windows and unix in UtilIO parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605837 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:09 +00:00
Adrian Crum 714050ef33 Updated build files to use/require Java 7.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605524 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 17:59:46 +00:00
Adam Heath 83b70a5643 Fix reversion introduced in StringUtil in r1330955; string maps using
"|" were being parsed correctly.  This fixes OFBIZ-5667.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605268 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 05:27:22 +00:00
Adam Heath 455edd3727 Remove sourcepathref from default-javac; in build.xml that did *not*
create a src-dir patternset, the default *empty* src-dir pattern set was
used.  Then, when javac would compile src/**/*.jar, it would *also*
compile any *other* java files it happened to find in the folder.

In other words, if there was an unpacked tree, let's say named 'p', and
there was a set of folders in there that eventually had java files, they
would all get compiled.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605223 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:21:05 +00:00
Adam Heath 6690816b01 Fix detection of cobertura, for compilation of the hook used by the
runtime container; also fixes the classpath used to define the ant
task.  Now, command-line api tests run underneath cobertura work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605216 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:07:39 +00:00
Adam Heath da7504cc2e Revert "Move ant out of the primary classpath; the shell script and batch file"
This reverts commit 24d7bda48e9618691b28cf63ef02354e1c2df2c8.

Conflicts:

	LICENSE

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605179 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 20:30:39 +00:00
Adam Heath 55a4cc3023 Remove ant-nodeps, it's no longer part of 1.9.0 apparently.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605121 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:29 +00:00
Adam Heath 702ac6d2f8 Move ant out of the primary classpath; the shell script and batch file
now load it from this out-of-band location.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605119 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:13 +00:00
Jacopo Cappellato 05073f29df Upgrade to the most recent version of Freemarker-2.3-gae: this is not an official release yet but it will be soon; I have committed this work, as discussed in the dev list, in order to get help from the community to test this new improved version of Freemarker and provide feedback to the Freemarker community.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605029 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 08:33:04 +00:00
Jacques Le Roux 0f31bcb2a0 Adds a new self signed SSL certificate created on the OFBiz demo VM with own CA following http://httpd.apache.org/docs/current/ssl/ssl_faq.html#realcert
This certificate is valid for 10 years (until May 27 08:43:19 2024 GMT)
Characteristics: C=US, ST=DE, L=Wilmington, O=Apache Software Fundation, OU=Apache OFBiz, CN=ofbiz-vm.apache.org/emailAddress=dev@ofbiz.apache.org
The password is still the same: changeit, I checked: HTTPS works locally

I don't really understand the content and the need of framework/base/cert/ so I only added framework/base/cert/demoCA/newcerts/03.pem and framework/base/cert/README which explains this change


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598544 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 10:46:54 +00:00
Jacques Le Roux e3a6768d56 Reverts r1598505, I will also update the files under framework\base\cert to backport all in one shoot
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598507 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 09:04:38 +00:00
Jacques Le Roux 1f1a5c952c New self signed SSL certificate created on the OFBiz demo VM with own CA following http://httpd.apache.org/docs/current/ssl/ssl_faq.html#realcert
This certificate is valid for 10 years (until May 27 08:43:19 2024 GMT)
Characteristics: C=US, ST=DE, L=Wilmington, O=Apache Software Fundation, OU=Apache OFBiz, CN=ofbiz-vm.apache.org/emailAddress=dev@ofbiz.apache.org
The password is still the same: changeit, I checked: HTTPS works locally


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598505 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 08:58:44 +00:00
Jacques Le Roux 3a6709473f Updates Tomcat to 7.0.54
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598113 13f79535-47bb-0310-9956-ffa450edef68
2014-05-28 19:50:16 +00:00
Adrian Crum 11d9b19b46 Improved some converters to strip the time-of-day from java.sql.Date values. This will help prevent JDBC drivers from changing the date when stored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590301 13f79535-47bb-0310-9956-ffa450edef68
2014-04-26 21:28:07 +00:00
Adrian Crum e23b118575 Fixed a bug in ObjectTypeTests.java: The CachedClassLoader maps the "Date" class name to java.sql.Date, not java.util.Date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590299 13f79535-47bb-0310-9956-ffa450edef68
2014-04-26 21:25:25 +00:00
Jacopo Cappellato c2fd23d0da Upgraded commons-pool to the latest bug fix only release.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1587841 13f79535-47bb-0310-9956-ffa450edef68
2014-04-16 09:38:26 +00:00
Adrian Crum f2799d6e72 Bug fix in ObjectTypeTests - a java.sql.Date instance created in one time zone is not equal to another instance created in another time zone.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585959 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 13:01:18 +00:00
Adrian Crum 0499098732 Modified the String to java.sql.Date conversion. Replace deprecated constructor call with a Calendar implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585958 13f79535-47bb-0310-9956-ffa450edef68
2014-04-09 12:55:00 +00:00
Adrian Crum 70a4757b4b Fixed a bug in rev 1585033. Reported by Gareth Carter on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585574 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 19:45:02 +00:00
Adrian Crum 9291e24ea4 Fixed a bug in String to java.sql.Date conversion. If the Date object includes time information, then the JDBC driver will adjust the date according to the default time zone - causing the wrong date to be stored in some circumstances.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1585033 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 09:46:58 +00:00
Adrian Crum 191fd073b0 Fix for quirky user-selected time zone behavior. Changing the time zone in one session did not update other sessions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583663 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 13:32:12 +00:00
Jacques Le Roux 489877a44d Removes useless empty folders, adds README files with explanations in useful empty folders
This to facilitate the creation of Git repositories where empty folders needs a file in or must be ignored
Especially when you want to keep the OFBiz Subversion repository inside the Git repository (useful for committers)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1580865 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 14:42:52 +00:00
Jacques Le Roux 849bbb3c29 A patch from Antoine Vittecoq for "Form widget/ FTL pagination, Last does not take to last page" https://issues.apache.org/jira/browse/OFBIZ-5575
This issue in pagination can be tested in https://localhost:8443/partymgr/control/findparty (FTL) & https://localhost:8443/webtools/control/FindUtilCache?VIEW_SIZE_1=2&VIEW_INDEX_1=0 (XML Form).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1579277 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 16:15:22 +00:00
Jacopo Cappellato 7d8d938a3b Performance optimization for UtilHttp.getFullRequestUrl method: instead of returning a StringBuffer object (synchronized) it now returns a String (immutable); internally it uses a StringBuilder (lighter because not synchronized) within a private context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570810 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 08:32:28 +00:00
Jacopo Cappellato 52ee5728a4 Upgraded JUEL to 2.2.7 using EL specification 2.2.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570611 13f79535-47bb-0310-9956-ffa450edef68
2014-02-21 15:48:26 +00:00
Adrian Crum c5b041ed6b Update Commons File Upload to 1.3.1.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1565760 13f79535-47bb-0310-9956-ffa450edef68
2014-02-07 18:48:21 +00:00
Jacques Le Roux 4b3a20ac92 Reverts r1564680, keeps geronimo-activation_1.0.2_spec-1.0.jar
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564686 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 09:18:00 +00:00
Jacques Le Roux fcf3b36468 Updates geronimo-activation to 1.1_spec-1.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564680 13f79535-47bb-0310-9956-ffa450edef68
2014-02-05 08:56:42 +00:00
Jacques Le Roux 89f92ff544 Updates geronimo-saaj to _1.3_spec-1.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564493 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 21:09:43 +00:00
Jacques Le Roux 44087a04f0 Update commons-fileupload to 1.3
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564463 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 20:24:14 +00:00
Jacopo Cappellato 9f8bb29787 Some minor simplifications to ComponentContainer: removed some unnecessary overloaded methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1561757 13f79535-47bb-0310-9956-ffa450edef68
2014-01-27 17:19:52 +00:00
Jacques Le Roux 0757ed8a24 A patch from Gareth Carter for "last index for paging is not calculated correctly" https://issues.apache.org/jira/browse/OFBIZ-5497
The last index (used on the last button) is not calculated correctly in ftl or the renderer classes. It currently users floor which works only for list sizes that are not multiples of the view size. When you have a list size which is a multiple of the view size, it does not subtract 1 for zero based index and therefore the last button goes to the last page + 1

Examples

listSize = 1
viewSize = 10
listSize / viewSize = 0.1
floor(0.1) = 0
This one produces the correct value

listSize = 20
viewSize = 10
listSize / viewSize = 2
floor(2) = 2
Last index should be 1 because of zero based index but never occurs

To reproduce, enter a view with a list and paging functionality, the list size must be a multiple of the view size


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560176 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 20:53:29 +00:00
Adrian Crum 6a42559853 Updated XStream library to latest version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557440 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 19:23:58 +00:00
Adrian Crum fe9cd1f776 Added the ability to exclude certain classes from XML serialization/deserialization.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557427 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 17:39:38 +00:00
Jacques Le Roux b3767764d7 Updates java mail-1.4.jar to mail-1.5.1.jar (tests passes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1557410 13f79535-47bb-0310-9956-ffa450edef68
2014-01-11 15:24:10 +00:00