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:7220057d30
[formerly32aa07f1fc
] [formerly984842331d
] [formerly49ffec76ff
[formerly984842331d
[formerly 146e5ebed335bf25cbae152eef1b0544e833f741]]] Former-commit-id:49ffec76ff
Former-commit-id: a0e7e5fc3cecd53e7af40ec39cf5fd688ffa6a2e [formerly9fa0118ce9
] Former-commit-id:4e295dba49
This commit is contained in:
parent
c0da212407
commit
48e0656dff
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