3832N/A ! The contents of this file are subject to the terms of the 3832N/A ! Common Development and Distribution License, Version 1.0 only 3832N/A ! (the "License"). You may not use this file except in compliance 3832N/A ! See the License for the specific language governing permissions 3832N/A ! and limitations under the License. 3832N/A ! When distributing Covered Code, include this CDDL HEADER in each 6982N/A ! If applicable, add the following below this CDDL HEADER, with the 6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying 3832N/A ! Portions Copyright [yyyy] [name of copyright owner] 4458N/A ! Copyright 2008-2009 Sun Microsystems, Inc. 6033N/A ! Portions Copyright 2013 ForgeRock AS 3832N/A <!-- Install STAF and services --> 3832N/A <
echo>Installing staf, please wait...</
echo>
4714N/A <
arg value="-DACCEPT_LICENSE=1"/>
4714N/A <
arg value="-DREGISTER=0"/>
4714N/A <
arg value="-DUPDATE_ENVIRONMENT=User"/>
4714N/A <
arg value="-DSTART_ON_LOGIN=0"/>
4714N/A <
arg value="-DSCREATE_START_MENU_ICONS=0"/>
4714N/A <
arg value="-acceptlicense"/>
4714N/A <
fail message="STAF installation failed">
4714N/A <
equals arg1="${rc}" arg2="0"/>
4714N/A <
echo>Installing services, please wait...</
echo>
4714N/A <
for list="${list}" param="archive">
4714N/A <
var name="name" unset="true"/>
4714N/A <
propertyregex property="name" 4714N/A <
globmapper from="*" to="${name}/*"/>
4714N/A <
globmapper from="*" to="*"/>
4714N/A <
delete includeemptydirs="true">
3832N/A <!-- Uninstall STAF and services --> 3832N/A <
echo>Uninstalling staf, please wait...</
echo>
3832N/A <
echo>Staf is not installed</
echo>
3832N/A <
echo>Starting staf, please wait...</
echo>
3832N/A <
env key="STAFCODEPAGE" value="LATIN_1"/>
3832N/A <
env key="STAF_INSTANCE_NAME" value="STAF"/>
3832N/A <
echo>Waiting for service to become available...</
echo>
4714N/A <
isset property="timeout"/>
4714N/A <
fail>"STAF initialisation failed"</
fail>
4714N/A <
echo>STAF is now ready to serve requests</
echo>
3832N/A <
echo>Stopping staf, please wait...</
echo>
3832N/A <
arg line="local shutdown shutdown"/>
3832N/A <
echo>Waiting for service to shutdown gracefully...</
echo>
3832N/A timeoutproperty="timeoutSocketListening">
3832N/A <
echo>Staf is not running</
echo>
3832N/A <!-- Display STAF status --> 3832N/A <
echo>Staf is not installed</
echo>
3832N/A <
echo>Staf is not running</
echo>
4714N/A <
for list="${list}" param="archive">
4714N/A <
var name="shortname" unset="true"/>
4714N/A <
var name="name" unset="true"/>
4714N/A <
propertyregex property="shortname" 4714N/A <
propertyregex property="name" 4714N/A <
echo>${shortname} is not installed</
echo>