</copy>
<javac srcdir="${build}" encoding="utf-8" debug="true" verbose="false">
<classpath>
+ <dirset dir="${lib}" />
<fileset dir="${lib}" />
<fileset dir="${nativelib}" />
</classpath>
DIR_LIB=$DIR_HOME/lib
DIR_CONFIG=$DIR_HOME/conf
-JARS=`find $DIR_LIB -name "*.jar"`
-
-JAR=""
-for JAR_FILE in $JARS; do
- JAR=$JAR:$JAR_FILE
+LIBS=`find $DIR_LIB -maxdepth 1`
+LIB=""
+for LIB in $LIBS; do
+ CLASSPATH=$CLASSPATH:$LIB
done
-CLASSPATH=$DIR_CONFIG:$JAR
-
+CLASSPATH=$DIR_CONFIG:$CLASSPATH
OPT_LOGGING="-Dlog4j.configuration=log4j.xml"
OPT_DIR_HOME="-Dcli.home=$CLI_HOME"
OPT_PRG_NAME="-Dcli.name=$SCRIPT"
for SRC in ${INCLUDING_LIB_SRC_LIST}
do
TARGET=`find $ROOTDIR -name "${SRC}" | head -1`
- cp ${TARGET} ${NATIVE_LIB}
- jar -xvf ${TARGET} lib
+ case "${TARGET}" in
+ *.jar)
+ cp ${TARGET} ${NATIVE_LIB}
+ jar -xvf ${TARGET} lib
+ ;;
+ *)
+ cp -rf ${TARGET} ${NATIVE_LIB}
+ find -name '*.jar' -exec cp {} ${NATIVE_LIB} \;
+ ;;
+ esac
done
}
build()
for SRC in ${INCLUDING_LIB_SRC_LIST}
do
TARGET=`find $ROOTDIR -name "${SRC}" | head -1`
- cp ${TARGET} $LIB
- jar -xvf ${TARGET} lib
+ case "${TARGET}" in
+ *.jar)
+ cp ${TARGET} ${LIB}
+ jar -xvf ${TARGET} lib
+ ;;
+ *)
+ cp -rf ${TARGET} ${LIB}
+ find -name '*.jar' -exec cp {} ${LIB} \;
+ ;;
+ esac
done
cp $PROJECT_HOME/lib/*.jar $LIB