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 445N/A ! by brackets "[]" replaced with your own identifying * information: 445N/A ! Portions Copyright [yyyy] [name of copyright owner] 445N/A ! Portions Copyright 2006 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 445N/A <!-- this is an optional file if you want to pass custom values --> 445N/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 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
445N/A description="deploy the product bits" 445N/A <
include name="*.zip"/>
445N/A <
target name="install" >
445N/A <!-- end of install related targets --> 445N/A <!-- Uninstallation --> 445N/A description="Uninstall the product" 445N/A <
target name="uninstall">
445N/A <!-- end of uninstall related targets --> 445N/A description="configures product to listen on the right port number" 445N/A <
echo message="basedir=[${basedir}]" />
445N/A <!-- building the classpath to run the configurator --> 445N/A <
include name="*.jar"/>
445N/A <!-- provide the arguments here --> 445N/A <
arg value="--configClass" />
445N/A <
arg value="--configFile" />
445N/A <
target name="configure">
445N/A <!-- end of config related targets --> 445N/A description="start the product" 445N/A os="Windows XP,windows,dos" 445N/A <!-- end of start related targets --> 445N/A description="stop the server">
445N/A os="Windows XP,windows,dos" 445N/A <!-- end of stop related targets --> 445N/A <!-- Installation status --> 445N/A <!-- end of installation status --> 445N/A <!-- Running status --> 445N/A <!-- end of running status --> 445N/A <
antcall target="is-product-installed?" />
445N/A <
antcall target="is-product-not-installed?" />
445N/A <
antcall target="is-product-running?" />
445N/A <
antcall target="is-product-not-running?" />
445N/A <!-- end of status related tasks --> 445N/A <!-- macros - chained operations --> 445N/A <
target name="bootstrap">
445N/A <
echo message="Bootstrap: wipe the plate clean in case there is a previous install"/>
445N/A <
antcall target="wipeout" />
445N/A <
echo message="Bootstrap: install the product" />
445N/A <
antcall target="install" />
445N/A <
antcall target="configure" />
445N/A <
antcall target="start" />
445N/A <
target name="wipeout">
445N/A <
echo message="Wipeout: removing product" />
445N/A <
antcall target="stop" />
445N/A <
echo message="Give the server some time to shut down and release locks..." />
445N/A <
antcall target="uninstall" />
445N/A <!-- end of macros related targets-->