Issue #2500 - the list of web applications to deploy is no longer hard-coded in deploy-install.
Former-commit-id:90a54524c6
[formerlydf575b7be1
] [formerlya6d7822698
] [formerly90a54524c6
[formerlydf575b7be1
] [formerlya6d7822698
] [formerlycda8d04831
[formerlya6d7822698
[formerly 06a166ef6c963585eb65da223610a21665f9545a]]]] Former-commit-id:cda8d04831
Former-commit-id:3e68d9aaac
[formerly27d2e33769
] [formerly 3fa0f0dac5587960c496629c316aa2a1a2f464bc [formerlycc0f6832c9
]] Former-commit-id: 822576469c2608f5a2fcb3645efe10ba1e12bfce [formerly2615ad7324
] Former-commit-id:819cb0bcb7
This commit is contained in:
parent
553475c0a2
commit
71a8ee5a68
10 changed files with 55 additions and 32 deletions
|
@ -17,12 +17,6 @@
|
||||||
<antcall target="deploy.esb-data" />
|
<antcall target="deploy.esb-data" />
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
<if>
|
|
||||||
<equals arg1="${deploy.web}" arg2="true" />
|
|
||||||
<then>
|
|
||||||
<antcall target="deploy.esb-web" />
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="cleanup">
|
<target name="cleanup">
|
||||||
|
@ -96,18 +90,6 @@
|
||||||
includes="**/*" type="both" />
|
includes="**/*" type="both" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="deploy.esb-web">
|
|
||||||
<deploy.war
|
|
||||||
web.project.dir="com.raytheon.edex.uengine"
|
|
||||||
war.name="uEngineWeb" />
|
|
||||||
<deploy.war
|
|
||||||
web.project.dir="gov.noaa.nws.ncep.edex.purgeutil"
|
|
||||||
war.name="purgeWeb" />
|
|
||||||
<deploy.war
|
|
||||||
web.project.dir="com.raytheon.uf.edex.registry.ebxml"
|
|
||||||
war.name="registryEbxml" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<taskdef resource="net/sf/antcontrib/antlib.xml"
|
<taskdef resource="net/sf/antcontrib/antlib.xml"
|
||||||
classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" />
|
classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" />
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -10,11 +10,9 @@
|
||||||
<macrodef name="deploy.war">
|
<macrodef name="deploy.war">
|
||||||
<attribute name="web.project.dir" />
|
<attribute name="web.project.dir" />
|
||||||
<attribute name="war.name" />
|
<attribute name="war.name" />
|
||||||
|
<attribute name="webapps.dir" />
|
||||||
|
|
||||||
<sequential>
|
<sequential>
|
||||||
<property name="webapps.dir"
|
|
||||||
value="${edex.root.directory}/webapps" />
|
|
||||||
|
|
||||||
<!-- find the web "project" -->
|
<!-- find the web "project" -->
|
||||||
<var name="project.dir" value="" />
|
<var name="project.dir" value="" />
|
||||||
<for list="${basedirectories}" param="directory"
|
<for list="${basedirectories}" param="directory"
|
||||||
|
@ -41,13 +39,13 @@
|
||||||
<var name="war.file" value="@{war.name}.war" />
|
<var name="war.file" value="@{war.name}.war" />
|
||||||
|
|
||||||
<!-- delete old war file -->
|
<!-- delete old war file -->
|
||||||
<delete dir="${webapps.dir}/@{war.name}" />
|
<delete dir="@{webapps.dir}/@{war.name}" />
|
||||||
<delete file="${webapps.dir}/${war.file}" />
|
<delete file="@{webapps.dir}/${war.file}" />
|
||||||
<mkdir dir="${webapps.dir}" />
|
<mkdir dir="@{webapps.dir}" />
|
||||||
|
|
||||||
<!-- build and deploy new war -->
|
<!-- build and deploy new war -->
|
||||||
<echo message="Building and deploying war file" />
|
<echo message="Building and deploying war file" />
|
||||||
<war destfile="${webapps.dir}/${war.file}"
|
<war destfile="@{webapps.dir}/${war.file}"
|
||||||
webxml="${project.dir}/web/WEB-INF/web.xml">
|
webxml="${project.dir}/web/WEB-INF/web.xml">
|
||||||
<fileset dir="${project.dir}/web"
|
<fileset dir="${project.dir}/web"
|
||||||
excludes="**/WEB-INF/" />
|
excludes="**/WEB-INF/" />
|
||||||
|
@ -56,9 +54,9 @@
|
||||||
<webinf file="${project.dir}/web/WEB-INF/dwr.xml" />
|
<webinf file="${project.dir}/web/WEB-INF/dwr.xml" />
|
||||||
</war>
|
</war>
|
||||||
|
|
||||||
<unzip src="${webapps.dir}/${war.file}"
|
<unzip src="@{webapps.dir}/${war.file}"
|
||||||
dest="${webapps.dir}/@{war.name}" />
|
dest="@{webapps.dir}/@{war.name}" />
|
||||||
<delete file="${webapps.dir}/${war.file}" />
|
<delete file="@{webapps.dir}/${war.file}" />
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
</project>
|
</project>
|
|
@ -1,4 +1,6 @@
|
||||||
<project>
|
<project>
|
||||||
|
<import file="deploy-web.xml" />
|
||||||
|
|
||||||
<macrodef name="processPlugins">
|
<macrodef name="processPlugins">
|
||||||
<attribute name="includes.file" />
|
<attribute name="includes.file" />
|
||||||
<attribute name="plugin.type" />
|
<attribute name="plugin.type" />
|
||||||
|
@ -101,6 +103,19 @@
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<!-- determine if the plugin is a web project -->
|
||||||
|
<if>
|
||||||
|
<available file="${plugin.base}/web.deploy" type="file" />
|
||||||
|
<then>
|
||||||
|
<var file="${plugin.base}/web.deploy" />
|
||||||
|
|
||||||
|
<deploy.war
|
||||||
|
web.project.dir="@{plugin.name}"
|
||||||
|
war.name="${war.name}"
|
||||||
|
webapps.dir="${edex.root.directory}/webapps" />
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
<ant antfile="${basedir}/deploy-common/external-rules.xml"
|
<ant antfile="${basedir}/deploy-common/external-rules.xml"
|
||||||
inheritAll="false">
|
inheritAll="false">
|
||||||
<property name="plugin._directory"
|
<property name="plugin._directory"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<project name="Build specific targets and properties" default="noDefault">
|
<project name="Build specific targets and properties" default="noDefault">
|
||||||
|
<import file="${builder}/../deploy-common/deploy-web.xml" />
|
||||||
<!-- =====================================================================
|
<!-- =====================================================================
|
||||||
|
|
||||||
The Following Properties are available in all targets:
|
The Following Properties are available in all targets:
|
||||||
|
@ -28,6 +29,20 @@
|
||||||
<property name="deployment._root"
|
<property name="deployment._root"
|
||||||
value="${target.folder}/.." />
|
value="${target.folder}/.." />
|
||||||
</ant>
|
</ant>
|
||||||
|
|
||||||
|
<!-- determine if plugin is a web project -->
|
||||||
|
<!-- determine if the plugin is a web project -->
|
||||||
|
<if>
|
||||||
|
<available file="${projectLocation}/web.deploy" type="file" />
|
||||||
|
<then>
|
||||||
|
<var file="${projectLocation}/web.deploy" />
|
||||||
|
<basename property="plugin.name" file="${projectLocation}" />
|
||||||
|
<deploy.war
|
||||||
|
web.project.dir="${plugin.name}"
|
||||||
|
war.name="${war.name}"
|
||||||
|
webapps.dir="${target.folder}/../webapps" />
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
|
|
|
@ -156,6 +156,19 @@
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<available file="${build.output.directory}/webapps" type="dir" />
|
||||||
|
<then>
|
||||||
|
<mkdir dir="${builder}/postBuild/${edex.root.directory}" />
|
||||||
|
<copy todir="${builder}/postBuild/${edex.root.directory}"
|
||||||
|
verbose="true">
|
||||||
|
<fileset dir="${build.output.directory}">
|
||||||
|
<include name="webapps/**" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
|
||||||
<!-- special rule for cots -->
|
<!-- special rule for cots -->
|
||||||
<if>
|
<if>
|
||||||
<not>
|
<not>
|
||||||
|
|
|
@ -9,8 +9,6 @@ wa.to.deploy=
|
||||||
deploy.python=true
|
deploy.python=true
|
||||||
# deploy build.edex/esb/data
|
# deploy build.edex/esb/data
|
||||||
deploy.data=true
|
deploy.data=true
|
||||||
# deploy the web applications
|
|
||||||
deploy.web=true
|
|
||||||
# deploy GFESuite
|
# deploy GFESuite
|
||||||
deploy.gfesuite=true
|
deploy.gfesuite=true
|
||||||
# use esb.overwrite to overwrite files during esb deployment regardless
|
# use esb.overwrite to overwrite files during esb deployment regardless
|
||||||
|
|
|
@ -4,6 +4,5 @@ esbDir=${install.dir}/../edex
|
||||||
|
|
||||||
feature=../com.raytheon.edex.feature.uframe/feature.xml
|
feature=../com.raytheon.edex.feature.uframe/feature.xml
|
||||||
working.dir=edex/tmp/plugins
|
working.dir=edex/tmp/plugins
|
||||||
deploy.web=true
|
|
||||||
deploy.data=true
|
deploy.data=true
|
||||||
svcbudir=${install.dir}/../GFESuite
|
svcbudir=${install.dir}/../GFESuite
|
||||||
|
|
1
edexOsgi/com.raytheon.edex.uengine/web.deploy
Normal file
1
edexOsgi/com.raytheon.edex.uengine/web.deploy
Normal file
|
@ -0,0 +1 @@
|
||||||
|
war.name=uEngineWeb
|
1
edexOsgi/com.raytheon.uf.edex.registry.ebxml/web.deploy
Normal file
1
edexOsgi/com.raytheon.uf.edex.registry.ebxml/web.deploy
Normal file
|
@ -0,0 +1 @@
|
||||||
|
war.name=registryEbxml
|
1
ncep/gov.noaa.nws.ncep.edex.purgeutil/web.deploy
Normal file
1
ncep/gov.noaa.nws.ncep.edex.purgeutil/web.deploy
Normal file
|
@ -0,0 +1 @@
|
||||||
|
war.name=purgeWeb
|
Loading…
Add table
Reference in a new issue