<project name="config">
    <!-- XAL Home is where this file resides -->
    <dirname property="xal.home" file="${ant.file.config}" />
    
    <property environment="env" />
    
	<property name="build.root" value="${xal.home}/build" />
	<property name="build.compile.root" value="${build.root}/compile" />
	<property name="build.compile.core.root" value="${build.compile.root}/core" />
	<property name="build.compile.core.test.root" value="${build.compile.root}/test/core" />
	<property name="build.jar.root" value="${build.root}/jar" />
	<property name="build.tests.root" value="${build.root}/tests" />
            
    <!-- Determine the path to the junit jar, otherwise use the standard UNIX location. -->
    <condition property="junit.jar.path" value="${env.JUNIT_JAR_PATH}" else="/usr/share/java/junit.jar">
        <isset property="env.JUNIT_JAR_PATH" />
    </condition>
    
    <!-- Determine the installation directory using the environment variable if defined, otherwise place the dist directory under the build root -->
    <condition property="install.root" value="${env.XAL_INSTALL_ROOT}" else="${build.root}/dist">
        <isset property="env.XAL_INSTALL_ROOT" />
    </condition>
</project>
<project name="config">
    <!-- XAL Home is where this file resides -->
    <dirname property="xal.home" file="${ant.file.config}" />
    
    <property environment="env" />
                
    <!-- Determine the path to the junit jar, otherwise use the standard UNIX location. -->
    <condition property="junit.jar.path" value="${env.JUNIT_JAR_PATH}" else="/usr/share/java/junit.jar">
        <isset property="env.JUNIT_JAR_PATH" />
    </condition>
    
    <!-- Determine the build directory using the environment variable if defined, otherwise place the build root under xal home -->
    <condition property="build.root" value="${env.XAL_BUILD_ROOT}" else="${xal.home}/build">
        <isset property="env.XAL_BUILD_ROOT" />
    </condition>
    
    <!-- Determine the installation directory using the environment variable if defined, otherwise place the dist directory under the build root -->
    <condition property="install.root" value="${env.XAL_INSTALL_ROOT}" else="${build.root}/dist">
        <isset property="env.XAL_INSTALL_ROOT" />
    </condition>
    
    <property name="build.compile.root" value="${build.root}/compile" />
	<property name="build.compile.core.root" value="${build.compile.root}/core" />
	<property name="build.compile.core.test.root" value="${build.compile.root}/test/core" />
	<property name="build.jar.root" value="${build.root}/jar" />
	<property name="build.tests.root" value="${build.root}/tests" />
</project>
Allow the build root directory to be optionally specified in an environment variable.
Allow the build root directory to be optionally specified in an environment variable.
