445N/A ! The contents of this file are subject to the terms of the 445N/A ! Common Development and Distribution License, Version 1.0 only 445N/A ! (the "License"). You may not use this file except in compliance 445N/A ! You can obtain a copy of the license at 445N/A ! See the License for the specific language governing permissions 445N/A ! and limitations under the License. 445N/A ! When distributing Covered Code, include this CDDL HEADER in each 445N/A ! file and include the License file at 445N/A ! add the following below this CDDL HEADER, with the fields enclosed 873N/A ! by brackets "[]" replaced with your own identifying information: 445N/A ! Portions Copyright [yyyy] [name of copyright owner] 3215N/A ! Copyright 2006-2008 Sun Microsystems, Inc. 445N/A<
project name="opends-tests-installer" basedir="." default="usage">
445N/A Installer ant file for the server
445N/A This allows tests that need a running instance of the product to easily
445N/A <!-- this one has to be loaded first since it's used in 1960N/A value="${MAJOR_VERSION}.${MINOR_VERSION}.${POINT_VERSION}" />
482N/A <!-- this is an optional file if you want to pass custom values --> 482N/A <!-- this is the file where the default values are defined --> 445N/A <!-- Define default values for mandatory properties in case the 445N/A property files would not be found 788N/A <!-- Usage section - top --> 445N/A status : reports if product is installed
and/
or running
445N/A bootstrap : installs and configure the product
445N/A wipeout : stops and uninstalls the product
445N/A install : installs the product
445N/A configure : set the server up to listen on a given port
445N/A start : start the product unless it is already running
445N/A stop : stop the product if it is already running
445N/A uninstall : uninstall the product if it is installed
788N/A <!-- Usage section - bottom --> 788N/A <!-- Installation section - top --> 788N/A <
target name="install-do" 788N/A description="deploy the product bits" 788N/A <
include name="*.zip"/>
788N/A <
target name="install" depends="status-do,install-do"/>
445N/A <!-- end of install related targets --> 788N/A <!-- Uninstallation section - top --> 788N/A <
target name="uninstall-do" 788N/A description="Uninstall the product" 788N/A <
target name="uninstall" depends="status-do,stop-do,uninstall-do"/>
788N/A <!-- Uninstallation section - bottom --> 788N/A <!-- Configuration secton - top --> 788N/A <
target name="configure-do" 788N/A description="configures product to listen on the right port number" 788N/A <
echo message="basedir=[${basedir}]" />
788N/A <!-- building the classpath to run the configurator --> 788N/A <
include name="*.jar"/>
788N/A <!-- provide the arguments here --> 788N/A <
arg value="--configClass"/>
788N/A <
arg value="--configFile"/>
788N/A <
target name="configure" depends="status-do,configure-do"/>
788N/A <!-- Configuration section - bottom --> 788N/A <!-- Start section - top --> 788N/A <
target name="start-do" 788N/A description="start the product" 788N/A <
target name="start" depends="status-do,start-do"/>
788N/A <!-- Start section - bottom --> 788N/A <!-- Stop section - top --> 788N/A description="stop the server">
788N/A <
target name="stop" depends="status-do,stop-do"/>
788N/A <
echo message="Give the server some time to shut down and release locks..." />
788N/A <!-- Stop section - bottom --> 788N/A <!-- Status section - top --> 788N/A <
target name="status-do" description="gather status">
788N/A <
antcall target="is-product-running?"/>
788N/A <
antcall target="is-product-not-running?"/>
788N/A <!-- end of installation status --> 788N/A <!-- Running status --> 788N/A <
target name="status" depends="status-do,is-product-installed?,is-product-not-installed?"/>
788N/A <!-- Status section - bottom --> 445N/A <!-- macros - chained operations --> 788N/A <
target name="bootstrap">
788N/A <
echo message="Bootstrap: wipe the plate clean in case there is a previous install"/>
788N/A <
antcall target="wipeout" />
788N/A <
echo message="Bootstrap: install the product" />
788N/A <
antcall target="install" />
788N/A <
antcall target="configure" />
788N/A <
antcall target="start" />
788N/A <
echo message="Wipeout: removing product" />
788N/A <
antcall target="uninstall" />
445N/A <!-- end of macros related targets-->