SET VIEW_SRC_PATH=.\src
SET VIEW_EXE_PATH=.\target\WEB-INF\classes

rem *** set j2se j2ee path ***
SET PATH=C:\j2sdk1.4.2_03\bin;%PATH%
SET CLASSPATH=.\servlet.jar;%VIEW_SRC_PATH%\openolap\viewer\common;%VIEW_SRC_PATH%\openolap\viewer\controller;%VIEW_SRC_PATH%\openolap\viewer\dao;%VIEW_SRC_PATH%\openolap\viewer\export;%VIEW_SRC_PATH%\openolap\viewer\jspHelper;%VIEW_SRC_PATH%\openolap\viewer\manager;%CLASSPATH%
rem **************************

javac -d %VIEW_EXE_PATH% %VIEW_SRC_PATH%\openolap\viewer\*.java %VIEW_SRC_PATH%\openolap\viewer\common\*.java %VIEW_SRC_PATH%\openolap\viewer\controller\*.java %VIEW_SRC_PATH%\openolap\viewer\dao\*.java %VIEW_SRC_PATH%\openolap\viewer\export\*.java %VIEW_SRC_PATH%\openolap\viewer\jspHelper\*.java %VIEW_SRC_PATH%\openolap\viewer\manager\*.java

copy %VIEW_SRC_PATH%\openolap\viewer\common\viewer.properties %VIEW_EXE_PATH%\openolap\viewer\common\viewer.properties

cd target
jar -cvf viewer.war *
move viewer.war ..
