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