make-ldif.bat revision 7f22d858bbecbd1fbd35d538918624d31455506e
479N/A
479N/A@echo off
479N/Arem CDDL HEADER START
479N/Arem
479N/Arem The contents of this file are subject to the terms of the
479N/Arem Common Development and Distribution License, Version 1.0 only
479N/Arem (the "License"). You may not use this file except in compliance
479N/Arem with the License.
479N/Arem
479N/Arem You can obtain a copy of the license at
479N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
479N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
479N/Arem See the License for the specific language governing permissions
479N/Arem and limitations under the License.
479N/Arem
479N/Arem When distributing Covered Code, include this CDDL HEADER in each
479N/Arem file and include the License file at
479N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
479N/Arem add the following below this CDDL HEADER, with the fields enclosed
873N/Arem by brackets "[]" replaced with your own identifying information:
479N/Arem Portions Copyright [yyyy] [name of copyright owner]
479N/Arem
479N/Arem CDDL HEADER END
479N/Arem
479N/Arem
3233N/Arem Copyright 2006-2009 Sun Microsystems, Inc.
479N/Arem Portions Copyright 2011-2012 ForgeRock AS
479N/A
479N/Asetlocal
479N/A
479N/Afor %%i in (%~sf0) do set NON_ESCAPED=%%~dPsi..
479N/A
479N/AFOR /F "tokens=1-2* delims=%%" %%1 IN ("%NON_ESCAPED%") DO (
479N/Aif NOT "%%2" == "" goto invalidPath)
479N/A
479N/Afor %%i in (%~sf0) do set DIR_HOME=%%~dPsi..
479N/Aset INSTALL_ROOT=%DIR_HOME%
619N/A
619N/Aset INSTANCE_DIR=
619N/Aif exist "%INSTALL_ROOT%\instance.loc" (
619N/A set /p INSTANCE_DIR=<%INSTALL_ROOT%\instance.loc
619N/A) else (
3488N/Aset INSTANCE_DIR=.
619N/A)
619N/Aset CUR_DIR=%CD%
619N/Acd /d %INSTALL_ROOT%
619N/Acd /d %INSTANCE_DIR%
619N/Aset INSTANCE_ROOT=%CD%
619N/Acd /d %CUR_DIR%
619N/A
619N/Aset OPENDJ_INVOKE_CLASS="org.opends.server.tools.makeldif.MakeLDIF"
619N/Aset SCRIPT_NAME=make-ldif
2976N/A"%INSTALL_ROOT%\lib\_server-script.bat" --resourcePath "%INSTANCE_ROOT%\config\MakeLDIF" %*
2976N/A
2976N/A