ldifmodify.bat revision 152
1094N/A
1094N/A@echo off
1094N/Arem CDDL HEADER START
1094N/Arem
1094N/Arem The contents of this file are subject to the terms of the
1094N/Arem Common Development and Distribution License, Version 1.0 only
1094N/Arem (the "License"). You may not use this file except in compliance
1094N/Arem with the License.
1094N/Arem
1094N/Arem You can obtain a copy of the license at
1094N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
1094N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1094N/Arem See the License for the specific language governing permissions
1094N/Arem and limitations under the License.
1094N/Arem
1094N/Arem When distributing Covered Code, include this CDDL HEADER in each
1094N/Arem file and include the License file at
1094N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1094N/Arem add the following below this CDDL HEADER, with the fields enclosed
1094N/Arem by brackets "[]" replaced with your own identifying * information:
1094N/Arem Portions Copyright [yyyy] [name of copyright owner]
1094N/Arem
1094N/Arem CDDL HEADER END
1094N/Arem
1094N/Arem
1094N/Arem Portions Copyright 2006 Sun Microsystems, Inc.
1094N/A
1094N/Asetlocal
1094N/A
1094N/Aset DIR_HOME=%~dP0..
1094N/A
1920N/Aif "%JAVA_BIN%" == "" goto noJavaBin
1094N/Agoto setClassPath
1920N/A
:noJavaBin
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
set JAVA_BIN="%JAVA_HOME%\bin\java.exe"
goto setClassPath
:noJavaHome
echo Error: JAVA_HOME environment variable is not set.
echo Please set it to a valid Java 5 installation.
goto end
:setClassPath
FOR %%x in (%DIR_HOME%\lib\*.jar) DO call "%DIR_HOME%\bin\setcp.bat" %%x
%JAVA_BIN% %JAVA_ARGS% -classpath "%CLASSPATH%" org.opends.server.tools.LDIFModify -c %DIR_HOME%\config\config.ldif %*
:end