component-load.xml定义了OFBiz的组件载入位置,默认的是通过目录来设置:
<component-loader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd"> <load-components parent-directory="framework"/> <load-components parent-directory="themes"/> <load-components parent-directory="applications"/> <load-components parent-directory="specialpurpose"/> <load-components parent-directory="hot-deploy"/> </component-loader>
其实也可以通过component-location设置具体的组件位置:
<component-loader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd"> <load-components parent-directory="framework"/> <load-components parent-directory="themes"/> <load-components parent-directory="applications"/> <load-components parent-directory="specialpurpose"/> <load-components parent-directory="hot-deploy"/> <load-component component-location="C:/apache-ofbiz-12.04.02/practice"/> </component-loader>