Former-commit-id:a740a1370f
[formerly952901624f
] [formerlya740a1370f
[formerly952901624f
] [formerlye291a20abf
[formerly fd8a4b49641aaf70c49608215d15209330dee669]]] Former-commit-id:e291a20abf
Former-commit-id:935a9cdb8d
[formerlyde05d7c313
] Former-commit-id:d3aec6899d
48 lines
1.7 KiB
XML
48 lines
1.7 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>
|
|
</target>
|
|
</project>
|