--src
--WebContent
mkdir build/WEB-INF
mkdir build/WEB-INF/classes
find src -name *.java >javaFiles.txt
javac -d build/WEB-INF/classes -cp .:./WebContent/WEB-INF/lib/*:/data/app/apache/apache-tomcat/lib/servlet-api.jar:/data/app/apache/apache-tomcat/lib/jsp-api.jar @javaFiles.txt
cp -r src/* build/WEB-INF/classes
#rm -rf build/WEB-INF/classes/*.java
find build/WEB-INF/classes -name "*.java" -exec rm -rf {} \;
cp -r WebContent/* build
jar -cvf web.war -C build/ .