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 32aa07f1fc [formerly 984842331d] [formerly 49ffec76ff [formerly 146e5ebed335bf25cbae152eef1b0544e833f741]]]
Former-commit-id: 32aa07f1fc [formerly 984842331d]
Former-commit-id: 32aa07f1fc
Former-commit-id: 7220057d30
This commit is contained in:
Bryan Kowal 2014-07-02 15:58:50 -05:00
parent 81e7660a82
commit 34da4d3e55

View file

@ -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">