build.bat revision 5354
869N/A@echo off
869N/A
869N/Arem CDDL HEADER START
869N/Arem
869N/Arem The contents of this file are subject to the terms of the
869N/Arem Common Development and Distribution License, Version 1.0 only
869N/Arem (the "License"). You may not use this file except in compliance
869N/Arem with the License.
869N/Arem
869N/Arem You can obtain a copy of the license at
869N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE
869N/Arem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
869N/Arem See the License for the specific language governing permissions
869N/Arem and limitations under the License.
869N/Arem
869N/Arem When distributing Covered Code, include this CDDL HEADER in each
869N/Arem file and include the License file at
873N/Arem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
869N/Arem add the following below this CDDL HEADER, with the fields enclosed
869N/Arem information:
869N/Arem Portions Copyright [yyyy] [name of copyright owner]
869N/Arem
869N/Arem CDDL HEADER END
869N/Arem
869N/Arem
0N/Arem Copyright 2008-2009 Sun Microsystems, Inc.
0N/A
0N/Asetlocal
0N/A
869N/Arem These are the variables we need to run the functional tests
0N/Aset FT_HOME=%~dP0
0N/Aset ANT_HOME=%FT_HOME%\..\..\ext\ant
0N/A
869N/Aif "%JAVA_HOME%" == "" goto noJavaHome
0N/Agoto runAnt
869N/A
0N/A:noJavaHome
869N/Aecho Error: JAVA_HOME environment variable is not set.
869N/Aecho Please set it to a valid Java 5 Development Kit installation.
869N/Agoto end
2624N/A
869N/A:runAnt
48N/Arem echo a quick summary of what this script did
869N/Aecho using the following variables:
0N/Aecho ANT_HOME=%ANT_HOME%
869N/Aecho JAVA_HOME=%JAVA_HOME%
716N/Aif not "%*" == "" echo your parameters=%*
869N/A
1958N/Aset OPENDS_LIB=%FT_HOME%\..\..\lib
1963N/Aecho OPENDS_LIB=%OPENDS_LIB%
2340N/Aset ANT_LIBS=-lib "%OPENDS_LIB%\activation.jar" -lib "%OPENDS_LIB%\activation.jar"
1954N/Aecho ANT_LIBS=%ANT_LIBS%
1954N/A
1954N/Aecho Now running ant ...
1954N/A"%ANT_HOME%\bin\ant" %ANT_LIBS% -f shared\ant\build.xml %*
1954N/A
1954N/A:end
1954N/A