libreccm-legacy/tools-ng/ecdc/scriptlib/build-common.xml

87 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="common">
<!-- build-common
defines essential system variables and reads configuration property
files which configure the specialized scripts.
System variable list:
ccm.project.dir
ccm.tools.xsl.dir
ccm.tools.xsd.dir
ccm.tools.lib.dir
ccm.build.lib.dir
ccm.tools.rh-jdo.dir
ccm.context.dir
ccm.home
shared.lib.dist.dir DEPRECATED prebuild modules no longer used
webapp.dist.dir DEPRECATED prebuild modules no longer used
-->
<fail message="Property ccm.project.dir not set "
unless="ccm.project.dir" />
<condition property="correct.ant.version">
<antversion atleast="1.7.0" />
</condition>
<!-- xsl schemas to generate build tools for the specific module set -->
<property name="ccm.tools.xsl.dir"
value="${ccm.project.dir}/tools-ng/common/xsl" />
<!-- xsd schemas to validate xml configuration files -->
<property name="ccm.tools.xsd.dir"
value="${ccm.project.dir}/tools-ng/common/xsd" />
<!-- several java programs needed for processing, esp. xml files -->
<property name="ccm.tools.lib.dir"
value="${ccm.project.dir}/tools-ng/common/lib" />
<path id="ccm.tools.classpath">
<fileset dir="${ccm.tools.lib.dir}" includes="*.jar" />
</path>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${ccm.tools.lib.dir}/ant-contrib.jar"/>
</classpath>
</taskdef>
<!-- Read configuration files.
First from project dir, then add requirred defaults from ecdc dir -->
<!-- Specifies the test application server runtime managed by build-runtime.xml
Provides app.server.*.dir props used by build-runtime and build-project -->
<property file="${ccm.project.dir}/local.runtime.properties" />
<property file="${ccm.ecdc.conf.dir}/runtime.properties" />
<!-- Specifies the compiler & build options and the junit test environment
Provides compile.* build.* test.* properties -->
<property file="${ccm.project.dir}/local.build.properties" />
<property file="${ccm.ecdc.conf.dir}/build.properties" />
<!-- Specifies the ccm build environment
Provides ccm.* -->
<property file="${ccm.project.dir}/local.ccm.properties" />
<property file="${ccm.ecdc.conf.dir}/ccm.properties" />
<property name="ccm.build.lib.dir" value="${ccm.project.dir}/tools-ng/devel/lib"/>
<property name="ccm.tools.lib.dir" value="${ccm.project.dir}/tools-ng/common/lib"/>
<property name="ccm.tools.rh-jdo.dir" value="${ccm.project.dir}/tools-ng/common/classes"/>
<echo>Project file: ${ccm.bundle.folder}/cfg/project.xml</echo>
<!-- DEPRECATED used by prebuild modules only -->
<property name="shared.lib.dist.dir" value="${ccm.tools.lib.dir}"/>
<!-- DEPRECATED used by prebuild modules only -->
<property name="webapp.dist.dir" value="${ccm.project.dir}/distribution"/>
<!-- http://antelope.tigris.org/ -->
<!--
<taskdef classpathref="ccm.tools.classpath" resource="ise/antelope/tasks/antlib.xml" />
-->
</project>