Friday, May 13, 2016

Inspecting TIBCO BE and BW ear files after build ear or studio tools

[ ! -f "${1}" ] && echo "$0: missing archive as argument." && exit 1;
[ -d ./ear ] && rm -fr ./ear
mkdir ear
cd ear
CWD=`pwd`
unzip ../${1}
unzip *.ear
mkdir sar par lib bar
cd $CWD/par
[ -f ../*.par ] && unzip ../*.par
cd $CWD/sar
[ -f ../*.sar ] && unzip ../*.sar
cd $CWD/bar
[ -f ../be.jar ] && unzip ../be.jar
cd $CWD/lib
[ -f ../lib.zip ] && unzip ../lib.zip

No comments:

Post a Comment