awips2/RadarServer/build.rcm/substitute.xml
2017-04-21 18:33:55 -06:00

101 lines
No EOL
4.1 KiB
XML

<!--
This_software_was_developed_and_/_or_modified_by_Raytheon_Company,
pursuant_to_Contract_DG133W-05-CQ-1067_with_the_US_Government.
U.S._EXPORT_CONTROLLED_TECHNICAL_DATA
This_software_product_contains_export-restricted_data_whose
export/transfer/disclosure_is_restricted_by_U.S._law._Dissemination
to_non-U.S._persons_whether_in_the_United_States_or_abroad_requires
an_export_license_or_other_authorization.
Contractor_Name:________Raytheon_Company
Contractor_Address:_____6825_Pine_Street,_Suite_340
________________________Mail_Stop_B8
________________________Omaha,_NE_68106
________________________402.291.0100
See_the_AWIPS_II_Master_Rights_File_("Master_Rights_File.pdf")_for
further_licensing_information.
-->
<!--
* Defines substitutions that may be performed during the deploy process.
*
* Current substitutions supported based on the installer flag:
* Macro flag set flag not set
* =========== ================= =============================
* DB_ADDR $databaseAddress localhost
* DB_PORT $databasePort 5432
* PY_HOME $pythonHome $HOME/awips
*
* These substitutions are enabled by nesting the following in a <copy> tag
* <filterset refid="installer.filter.set"/>
*
* To set the substitution flag, add "-Dinstaller=true" to the build command
* line.
*
* SOFTWARE HISTORY:
* Date PTR# INIT DESCRIPTION
* 06May2008 1080 MW Fegan Initial Creation.
-->
<!-- Set the database host name for the copy filter -->
<property name="def.db.host" value="localhost" />
<condition property="db.host" value="$databaseAddress" else="${def.db.host}">
<isset property="installer"/>
</condition>
<!-- Set the database port for the copy filter -->
<property name="def.db.port" value="5432" />
<condition property="db.port" value="$databasePort" else="${def.db.port}">
<isset property="installer"/>
</condition>
<!-- set the Python home location for the copy filter -->
<property name="def.py.home" value="${user.HOME}/awips" />
<condition property="py.home" value="%{PYTHON_INSTALL}%" else="${def.py.home}">
<isset property="installer"/>
</condition>
<!-- Set the database machine name for the copy filter -->
<property name="def.db.machine.name" value="localhost" />
<condition property="db.machine.name" value="$dbMachineName" else="${def.db.machine.name}">
<isset property="installer"/>
</condition>
<!-- Set the edex master server name for the copy filter -->
<property name="def.edex.server" value="localhost" />
<condition property="edex.server" value="$edexServer" else="${def.edex.server}">
<isset property="installer"/>
</condition>
<!-- Set the data archive location for the copy filter -->
<property name="def.data.arch.loc" value="/tmp/sbn" />
<condition property="data.arch.loc" value="$archiveLocation" else="${def.data.arch.loc}">
<isset property="installer"/>
</condition>
<!-- set the Java home location for the copy filter -->
<!-- this one is used for script substitutions -->
<property name="def.java.home" value="$awips_home/java" />
<condition property="sub.java.home" value="%{JAVA_INSTALL}%" else="${def.java.home}">
<isset property="installer"/>
</condition>
<!-- Create the copy filter -->
<!-- filter set -->
<filterset id="installer.filter.set">
<filter token="DB_ADDR" value="${db.host}"/>
<filter token="DB_PORT" value="${db.port}"/>
<filter token="PY_HOME" value="${py.home}" />
<filter token="DB_MACHINE" value="${db.machine.name}" />
<filter token="EDEX_SERVER" value="${edex.server}" />
<filter token="JAVA_HOME" value="${sub.java.home}"/>
</filterset>
<!-- Special copy filter for config.xml -->
<!-- this is required because config.xml contains an '@' in a url -->
<!-- note that this filter requires $TOKEN$ in the target file -->
<filterset id="config.xml.filter.set" begintoken="$" endtoken="$">
<filter token="EDEX_SERVER" value="${edex.server}" />
<filter token="DATA_ARCH_LOC" value="${data.arch.loc}"/>
</filterset>