84N/Arem CDDL HEADER START
84N/Arem The contents of this file are subject to the terms of the
84N/Arem Common Development and Distribution License, Version 1.0 only
84N/Arem (the "License"). You may not use this file except in compliance
84N/Arem with the License.
84N/Arem See the License for the specific language governing permissions
84N/Arem and limitations under the License.
84N/Arem When distributing Covered Code, include this CDDL HEADER in each
6983N/Arem If applicable, add the following below this CDDL HEADER, with the
6983N/Arem fields enclosed by brackets "[]" replaced with your own identifying
84N/Arem Portions Copyright [yyyy] [name of copyright owner]
5072N/Arem Copyright 2006-2010 Sun Microsystems, Inc.
5728N/Arem Portions Copyright 2011-2012 ForgeRock AS
1895N/Arem check that the path does not contain the ^% character which breaks
1920N/Afor %%i in (%~sf0) do set NON_ESCAPED=%%~dPsi..
1895N/AFOR /F "tokens=1-2* delims=%%" %%1 IN ("%NON_ESCAPED%") DO (
1895N/Aif NOT "%%2" == "" goto invalidPath)
1920N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi.
2976N/Arem Set environment variables and test java
2976N/Aset SCRIPT_UTIL_CMD=set-full-environment-and-test-java
2976N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
2976N/Aif "%~1" == "" goto callLaunch
5612N/Aecho Error: The current path contains a %% character. OpenDJ cannot
1895N/Aecho be installed on a path containing this character.
1777N/Aif %errorlevel% == 50 goto version
5072N/Aif NOT %errorlevel% == 0 exit /B %errorlevel%
1777N/Arem version information was requested. Return code should be 0.