#!/bin/bash
export JAVA_HOME=/usr/java/jdk1.6.0_18
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/jaxrpc.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
export CLASSPATH=$CLASSPATH:$LIBPATH/mail.jar:$LIBPATH/jep.jar:$LIBPATH/poi-3.1-FINAL-20080629.jar:$LIBPATH/poi-contrib-3.1-FINAL-20080629.jar:$LIBPATH/poi-scratchpad-3.1-FINAL-20080629.jar:$LIBPATH/jaxrpc.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
# echo $JAVA_HOME/bin/java -version
# echo $CLASSPATH

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