build.bat revision 4458
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott@echo off
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem CDDL HEADER START
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem The contents of this file are subject to the terms of the
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem Common Development and Distribution License, Version 1.0 only
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem (the "License"). You may not use this file except in compliance
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem with the License.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem You can obtain a copy of the license at
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem trunk/opends/resource/legal-notices/OpenDS.LICENSE
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem or https://OpenDS.dev.java.net/OpenDS.LICENSE.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem See the License for the specific language governing permissions
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem and limitations under the License.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem When distributing Covered Code, include this CDDL HEADER in each
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem file and include the License file at
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellrem trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem add the following below this CDDL HEADER, with the fields enclosed
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellrem information:
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellrem Portions Copyright [yyyy] [name of copyright owner]
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem CDDL HEADER END
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottrem Copyright 2008-2009 Sun Microsystems, Inc.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottsetlocal
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellrem These are the variables we need to run the functional tests
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellset FT_HOME=%~dP0
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellset ANT_HOME=%FT_HOME%\..\..\ext\ant
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellif "%JAVA_HOME%" == "" goto noJavaHome
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottgoto runAnt
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott:noJavaHome
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottecho Error: JAVA_HOME environment variable is not set.
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottecho Please set it to a valid Java 5 Development Kit installation.
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellgoto end
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnell
a3970d0ea62388e4ede01470a6436eb5c6c92353Craig McDonnell:runAnt
a3970d0ea62388e4ede01470a6436eb5c6c92353Craig McDonnellrem echo a quick summary of what this script did
415243fbc81341293a852ff6aa14e9608d08685cCraig McDonnellecho using the following variables:
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottecho ANT_HOME=%ANT_HOME%
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottecho JAVA_HOME=%JAVA_HOME%
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottif not "%*" == "" echo your parameters=%*
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottecho Now running ant ...
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottset OPENDS_LIB=%FT_HOME%\..\..\lib
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshottset ANT_LIB="%OPENDS_LIB%\mail.jar;%OPENDS_LIB%\activation.jar"
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott"%ANT_HOME%\bin\ant" -lib "%ANT_LIB%" -f shared\ant\build.xml %*
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott:end
91f0e3cb60de3eba8cbb70c7e36cc0df22d71f5bRobert Wapshott