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