#!/bin/sh
echo Cleaning up compiled templates
rm -fR tomcatadd/webapps/bodington/WEB-INF/template_classes/working
echo Building compiled templates
export build_path=/opt/j2sdk1.4.2/lib/tools.jar:/home/jon/files/bodbuild/bodington_2_1/jakarta-tomcat-4.0.3-LE-jdk14/common/lib/servlet.jar:/home/jon/files/bodbuild/bodington_2_1/tomcatadd/webapps/bodington/WEB-INF/lib/bodserver.jar
export template_dir=tomcatadd/webapps/bodington/templates
export template_class_dir=tomcatadd/webapps/bodington/WEB-INF/template_classes
export bod_home_opt=-Dbodington.home=tomcatadd/webapps/bodington/WEB-INF
echo $build_path
echo $template_dir
echo $template_class_dir
echo $bod_home_opt
/opt/j2sdk1.4.2/bin/java -cp  $build_path $bod_home_opt org.bodington.installation.TemplateBuilder  $template_dir $template_class_dir $build_path
