awips2/edexOsgi/build.edex/deploy-common/deploy-setup.xml
Steve Harris 745f2c6409 13.1.2-2 baseline
Former-commit-id: e8f4a2f031 [formerly 51208e5515] [formerly c0c1d56f3a] [formerly e8f4a2f031 [formerly 51208e5515] [formerly c0c1d56f3a] [formerly 4ba416aeb3 [formerly c0c1d56f3a [formerly 221d0aaf0e19a054387134e72a76a278159bf4d0]]]]
Former-commit-id: 4ba416aeb3
Former-commit-id: 82cdde8491 [formerly cd4185ef5c] [formerly 413d9d9811179a10639f756b8b4f690d86be7a6a [formerly 941337c553]]
Former-commit-id: c69e1900269e630aefc061c2464bc8fea1c9776a [formerly b6fa9b4858]
Former-commit-id: f52ec0b0a0
2013-01-06 14:32:24 -06:00

80 lines
No EOL
2.2 KiB
XML

<project>
<target name="setup">
<!-- read the properties -->
<property file="${basedir}/edex/common.properties" />
<property file="${basedir}/edex/developer.properties" />
<condition property="wa.enabled">
<not><equals arg1="${wa.to.deploy}" arg2="" /></not>
</condition>
<!-- Determine where we are. -->
<!-- actually evaluate the directory instead of using relative pathing. -->
<shellscript shell="bash"
outputproperty="awips.baseline.directory"
dir="${basedir}">
cd ../
dirpath=`pwd`
dir=`basename ${dirpath}`
if [ "${dir}" = "edexOsgi" ]; then
# we are in the distributed development environment
cd ../
pwd
else
# all of the projects are in the workspace or one single directory
echo ${dirpath}
fi
</shellscript>
<!-- construct the list of "basedirectories" -->
<propertyselector property="baseline.variables"
delimiter="${path.separator}"
match="dir.([0-9][0-9])"
select="\1"
casesensitive="true" />
<var name="basedirectories"
value="${awips.baseline.directory}" />
<for list="${baseline.variables}" param="index"
delimiter="${path.separator}">
<sequential>
<propertycopy property="variable.name"
override="true"
from="dir.@{index}" />
<var name="base.directory"
value="${awips.baseline.directory}/${variable.name}" />
<if>
<available file="${base.directory}" type="dir" />
<then>
<var name="basedirectories"
value="${base.directory};${basedirectories}" />
</then>
</if>
<!-- Loop through the WA directories, if they exist. -->
<if>
<isset property="wa.enabled" />
<then>
<for list="${wa.to.deploy}" param="wa"
delimiter="${path.separator}">
<sequential>
<var name="wa.base.directory"
value="@{wa}/${variable.name}" />
<if>
<available file="${wa.base.directory}"
type="dir" />
<then>
<var name="basedirectories"
value="${wa.base.directory};${basedirectories}" />
</then>
</if>
</sequential>
</for>
</then>
</if>
</sequential>
</for>
</target>
</project>