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>
|
||||
</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>
|
||||
<dirname property="antfile.dir" file="${ant.file}" />
|
||||
<echo message="ANT FILE DIR:${antfile.dir}"/>
|
||||
<dirname property="base.dir" file="${antfile.dir}" />
|
||||
<echo message="BASE DIR:${base.dir}"/>
|
||||
<basename property="base.name" file="${base.dir}"/>
|
||||
<echo message="BASE NAME:${base.name}"/>
|
||||
<if>
|
||||
<equals arg1="${base.name}" arg2="edexOsgi" />
|
||||
<then>
|
||||
<!-- we are in the distributed development environment -->
|
||||
<echo message="BUILDING: in distributed development environment"/>
|
||||
<dirname property="awips.baseline.directory" file="${base.dir}" />
|
||||
<dirname property="git.directory" file="${awips.baseline.directory}" />
|
||||
<echo message="GIT.DIRECTORY:${git.directory}"/>
|
||||
<var name="repository.directories"
|
||||
value="${awips.baseline.directory}" />
|
||||
<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" -->
|
||||
<propertyselector property="baseline.variables"
|
||||
|
@ -41,16 +59,20 @@
|
|||
<propertycopy property="variable.name"
|
||||
override="true"
|
||||
from="dir.@{index}" />
|
||||
<for list="${repository.directories}" param="repo.directory">
|
||||
<sequential>
|
||||
<var name="base.directory"
|
||||
value="${awips.baseline.directory}/${variable.name}" />
|
||||
|
||||
value="@{repo.directory}/${variable.name}" />
|
||||
<if>
|
||||
<available file="${base.directory}" type="dir" />
|
||||
<then>
|
||||
<echo message="BASE.DIRECTORY:${base.directory}"/>
|
||||
<var name="basedirectories"
|
||||
value="${base.directory};${basedirectories}" />
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
|
||||
<!-- Loop through the WA directories, if they exist. -->
|
||||
<if>
|
||||
|
|
|
@ -3,6 +3,9 @@ architecture=x86_64
|
|||
|
||||
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.
|
||||
dir.01=cave
|
||||
dir.02=cots
|
||||
|
@ -11,6 +14,14 @@ dir.04=ncep
|
|||
dir.05=RadarServer
|
||||
dir.06=edu
|
||||
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
|
||||
# in a distributed development environment.
|
||||
|
|
Loading…
Add table
Reference in a new issue