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" />
|
||||
</then>
|
||||
</if>
|
||||
<if>
|
||||
<equals arg1="${deploy.web}" arg2="true" />
|
||||
<then>
|
||||
<antcall target="deploy.esb-web" />
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="cleanup">
|
||||
|
@ -96,18 +90,6 @@
|
|||
includes="**/*" type="both" />
|
||||
</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"
|
||||
classpath="${basedir}/lib/ant/ant-contrib-1.0b3.jar" />
|
||||
</project>
|
||||
|
|
|
@ -10,11 +10,9 @@
|
|||
<macrodef name="deploy.war">
|
||||
<attribute name="web.project.dir" />
|
||||
<attribute name="war.name" />
|
||||
<attribute name="webapps.dir" />
|
||||
|
||||
<sequential>
|
||||
<property name="webapps.dir"
|
||||
value="${edex.root.directory}/webapps" />
|
||||
|
||||
<sequential>
|
||||
<!-- find the web "project" -->
|
||||
<var name="project.dir" value="" />
|
||||
<for list="${basedirectories}" param="directory"
|
||||
|
@ -41,13 +39,13 @@
|
|||
<var name="war.file" value="@{war.name}.war" />
|
||||
|
||||
<!-- delete old war file -->
|
||||
<delete dir="${webapps.dir}/@{war.name}" />
|
||||
<delete file="${webapps.dir}/${war.file}" />
|
||||
<mkdir dir="${webapps.dir}" />
|
||||
<delete dir="@{webapps.dir}/@{war.name}" />
|
||||
<delete file="@{webapps.dir}/${war.file}" />
|
||||
<mkdir dir="@{webapps.dir}" />
|
||||
|
||||
<!-- build and deploy new war -->
|
||||
<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">
|
||||
<fileset dir="${project.dir}/web"
|
||||
excludes="**/WEB-INF/" />
|
||||
|
@ -56,9 +54,9 @@
|
|||
<webinf file="${project.dir}/web/WEB-INF/dwr.xml" />
|
||||
</war>
|
||||
|
||||
<unzip src="${webapps.dir}/${war.file}"
|
||||
dest="${webapps.dir}/@{war.name}" />
|
||||
<delete file="${webapps.dir}/${war.file}" />
|
||||
<unzip src="@{webapps.dir}/${war.file}"
|
||||
dest="@{webapps.dir}/@{war.name}" />
|
||||
<delete file="@{webapps.dir}/${war.file}" />
|
||||
</sequential>
|
||||
</macrodef>
|
||||
</project>
|
|
@ -1,4 +1,6 @@
|
|||
<project>
|
||||
<import file="deploy-web.xml" />
|
||||
|
||||
<macrodef name="processPlugins">
|
||||
<attribute name="includes.file" />
|
||||
<attribute name="plugin.type" />
|
||||
|
@ -101,6 +103,19 @@
|
|||
</else>
|
||||
</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"
|
||||
inheritAll="false">
|
||||
<property name="plugin._directory"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<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:
|
||||
|
@ -28,6 +29,20 @@
|
|||
<property name="deployment._root"
|
||||
value="${target.folder}/.." />
|
||||
</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>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
|
|
|
@ -156,6 +156,19 @@
|
|||
</fileset>
|
||||
</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 -->
|
||||
<if>
|
||||
<not>
|
||||
|
|
|
@ -9,8 +9,6 @@ wa.to.deploy=
|
|||
deploy.python=true
|
||||
# deploy build.edex/esb/data
|
||||
deploy.data=true
|
||||
# deploy the web applications
|
||||
deploy.web=true
|
||||
# deploy GFESuite
|
||||
deploy.gfesuite=true
|
||||
# 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
|
||||
working.dir=edex/tmp/plugins
|
||||
deploy.web=true
|
||||
deploy.data=true
|
||||
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