728x90
반응형
#!/bin/bash
##########################################################################
# File Upload BATCH PROGRAM
#
# 2009.02.09
#
# make by LEE TAE YOUNG
##########################################################################
#-------------------------------------------------------------------------
# java export
#-------------------------------------------------------------------------
echo "========================= clover plaza File Upload batch start ======================"
echo " start time : `date`"
export JAVA_HOME=/usr/local/java
export JAVA_BIN=$JAVA_HOME/bin
export JAVA_LIB=$JAVA_HOME/lib
export TOMCAT_HOME=/usr/local/apache-tomcat-6.0.18
export PATH=.:$JAVA_BIN:$PATH
export PRJ_HOME=$TOMCAT_HOME/webapps/ROOT
#export PRJ_HOME=/export/home/tylee/clover/CLOVER_click
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/ibatis-2.3.0.677.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/ibatis-common-2.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/ibatis-dao-2.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/ibatis-sqlmap-2.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/NetComponents-1.3.8.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/postgresql-8.1-405.jdbc3.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/log4j-1.2.15.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/commons-logging.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/jce-jdk13-119.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/xercesImpl.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/xmlParserAPIs.jar; export CLASSPATH
CLASSPATH=$CLASSPATH:$PRJ_HOME/WEB-INF/lib/j2ssh.jar; export CLASSPATH
export CLASSPATH=.:$CLASSPATH
cd $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes
#-------------------------------------------------------------------------
# java excute
#-------------------------------------------------------------------------
BATCHPROPERTIES=batch.properties
ERROR=0
java -Dfile.encoding=UTF-8 jp.or.cloverplaza.batch.FileUploadBatch $BATCHPROPERTIES >> $TOMCAT_HOME/clover_logs/batch/batch_FileUpload_$(date +%Y%m%d).log
ERROR=$?
exit $ERROR
echo " end time : `date`"
echo "========================= clover plaza File Upload batch end ======================="
728x90
반응형