#!/bin/bash
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
export PATH=$JAVA_HOME/bin:$PATH
export LIBPATH=/home/manohar/software/baseproject/ejb3/lib
export CLASSPATH=$JAVA_HOME/jre/lib/rt.jar
export CLASSPATH=$CLASSPATH:$LIBPATH/uuid-2.1.5.jar:$LIBPATH/ibase-common.jar:$LIBPATH/ibase-webitm.jar:$LIBPATH/ibase-scheduler.jar:$LIBPATH/jboss-javaee.jar:$LIBPATH/jboss-ejb3-common-client.jar:$LIBPATH/jboss-ejb3-core-client.jar:$LIBPATH/log4j.jar:$LIBPATH/ibase-webitm-adm.jar:$LIBPATH/ibase-webitm-dis.jar:$LIBPATH/ibase-webitm-fin.jar:$LIBPATH/ibase-webitm-mfg.jar:$LIBPATH/ibase-webitm-sys.jar:$LIBPATH/webitm4-stubs.jar:$LIBPATH/servlet-api.jar:$LIBPATH/xerces.jar:$LIBPATH/axis.jar:$LIBPATH/easclient.jar:$LIBPATH/classes12.jar:$LIBPATH/poi-3.1-FINAL-20080629.jar:$LIBPATH/poi-contrib-3.1-FINAL-20080629.jar:$LIBPATH/poi-scratchpad-3.1-FINAL-20080629.jar
# echo $JAVA_HOME/bin/java -version
# echo $CLASSPATH

$JAVA_HOME/bin/javac -deprecation -d classes ibase/webitm/ejb/dis/*.java 
cd classes
# cp -f -R WEBITM-ADM-META-INF/*.* META-INF/*.*
jar -cvfM ../ibase-webitm-stkhelp1-0-0.jar  ibase/webitm/ejb/dis/*.class
