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