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-api.jar;.\jsp-api.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;%VIEW_SRC_PATH%\openolap\viewer\chart;%CLASSPATH%;.\target\WEB-INF\lib\jcommon-0.9.5.jar;.\target\WEB-INF\lib\jfreechart-0.9.20.jar
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 %VIEW_SRC_PATH%\openolap\viewer\chart\*.java

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

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