2017-04-21 18:33:55 -06:00
|
|
|
<project default="main" basedir=".">
|
2017-04-22 20:31:30 -06:00
|
|
|
<property name="localization.sites" value="OAX" />
|
2017-04-21 18:33:55 -06:00
|
|
|
<property name="edex.root" value="/awips2/edex" />
|
|
|
|
<property name="groovy.path" value="" />
|
|
|
|
<property name="architecture" value="x86_64" />
|
|
|
|
|
|
|
|
<condition property="requiredPropertiesSet">
|
|
|
|
<and>
|
|
|
|
<isset property="workspace_loc" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<available property="groovyPathSet"
|
|
|
|
file="${groovy.path}/groovy" type="file" />
|
|
|
|
|
|
|
|
<target name="main">
|
|
|
|
<antcall target="usage" />
|
|
|
|
<antcall target="deploy-using-specific-groovy" />
|
|
|
|
<antcall target="deploy-using-environment-groovy" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="usage" unless="${requiredPropertiesSet}">
|
|
|
|
<echo message="Usage: the following parameters are available when running deploy-install.xml." />
|
|
|
|
<echo message="REQUIRED PARAMETERS:" />
|
|
|
|
<echo message=" -Dworkspace_loc the location of the Eclipse workspace; use the 'workspace_loc' variable provided by Eclipse" />
|
|
|
|
<echo message="OPTIONAL PARAMETERS:" />
|
|
|
|
<echo message=" -Dlocalization.sites a colon delimited list of sites to deploy localization for" />
|
|
|
|
<echo message=" -Dedex.root the root of the EDEX installation; defaults to /awips2/edex" />
|
|
|
|
<echo message=" -Darchitecture used to override the deployment architecture; use one of: {x86_64, x86}." />
|
|
|
|
|
|
|
|
<fail message="All required parameters have not been specified. Refer to the usage message above." />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="deploy-using-specific-groovy" if="${groovyPathSet}">
|
|
|
|
<deploy
|
|
|
|
groovy.executable="${groovy.path}/groovy" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="deploy-using-environment-groovy" unless="${groovyPathSet}">
|
|
|
|
<deploy
|
|
|
|
groovy.executable="groovy" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<macrodef name="deploy">
|
|
|
|
<attribute name="groovy.executable" />
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
<exec executable="@{groovy.executable}">
|
|
|
|
<arg value="-cp" />
|
|
|
|
<arg value="${basedir}${path.separator}${basedir}/../build.core" />
|
|
|
|
<arg value="${basedir}/RunDeployInstall.groovy" />
|
|
|
|
<arg value="${workspace_loc}" />
|
|
|
|
<arg value="${localization.sites}" />
|
|
|
|
<arg value="${edex.root}" />
|
|
|
|
<arg value="${architecture}" />
|
|
|
|
</exec>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
</project>
|