Omaha #3339 - allow deployment of a WA-specific esb directory to provide EDEX configuration.
The WA-specific directory is assumed to be in the edex directory of the work assignment and named deploy.edex-${NAME} where ${NAME} is the name of the Work Assignment. Former-commit-id:49ffec76ff
[formerly 146e5ebed335bf25cbae152eef1b0544e833f741] Former-commit-id:984842331d
This commit is contained in:
parent
b874c80f93
commit
32aa07f1fc
1 changed files with 31 additions and 0 deletions
|
@ -10,6 +10,11 @@
|
|||
|
||||
<antcall target="cleanup" />
|
||||
|
||||
<!-- Determine if any Work Assignments have been specified. -->
|
||||
<condition property="wa.enabled">
|
||||
<not><equals arg1="${wa.to.deploy}" arg2="" /></not>
|
||||
</condition>
|
||||
|
||||
<antcall target="deploy.esb" />
|
||||
<if>
|
||||
<equals arg1="${deploy.data}" arg2="true" />
|
||||
|
@ -17,6 +22,32 @@
|
|||
<antcall target="deploy.esb-data" />
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<isset property="wa.enabled" />
|
||||
<then>
|
||||
<for list="${wa.to.deploy}" param="wa"
|
||||
delimiter="${path.separator}">
|
||||
<sequential>
|
||||
<basename property="wa.name" file="@{wa}" />
|
||||
<var name="wa.base.directory"
|
||||
value="@{wa}/edex/deploy.edex-${wa.name}" />
|
||||
<if>
|
||||
<available file="${wa.base.directory}/esb"
|
||||
type="dir" />
|
||||
<then>
|
||||
<copy todir="${edex.root.directory}"
|
||||
overwrite="${esb.overwrite}" failonerror="true">
|
||||
<fileset dir="${wa.base.directory}/esb">
|
||||
<include name="**/*" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</then>
|
||||
</if>
|
||||
</sequential>
|
||||
</for>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="cleanup">
|
||||
|
|
Loading…
Add table
Reference in a new issue