@echo off
setlocal
rem ---------------------------------------------------------------------
rem Confirm installation of JAVA compiler under %JAVA_JDK%
rem and of Isight under %FIPER_HOME%
rem
rem *** IMPORTANT *** 
rem The Java compiler must be of correct version. Please refer
rem "Application Development - Environment Setup" section of the 
rem Development Guide, to know the required Java compiler version.
rem ---------------------------------------------------------------------
if not exist "%JAVA_JDK%\bin\javac.exe" echo The environment variable JAVA_JDK must point to a Java JDK && exit /B 1

if not exist "%FIPER_HOME%\docs\java\SMAFIPsdk.jar" echo The environment variable FIPER_HOME must point to an Isight installation && exit /B 1

set CLASSPATH=%FIPER_HOME%\docs\javacommon\j2ee.jar;%FIPER_HOME%\docs\java\SMAFIPsdk.jar

%JAVA_JDK%\bin\javac.exe -classpath "%CLASSPATH%" -d ./CustomizedWebTopExample/WEB-INF/classes *.java

cd ./CustomizedWebTopExample

%JAVA_JDK%\bin\jar.exe -cf ../CustomizedWebTopExample.war *
