Former-commit-id:e8f4a2f031
[formerly51208e5515
] [formerlyc0c1d56f3a
] [formerlye8f4a2f031
[formerly51208e5515
] [formerlyc0c1d56f3a
] [formerly4ba416aeb3
[formerlyc0c1d56f3a
[formerly 221d0aaf0e19a054387134e72a76a278159bf4d0]]]] Former-commit-id:4ba416aeb3
Former-commit-id:82cdde8491
[formerlycd4185ef5c
] [formerly 413d9d9811179a10639f756b8b4f690d86be7a6a [formerly941337c553
]] Former-commit-id: c69e1900269e630aefc061c2464bc8fea1c9776a [formerlyb6fa9b4858
] Former-commit-id:f52ec0b0a0
80 lines
No EOL
2.2 KiB
XML
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> |