Commit Graph
20945 Commits
Author SHA1 Message Date
Jacques Le Roux c656003bb3 Fixes a typo in previous commit, better indent and place of delete task
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626291 13f79535-47bb-0310-9956-ffa450edef68
2014-09-19 18:34:45 +00:00
Jacques Le Roux 52b84466c8 Commit for "Integrate ant build-dev target in build target" https://issues.apache.org/jira/browse/OFBIZ-5779
This completes the build-dev Ant target which was not yet called by the main build target, it's now done. This commit adds the todos.exe and patch.exe commands in the tools directory for patch to work on Windows w/o having to have it installed and in the path. todos.exe should not be needed in most cases, but better be safe than sorry.

It's a long time this was itching me. The main reason I did not do it already is I did not find an easy way to patch on Windows in Ant.

The documentation at https://cwiki.apache.org/confluence/display/OFBIZ/Addressing+Custom+Requirements+In+OFBiz has been updated

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626278 13f79535-47bb-0310-9956-ffa450edef68
2014-09-19 17:22:21 +00:00
Jacopo Cappellato 7ad9702ecb Trivial change to the format of an INFO message in order to be consistent with the format of the logs produced by the ServiceDispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626125 13f79535-47bb-0310-9956-ffa450edef68
2014-09-19 04:49:45 +00:00
Jacopo Cappellato 91573e60fb Attempt to improve the code that setups the Tomcat instance, the engine, hosts and contexts: this is still a work in progress but at least now the Tomcat instance is initialized without warning messages as was before.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626060 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 19:48:01 +00:00
Jacopo Cappellato e0fc2b318c Simplified and improved the logic to setup the Tomcat connectors: the logic was overly complex and messed up (probably after all the various upgrades to new Tomcat versions), there were a series of parameters that could not be set, some hardcoded values, some old and no more used (by Tomcat) parameters.
Improved the information logged about the actual parameters set for the connectors.
Removed Javolution from CatalinaContainer.
Cleaned up the connector configuration file: removed no more used parameters, commented out some parameters (that didn't change the default), commented out some parameters in order to use the Tomcat default values that may improve the performance (e.g. maxThreads in OFBiz was set to a lower value than the default one of newer Tomcat releases and this limits the throughput in default OFBiz setups), updated URLs to Tomcat documentation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625919 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 09:00:15 +00:00
Jacques Le Roux 85244180eb Finally keeps Release.revision date simple in footer as suggested by Scott on Dev ML
No needs to over-engineering things there. A bit more smart than before though
This reverts r1625006 and r1624886 and adds CommonBuiltOn and better svninfo and gitinfo targets
I just regret that I lose the formatting effort I did in footer.ftl files, but I have not the guts to do it again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625907 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 07:46:14 +00:00
Jacques Le Roux 5ebc58cc6a An excerpt of a patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations" https://issues.apache.org/jira/browse/OFBIZ-5764
jleroux: some changes I spotted in Nick Ho's patch which sounded sound to me. Some groups of label internal ending white spaces would have been caught by HTML rendering, but anyway better like that.
I also fixed a number of wrong line returns. And found duplicates zh labels entries that I will report to Nick Ho to fix. And finally fixed some errors introduced by Nick Ho I spotted, I hope there are not too much left :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625893 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 05:54:04 +00:00
Jacques Le Roux 3b118d4842 An excerpt of a patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations" https://issues.apache.org/jira/browse/OFBIZ-5764
added/revised zh-TW translations in the framework, applications and specialpurpose folders to have consistent, commonly-used meaningful terms in Traditional Chinese.

jleroux: from Nick Ho's patch I have extracted only the Chinese changes, w/o the proposed  dash to underscore changes
This contains notably this 14 "zh" (not "sh-TW") changes:
<value xml:lang="zh">人将由电子邮件接受一个临时密码。</value><!-- was 客户将通过电子邮件收到一个临时密码。 -->
<value xml:lang="zh">合计属于公司: </value>
<value xml:lang="zh"> 完整文本:${fullText}</value>
<value xml:lang="zh">供货商佣金百分比</value>
<value xml:lang="zh">文本大小</value>
<value xml:lang="zh">值</value>
<value xml:lang="zh">算子</value>
<value xml:lang="zh">不能转移已序列化的库存。</value>
<value xml:lang="zh">货运收据</value>
<value xml:lang="zh">获取标识为 ${productStoreShipMethId} 的产品店铺送货方法(ProductStoreShipmentMeth)时出错:${errorString}</value>
<value xml:lang="zh">中国人民币元</value>
<value xml:lang="zh">如果选择"specify other",下拉框旁边会出现文本框。参考form的drop-down元素的other-field-size属性说明</value>
<value xml:lang="zh">文本消息</value>
<value xml:lang="zh">能够收到和解析XML消息,但是BSR->NOUN(买卖关系->名词) ${bsrNoun} 和/或 BSR->VERB(买卖关系->动词) ${bsrVerb} 是空的</value>
I have no competency to judge these changes, but from previous Shi Jinghai's feedback I believe there are OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625816 13f79535-47bb-0310-9956-ffa450edef68
2014-09-17 20:44:07 +00:00
Jacques Le Roux ce7805dd45 Better way for deployed-date-time ant target, now deployed-on
Still in discussion in dev ML, notably if we should backport

Put back the CommonDepth label inadvertently removed, thanks to Scott's review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625006 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 12:08:08 +00:00
Jacques Le Roux 7241a35012 No functional changes, better JavaDoc only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625001 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 11:47:19 +00:00
Jacques Le Roux 70a364f81c Adds an isFile() method in FileUtil class.
It checks if the specified fileName exists and is a file (not a directory)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624996 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 11:02:35 +00:00
Jacques Le Roux ecfcd44d06 Adds deployed-date-time and clean-deployed-date-time targets. To set the date and time of last deployment info in the footer
Puts a check on svinfo and gitinfo (only used if it's a local copy)
Adds and uses CommonDeployedThe label in footer.ftl with the new deployed-date-time  target
Uses CommonPoweredBy in bizznesstime footer.ftl
Minor changes and formatting in the footer.ftl files
Better French label for CommonPoweredBy


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624886 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 17:56:34 +00:00
Jacques Le Roux 1c32c00b3e Fixes a bug introduced with commits for OFBIZ-4902.
When you replace the Freemarker if_exists built-in with the ! operator, when the ! is followed by a + you need to evaluate the expression conditioned by the ! 1st. Else the following chars are used as default value. In other words, you need to put parenthesis around the expression including the ! operator
I tested with tomahawk/includes/appbarClose.ftl and header.ftl files of bluelight and droppingcrumbs themes
I then applied the same scheme on catalog/categorydetail.ftl, party/editShoppingList.ftl, ebaystore/store/returnPolicy.ftl and party/findparty.ftl w/o testing. I guess it's ok
I did not find the same scheme elsewhere

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624876 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 17:22:18 +00:00
Jacques Le Roux 6a26060c20 No functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624817 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 08:53:33 +00:00
Jacques Le Roux ea994aee40 OFBIZ-5770 - Removes the harcoded ports related with service locations introduced with OFBIZ-4794
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624809 13f79535-47bb-0310-9956-ffa450edef68
2014-09-14 08:37:46 +00:00
Jacopo Cappellato c80170456d Fixed the regression that Jacques introduced with the work on portOffset when the immutability of ServiceLocation was broken; now the class is thread-safe again.
However the portOffset code, before and after my fix, is really ugly and should be reverted completely: the "8080" and "1099" ports, that are configurable in OFBiz, are hardcoded in the portOffset code and so this code can only work when OFBiz is executed with the default ports.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624767 13f79535-47bb-0310-9956-ffa450edef68
2014-09-13 17:05:03 +00:00
Jacopo Cappellato 1a71a69ea6 Removed the ClassLoaderContainer: it is no more used.
Moved the portOffset field from ClassLoaderContainer to the Start/Config class.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624700 13f79535-47bb-0310-9956-ffa450edef68
2014-09-13 06:57:02 +00:00
Jacopo Cappellato fa8115dba5 Removed the custom CachedClassLoader and related artifacts in favour of a simpler bootstrap process and a simpler classpath tree; now the classpath tree is made of: bootstrap classloader (primordial+ext) -> system classloader (aka applications or classpath classloader) -> two custom classloaders (one loads the framework/base classes and one loads all the other classes) -> Webapp classloaders (one per web application).
Junit tests are included. The two custom classloaders could be merged into one but this will be addressed in a second phase because it will require some changes to the bootstrap componenr and process.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624549 13f79535-47bb-0310-9956-ffa450edef68
2014-09-12 13:49:17 +00:00
Adrian Crum bf360c3d37 Fix FOP A4 page size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624538 13f79535-47bb-0310-9956-ffa450edef68
2014-09-12 13:18:13 +00:00
Jacques Le Roux 7b0fc305c9 Ant svninfo target adds now a date (in a raw format) after the Release.revision.
Nobody seems against and I have no idea on how to format the date there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624278 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 13:10:02 +00:00
Vikas Mayur 31e2bf5642 Use the prop() method to change/retrieve DOM properties like checked, disabled state of form elements as recommended in jQuery API.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624244 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 10:03:34 +00:00
Jacopo Cappellato 18b5ac49fa Fixed a few issues in the unit tests of the specialpurpose/lucene component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1624217 13f79535-47bb-0310-9956-ffa450edef68
2014-09-11 07:42:55 +00:00
Jacopo Cappellato 9be3230d22 Removed unused jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623738 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:19:39 +00:00
Jacques Le Roux 8e7dac0c09 I found convenient to have an icon in Windows File explorer for my local OFBiz checkouts, must ignore it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623514 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 19:42:10 +00:00
Jacques Le Roux b42d3e4779 I found convenient to have an icon in Windows File explorer for my local OFBiz checkouts, must ignore it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623375 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 12:32:29 +00:00
Jacques Le Roux 8f8a5ce868 Updates from poi-3.9-20121203.jar to poi-3.10.1-20140818.jar for security reasons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623370 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 12:27:35 +00:00
Jacques Le Roux a61be3e0ff A patch from Shi Jinghai for "Add/Revise Traditional Chinese (zh-TW) translations in framework" https://issues.apache.org/jira/browse/OFBIZ-5737
I fixed the duplicated zh:
<value xml:lang="zh">分类页面</value>
<value xml:lang="zh">分類頁面</value>
to
<value xml:lang="zh">分类页面</value>
<value xml:lang="zh_TW">分類頁面</value>
in this patch.

Others are corrections on zh labels thank to Nick Ho's translation.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623359 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 11:13:00 +00:00
Jacopo Cappellato 189b8a4b34 A series of simplifications, cleanups of old code, and improvements to the code that setup the class paths for the OFBiz classloaders; the former code was setting the same jars (e.g. ofbiz.jar and all the base libs) in both the parent/child classloaders; it was unnecessarily setting the classpath system property when not required/useful.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623352 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 10:38:28 +00:00
Jacopo Cappellato 12303aa5a4 Removed the "rmi" loader from test startup configuration: it was loading the ComponentContainer two times.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623305 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 06:51:22 +00:00
Jacopo Cappellato 4483e59e1d removed unused old file in the catalina component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623268 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 04:51:55 +00:00
Jacopo Cappellato 4833915d0d Removed unused jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623042 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 15:04:31 +00:00
Jacopo Cappellato 3c76aa4b89 Removed unused jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623005 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 12:35:38 +00:00
Jacopo Cappellato c50eb3abfb Removed three asm jars not used by OFBiz code or any other jars in the OFBiz trunk.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622996 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 10:31:29 +00:00
Jacopo Cappellato 943b173f43 In my last commit I forgot to remove the Velocity jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622982 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 07:01:12 +00:00
Jacopo Cappellato c907d4dbe2 Removed old, not maintained and never really used integration with the Apache Velocity template engine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622980 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:57:19 +00:00
Jacopo Cappellato 281209d0d1 Removed unused and not maintained integration with DataVision.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622979 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:43:41 +00:00
Jacopo Cappellato 75fe5a9107 Removed the old UtilJ2eeCompat util class that was probably created for compatibility with some old application servers.
UtilJ2eeCompat was used to figure out, by checking the servlet container implementation, if the response should be sent using a Writer or a OutputStream; a Writer was used for Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity and an OutputStream was used for all the other servlet containers.

However accordingly to the Servlet api:

ServletResponse.getWriter():
         Returns a PrintWriter object that can send character text to the client.
ServletResponse.getOutputStream():
         Returns a ServletOutputStream suitable for writing binary data in the response.

Based on this getWriter() should always be used (for html pages) in all the containers, not just Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:32:25 +00:00
Jacques Le Roux 5451d2f255 Fixes <value xml:lang="zh_TW"> duplicates in CommonUiLabels.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622837 13f79535-47bb-0310-9956-ffa450edef68
2014-09-06 09:07:01 +00:00
Scott Gray 3778bb24f4 Replace dead code with a try/catch block that could actually get hit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622779 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 20:01:28 +00:00
Scott Gray 9ee6b36638 Add/correct some generics markup and remove some unused SuppressWarnings annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622778 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 19:51:56 +00:00
Scott Gray 0459cd590b Removed reference to a jar file removed with the upgrade to Log4j2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622771 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 19:42:16 +00:00
Jacques Le Roux 59c004530a A patch from Julien NICOLAS for "Wrong label in Product Config Item" https://issues.apache.org/jira/browse/OFBIZ-5753
In the screen Product Config, when you want to add a componant to your config option, the label is wrong because it show : Add Configurations and not Add a component.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622672 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 10:11:54 +00:00
Jacopo Cappellato 0136f12d3a Removed some obsolete properties set at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622468 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 12:40:15 +00:00
Jacopo Cappellato 0a5af77359 Moved the constructor at the top of the class, removed 2 static methods that were used to construct the object and embedded the logic in the constructor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622441 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 10:01:07 +00:00
Jacopo Cappellato 1c904a98d8 The Config class, that was used as an immutable object, is now effectively immutable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622427 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 09:05:32 +00:00
Jacopo Cappellato 8796e166d0 Removed unused field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622412 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 07:44:41 +00:00
Jacopo Cappellato b324c22bcc Misc cleanups to remove dead code (that could never run or was not used), made a series of fields private and/or final, added some comments, formatting fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622409 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:47:31 +00:00
Jacopo Cappellato d4d1d92fff Conversion from FastList to ArrayList
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622407 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:25:05 +00:00
Jacopo Cappellato f041056b9f removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622406 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 06:23:29 +00:00
Adrian Crum c84824d1a7 A code cleanup/reorganization in the service engine.
The LocalDispatcher is supposed to represent the state of a single application, but that state was split between LocalDispatcher and DispatchContext. In addition, both classes shared a lot of fields.

This commit moves application state to LocalDispatcher and DispatchContext becomes a lightweight container for objects service implementations need to use.

In addition, some minor thread-safety issues were fixed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622256 13f79535-47bb-0310-9956-ffa450edef68
2014-09-03 13:45:44 +00:00