1051N/A
1051N/A@echo off
1051N/Arem CDDL HEADER START
1051N/Arem
1051N/Arem The contents of this file are subject to the terms of the
1051N/Arem Common Development and Distribution License, Version 1.0 only
1051N/Arem (the "License"). You may not use this file except in compliance
1051N/Arem with the License.
1051N/Arem
6983N/Arem You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/Arem or http://forgerock.org/license/CDDLv1.0.html.
1051N/Arem See the License for the specific language governing permissions
1051N/Arem and limitations under the License.
1051N/Arem
1051N/Arem When distributing Covered Code, include this CDDL HEADER in each
6983N/Arem file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/Arem If applicable, add the following below this CDDL HEADER, with the
6983N/Arem fields enclosed by brackets "[]" replaced with your own identifying
6983N/Arem information:
1051N/Arem Portions Copyright [yyyy] [name of copyright owner]
1051N/Arem
1051N/Arem CDDL HEADER END
1051N/Arem
1051N/Arem
7079N/Arem Copyright 2013-2014 ForgeRock AS
1051N/A
1051N/Asetlocal
1186N/A
6238N/Aset OPENDJ_INVOKE_CLASS="org.opends.server.tools.upgrade.UpgradeCli"
6238N/Aset SCRIPT_NAME=upgrade
7079N/A
7081N/Afor %%i in (%~sf0) do set SCRIPT_DIR=%%~dPsi
7081N/Aset DIR_CLASSES="%SCRIPT_DIR%classes"
7079N/Arem The upgrade is not compatible with patches. If the folder is not empty
7079N/Arem we renamed it as "classes.disabled", and the upgrade process should be launched properly.
7079N/AIF EXIST "%DIR_CLASSES%" (
7079N/A for /F %%i in ('dir /b %DIR_CLASSES%\*.*') do goto renamePatchesFolder
7079N/A)
7079N/Agoto end
7079N/A
7079N/A:renamePatchesFolder
7081N/Amove /-Y "%DIR_CLASSES%" "%SCRIPT_DIR%classes.disabled" > nul
7079N/Amkdir %DIR_CLASSES%
7079N/A
7079N/A:end
6238N/Afor %%i in (%~sf0) do call "%%~dPsi\lib\_server-script.bat" %*
3007N/A