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