78462bce by Adam Heath

Issue #BFP-1928: Now we look in several different places for a possible

ofbiz.home.dir, and use the first one found.  Setting ofbiz.home.dir
from the command line, or from a parent, still works.
1 parent 4985f30a
Showing 1 changed file with 14 additions and 1 deletions
......@@ -19,7 +19,20 @@ under the License.
-->
<project name="nginx-uploader" default="jar" basedir=".">
<property name="ofbiz.home.dir" value="../ofbiz"/>
<first id="possible.ofbiz.home.common.xml">
<resources>
<fileset dir="..">
<include name="ofbiz/common.xml"/>
</fileset>
<fileset dir="/">
<include name="srv/ofbiz-upstream/common.xml"/>
<include name="opt/ofbiz-upstream/common.xml"/>
<include name="job/ofbiz-upstream/common.xml"/>
</fileset>
</resources>
</first>
<dirname property="possible.ofbiz.home.dir" file="${toString:possible.ofbiz.home.common.xml}"/>
<property name="ofbiz.home.dir" value="${possible.ofbiz.home.dir}"/>
<import file="${ofbiz.home.dir}/common.xml"/>
<!-- ================================================================== -->
......