In the current build.xml in the ofbiz-Home-folder, the build target is executed for each subdirectory (framework, application, specialpurpose) with the fileset:
<filelist dir="." files="specialpurpose/build.xml"/>
Only for the hot-deploy folder the fileset is quite different:
<fileset dir="${basedir}/hot-deploy" casesensitive="no">
<exclude name="disabled/**"/>
<include name="*/build.xml"/>
</fileset>
This is calling the build.xml directly in the hot-deploy components, which is an error, if you do have several dependent components in there, which needs to get build in the right order. I propose to use the following filelist:
<filelist dir="." files="hot-deploy/build.xml"/>
jleroux: a check is done, if no build.xml file is present in hot-deploy dir, then the build.xml files - if present - in hot-deploy sub-dirs will be used. So the previous, simpler, behaviour is kept as long as you don't need to build hot-deploy components in a specific order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308336 13f79535-47bb-0310-9956-ffa450edef68
In order to run OFBiz in debug mode under Eclipse with hot class reloading, one needs to add the following Converters to the services framework/entity/src/META-INF/services/org.ofbiz.base.conversion.ConverterLoader because they are added at build time by the build.xml of the framework. Thus, they are missing when running OFBiz as an full Eclipse debug launcher.
org.ofbiz.base.conversion.BooleanConverters
org.ofbiz.base.conversion.CollectionConverters
org.ofbiz.base.conversion.DateTimeConverters
org.ofbiz.base.conversion.JSONConverters
org.ofbiz.base.conversion.MiscConverters
org.ofbiz.base.conversion.NetConverters
org.ofbiz.base.conversion.NumberConverters
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308085 13f79535-47bb-0310-9956-ffa450edef68
This is a patch for allowing to run OFBiz in debug mode,i.e with -DDEBUG=true on the JVM arguments, and avoid to exit from the process when a Error or a StartupException occurs.
jleroux: replaced tabs by 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308078 13f79535-47bb-0310-9956-ffa450edef68
If you create a PriceRule and add an action of type "PRICE_POD" (Percent of default price) I read this as:
"take the default price and give an amount of x% to that"
These rules are applied within the service "calculateProductPrice" (specifically in PriceServices.calcPriceResultFromRules). It calculates the amount of discount using the default price (as specified by the action of the rule). But then it adds this discount to the listPrice instead of the defaultPrice.
An example:
listPrice = 100,
defaultPrice = 10,
rule says you give 10% of defaultPrice,
modifyAmount = -1 (this is the correct discount amount)
result would be 100-1 = 99.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308063 13f79535-47bb-0310-9956-ffa450edef68
There is no productStoreId in the session for an user of a backend application, and ProductStoreEmailSetting is not available. This is the reason.
However we can use default template and default sender's address from general.properties in this case.
Also removes some dead code.
jleroux: this uses "general.properties", "defaultFromEmailAddress". So to work correctly it still needs "defaultFromEmailAddress" (default =ofbiztest@example.com), "mail.smtp.relay.host" (default =localhost) and such to be set correctly... In other words the message "A new password has been created and sent to you. Please check your Email." could even more misleading if people are not aware about setting SMTP
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307895 13f79535-47bb-0310-9956-ffa450edef68
Includes the tag <meta name="generator" content="Apache OFBiz - eCommerce"> into the eCommerce theme.
This will help improve visibility when searching for implemented webshops.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307848 13f79535-47bb-0310-9956-ffa450edef68
When you use sort-field, you reorder only the form begin or you need list all file if you want reordered the end form.
Example
<form>
<field name="a"/>
<field name="b"/>
<field name="c"/>
<field name="d"/>
</form>
If you want put c at the end :
<form>
<field name="a"/>
<field name="b"/>
<field name="c"/>
<field name="d"/>
<sort-order>
<sort-field name="a"/>
<sort-field name="b"/>
<sort-field name="d"/>
<sort-field name="c"/>
</sort-order>
</form>
with the patch
<form>
<field name="a"/>
<field name="b"/>
<field name="c"/>
<field name="d"/>
<sort-order>
<last-field name="c"/>
</sort-order>
</form>
It's really useful for inherited forms when you adding new fields, you just use last-field for instance for submit button.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307784 13f79535-47bb-0310-9956-ffa450edef68
The transform is now used to pass the "postalAddress" to the context of the postal address formatter screen.
This should fix the issue, reported by Chatree, that prevented to render the localized address when the screen was rendered from the send mail service (no request object was available).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307288 13f79535-47bb-0310-9956-ffa450edef68
Moved the "stop" task a few lines below to group together all the tasks dealing with the startup of OFBiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306777 13f79535-47bb-0310-9956-ffa450edef68
It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306732 13f79535-47bb-0310-9956-ffa450edef68
Billing error messages are displayed in shipping address section, instead of billing address section
Just a element "id" change..
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305053 13f79535-47bb-0310-9956-ffa450edef68
Currently there is no way for a customer to view her/his reviews created in the ecommerce application. This functionality is added with the attached patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305038 13f79535-47bb-0310-9956-ffa450edef68
The xsd for the resource xml files is invalid. In addition, the format of the value of the xml:lang attribute in resource xml files is invalid, according to the xml standard.
The attached patch:
provides a valid xsd
updates UtilProperties and the Label Manager to deal with the correct formatting of the xml:lang value, while still working with the old format, following Adrian Crum's recommendation on the mailing list
includes simple unit tests for UtilProperties to ensure it does work with both formats
changes the Label Manager to include a reference to the new xsd, and to use the correct format of the xml:lang value, when writing a resource xml file.
Some minor code cleanups to these files.
jleroux: the base test suite was successfully run locally once UtilIOTests have been commented out (still an issue with it on Windows)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305004 13f79535-47bb-0310-9956-ffa450edef68
* OFBiz admin port and key are now passed as system properties to the "run", "run-debug" and "stop" tasks: the three tasks are now more consistent with the platform dependent startofbiz.sh/bat and stopofbiz.sh/bat scripts
* start/stop tasks are now grouped under the same section of the build.xml file; added a new section for data setup scripts (no functional changes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304982 13f79535-47bb-0310-9956-ffa450edef68