rem 
rem NO NEED TO CHANGE ANYTHING HERE!
rem 
rem Helper script for calling Ant
rem 
rem Author: Gregor Karlinger
rem Version: $Id: $
rem


if %OS%=="Windows_NT" @setlocal

set ANT=.\ant.1-6-5\bin\ant.bat
set BUILD_FILE=.\update.xml
set IAIK_LIB_TYPE=eval

call setEnvironment.bat

if not "%MOA_SPSS_WS_INSTALL%"=="" (
  echo Performing webservice update ...
  call %ANT% -f %BUILD_FILE% update-ws %1 %2 %3 %4 %5 %6 %7 %8 %9
  echo ... done
)

if not "%MOA_SPSS_LIB_INSTALL%"=="" (
  echo Performing API update ...
  call %ANT% -f %BUILD_FILE% update-lib %1 %2 %3 %4 %5 %6 %7 %8 %9
  echo ... done
)  

if not "%MOA_SPSS_DEV%"=="" (
  echo Performing development base update ...
  call %ANT% -f %BUILD_FILE% update-dev %1 %2 %3 %4 %5 %6 %7 %8 %9
  echo ... done
)  

if %OS%=="Windows_NT" @endlocal