awips2/edexOsgi/build.edex/deploy-common/external-rules.xml
2018-06-19 15:32:00 -06:00

58 lines
2.1 KiB
XML

<project default="enact.external-rules">
<!-- external deployment rules -->
<!--
TODO: if necessary, these could be read from a properties file.
1) utility -> /awips2/edex/data/utility
2) resources -> /awips2/edex/conf/resources
3) modes -> /awips2/edex/conf/modes
-->
<target name="enact.external-rules">
<!-- parameters -->
<property name="plugin._directory" value="" />
<property name="deployment._root" value="" />
<!--
* plugin._directory = the full directory path to the plugin
* deployment._root = the directory to deploy the files to
-->
<mkdir dir="${deployment._root}/data/utility" />
<if>
<available file="${plugin._directory}/utility" type="dir" />
<then>
<copy todir="${deployment._root}/data/utility" overwrite="true">
<fileset dir="${plugin._directory}/utility" />
</copy>
</then>
</if>
<mkdir dir="${deployment._root}/conf/resources" />
<if>
<available file="${plugin._directory}/resources" type="dir" />
<then>
<copy todir="${deployment._root}/conf/resources" overwrite="true" verbose="true">
<fileset dir="${plugin._directory}/resources" />
</copy>
</then>
</if>
<mkdir dir="${deployment._root}/conf/modes" />
<if>
<available file="${plugin._directory}/modes" type="dir" />
<then>
<copy todir="${deployment._root}/conf/modes" overwrite="true" verbose="true">
<fileset dir="${plugin._directory}/modes" />
</copy>
</then>
</if>
<mkdir dir="${deployment._root}/etc/" />
<if>
<available file="${plugin._directory}/esb/etc" type="dir" />
<then>
<copy todir="${deployment._root}/etc/" overwrite="true" verbose="true">
<fileset dir="${plugin._directory}/esb/etc" />
</copy>
</then>
</if>
</target>
</project>