Omaha #3106 Updated deploy and install ant scripts to handle the 14.4.1 repository structure.
Change-Id: I7de7600fbcc6bb6ebc9392aef291babc086f3115 Former-commit-id: 9372afbd268a61e63b2c9ba2b25529e654cfee6e
This commit is contained in:
parent
ab0b1ec047
commit
39a2ec8f46
2 changed files with 61 additions and 28 deletions
|
@ -7,23 +7,41 @@
|
||||||
<not><equals arg1="${wa.to.deploy}" arg2="" /></not>
|
<not><equals arg1="${wa.to.deploy}" arg2="" /></not>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<!-- Determine where we are. -->
|
<dirname property="antfile.dir" file="${ant.file}" />
|
||||||
<!-- actually evaluate the directory instead of using relative pathing. -->
|
<echo message="ANT FILE DIR:${antfile.dir}"/>
|
||||||
<shellscript shell="bash"
|
<dirname property="base.dir" file="${antfile.dir}" />
|
||||||
outputproperty="awips.baseline.directory"
|
<echo message="BASE DIR:${base.dir}"/>
|
||||||
dir="${basedir}">
|
<basename property="base.name" file="${base.dir}"/>
|
||||||
cd ../
|
<echo message="BASE NAME:${base.name}"/>
|
||||||
dirpath=`pwd`
|
<if>
|
||||||
dir=`basename ${dirpath}`
|
<equals arg1="${base.name}" arg2="edexOsgi" />
|
||||||
if [ "${dir}" = "edexOsgi" ]; then
|
<then>
|
||||||
# we are in the distributed development environment
|
<!-- we are in the distributed development environment -->
|
||||||
cd ../
|
<echo message="BUILDING: in distributed development environment"/>
|
||||||
pwd
|
<dirname property="awips.baseline.directory" file="${base.dir}" />
|
||||||
else
|
<dirname property="git.directory" file="${awips.baseline.directory}" />
|
||||||
# all of the projects are in the workspace or one single directory
|
<echo message="GIT.DIRECTORY:${git.directory}"/>
|
||||||
echo ${dirpath}
|
<var name="repository.directories"
|
||||||
fi
|
value="${awips.baseline.directory}" />
|
||||||
</shellscript>
|
<for list="${core.repositories}" param="repo.directory">
|
||||||
|
<sequential>
|
||||||
|
<var name="repository.directories"
|
||||||
|
value="${repository.directories},${git.directory}${file.separator}@{repo.directory}" />
|
||||||
|
</sequential>
|
||||||
|
</for>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<!-- all of the projects are in the workspace or one single directory -->
|
||||||
|
<echo message="BUILDING: in workspace or flattened directory structure"/>
|
||||||
|
<var property="awips.baseline.directory"
|
||||||
|
value="${base.dir}" />
|
||||||
|
<var name="repository.directories"
|
||||||
|
value="${base.dir}" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<echo message="AWIPS.BASELINE.DIRECTORY:${awips.baseline.directory}"/>
|
||||||
|
<echo message="REPOSITORY.DIRECTORIES:${repository.directories}"/>
|
||||||
|
|
||||||
<!-- construct the list of "basedirectories" -->
|
<!-- construct the list of "basedirectories" -->
|
||||||
<propertyselector property="baseline.variables"
|
<propertyselector property="baseline.variables"
|
||||||
|
@ -41,16 +59,20 @@
|
||||||
<propertycopy property="variable.name"
|
<propertycopy property="variable.name"
|
||||||
override="true"
|
override="true"
|
||||||
from="dir.@{index}" />
|
from="dir.@{index}" />
|
||||||
<var name="base.directory"
|
<for list="${repository.directories}" param="repo.directory">
|
||||||
value="${awips.baseline.directory}/${variable.name}" />
|
<sequential>
|
||||||
|
<var name="base.directory"
|
||||||
<if>
|
value="@{repo.directory}/${variable.name}" />
|
||||||
<available file="${base.directory}" type="dir" />
|
<if>
|
||||||
<then>
|
<available file="${base.directory}" type="dir" />
|
||||||
<var name="basedirectories"
|
<then>
|
||||||
value="${base.directory};${basedirectories}" />
|
<echo message="BASE.DIRECTORY:${base.directory}"/>
|
||||||
</then>
|
<var name="basedirectories"
|
||||||
</if>
|
value="${base.directory};${basedirectories}" />
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</for>
|
||||||
|
|
||||||
<!-- Loop through the WA directories, if they exist. -->
|
<!-- Loop through the WA directories, if they exist. -->
|
||||||
<if>
|
<if>
|
||||||
|
|
|
@ -3,6 +3,9 @@ architecture=x86_64
|
||||||
|
|
||||||
includegen.filter=raytheon|noaa\.nws|noaa\.gsd
|
includegen.filter=raytheon|noaa\.nws|noaa\.gsd
|
||||||
|
|
||||||
|
# AWIPSII core repositores required for build
|
||||||
|
core.repositories=ufcore,ufcore-foss
|
||||||
|
|
||||||
# Note: currently, there is a limit of 99 plugin directories.
|
# Note: currently, there is a limit of 99 plugin directories.
|
||||||
dir.01=cave
|
dir.01=cave
|
||||||
dir.02=cots
|
dir.02=cots
|
||||||
|
@ -11,6 +14,14 @@ dir.04=ncep
|
||||||
dir.05=RadarServer
|
dir.05=RadarServer
|
||||||
dir.06=edu
|
dir.06=edu
|
||||||
dir.07=ost
|
dir.07=ost
|
||||||
|
# directories from ufcore
|
||||||
|
dir.08=common
|
||||||
|
dir.09=edex
|
||||||
|
dir.10=features
|
||||||
|
dir.11=viz
|
||||||
|
# directories from ufcore-foss
|
||||||
|
dir.12=lib
|
||||||
|
|
||||||
|
|
||||||
# the directory that contains the localization projects
|
# the directory that contains the localization projects
|
||||||
# in a distributed development environment.
|
# in a distributed development environment.
|
||||||
|
|
Loading…
Add table
Reference in a new issue