Improving DeathMeat's work.

Now properties are loaded in utils_dev/properties.xml and
and imported from there to every other build file.
This commit is contained in:
kontro 2007-01-30 10:13:17 +00:00
parent 85d0dc6adb
commit 3a3c3fa672
16 changed files with 31 additions and 15 deletions

View File

@ -14,7 +14,7 @@
<property name="dist.dir" value="."/>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">

View File

@ -17,7 +17,7 @@
<!-- Set global properties for this build -->
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property file="build.properties"/>
<property name="plugins.dir" value="plugins"/>
<!--property name="compiere.dir" value="${env.COMPIERE_HOME}"/-->

View File

@ -18,7 +18,7 @@
<property name="dist.dir" value="../lib"/>
<property name="jar.path" value="../lib"/>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">

View File

@ -13,7 +13,7 @@
<!-- set global properties for this build -->
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>

View File

@ -11,7 +11,7 @@
</description>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="adempiere.dir" value="../"/>
<property name="web.dir" value="../../adempiereWeb"/>
<property name="dbStartup.dir" value="../db/database/Startup"/>

View File

@ -18,7 +18,7 @@
<property name="jar.name" value="CLooks"/>
<property name="version" value="_13"/>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">

View File

@ -12,7 +12,7 @@
<!-- set global properties for this build -->
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>

View File

@ -7,7 +7,7 @@
<project name="adempiereApps" default="main" basedir=".">
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="src.main.dir" value="${src.dir}/main"/>

View File

@ -7,7 +7,7 @@
<project name="adempiereRoot" default="main" basedir=".">
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="xdoclet.home" value="../tools" />
<property name="xdoclet.force" value="false" />

View File

@ -9,7 +9,7 @@
<property name="build.dir" value="build"/>
<property name="dist.dir" value="."/>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<path id="project.class.path">

View File

@ -24,7 +24,7 @@
<property name="jboss.dir" value="../jboss"/>
<property name="dist.dir" value="../lib"/>
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<!-- set path to include the necessary jar files for javac -->
<path id="project.class.path">

View File

@ -1,4 +1,4 @@
env.ADEMPIERE_SOURCE=/home/jgubo/Development/Java/adempiere/trunk
env.ADEMPIERE_SOURCE=${adempiere.base}
env.ADEMPIERE_ROOT=${env.ADEMPIERE_SOURCE}/adempiere
env.ADEMPIERE_HOME=${env.ADEMPIERE_ROOT}/Adempiere
env.ADEMPIERE_INSTALL=${env.ADEMPIERE_SOURCE}/adempiere/install

View File

@ -8,7 +8,7 @@
</description>
<!-- set global properties for this build -->
<!--<property environment="env"/>-->
<property file="./utils_dev/build.properties"/>
<import file="./properties.xml"/>
<property name="src" value="src"/>
<property name="build.dir" value="build"/>
<target name="init" description="initialization target">

16
utils_dev/properties.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version='1.0'?>
<project name="properties" basedir=".">
<description>
This project file sets all properties needed during build and
installation. This file is imported in all other build.xml
files. This file provides a central place for managing
properties.
</description>
<dirname property="adempiere.base" file="${ant.file.properties}/.."/>
<property file="${user.home}/.adempiere.properties"/>
<property file="${adempiere.base}/utils_dev/build.properties"/>
<!-- Here we could add most common buildpaths -->
</project>

View File

@ -7,7 +7,7 @@
<project name="webCM" default="main" basedir=".">
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="src.main.dir" value="${src.dir}/main"/>

View File

@ -7,7 +7,7 @@
<project name="adempiereWebStore" default="main" basedir=".">
<!--<property environment="env"/>-->
<property file="../utils_dev/build.properties"/>
<import file="../utils_dev/properties.xml"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="src.main.dir" value="${src.dir}/main"/>