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