@echo off
REM $Id: BuildIt.bat,v 1.1.2.1 2002/11/19 03:43:47 maguro Exp $

REM   Contributions by:
REM      Assaf Arkin
REM      David Blevins
REM      Gérald Quintana

if "%OPENEJB_HOME%"=="" set OPENEJB_HOME=%CD%\..\..

set JAVA=%JAVA_HOME%\bin\java

set CP=
for %%i in (%OPENEJB_HOME%\lib\*.jar) do call %OPENEJB_HOME%\bin\cp.bat %%i 

set CP=%JAVA_HOME%\lib\tools.jar;%CP%

set OPTIONS=-Dopenejb.home=%OPENEJB_HOME%

%JAVA% %OPTIONS% -classpath %CP% -Dant.home=lib org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 -buildfile ./build.xml

