重新更新.sh文件为unix格式

This commit is contained in:
seagull 2020-03-10 17:50:53 +08:00
parent 266ab6d661
commit 709b2b6b83
5 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
BASE_DIR="."
LIB="${BASE_DIR}/lib"
JAVA_OPTS=" -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=1024k -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/mtdperf.hprof -server -Dfile.encoding=UTF-8"
START_CLASS="springboot.RunService"
echo ${LIB}
for libfile in ${LIB}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
CLASSPATH=${BASE_DIR}:${CLASSPATH}
echo .:${CLASSPATH} ${START_CLASS}
java -cp .:${CLASSPATH} ${START_CLASS} &

View File

@ -0,0 +1,24 @@
#!/bin/sh
BASE_DIR="."
LIB="${BASE_DIR}/lib"
DRIVENPATH="${BASE_DIR}/$2"
JAVA_OPTS=" -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=1024k -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/mtdperf.hprof -server -Dfile.encoding=UTF-8"
START_CLASS="luckyclient.execution.RunAutomationTest $1"
echo ${LIB}
for libfile in ${LIB}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
for libfile in ${DRIVENPATH}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
CLASSPATH=${BASE_DIR}:${CLASSPATH}
echo .:${CLASSPATH} ${START_CLASS}
java -cp .:${CLASSPATH} ${START_CLASS} &

View File

@ -0,0 +1,24 @@
#!/bin/sh
BASE_DIR="."
LIB="${BASE_DIR}/lib"
DRIVENPATH="${BASE_DIR}/$3"
JAVA_OPTS=" -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=1024k -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/mtdperf.hprof -server -Dfile.encoding=UTF-8"
START_CLASS="luckyclient.execution.BatchCaseExecute $1 $2"
echo ${LIB}
for libfile in ${LIB}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
for libfile in ${DRIVENPATH}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
CLASSPATH=${BASE_DIR}:${CLASSPATH}
echo .:${CLASSPATH} ${START_CLASS}
java -cp .:${CLASSPATH} ${START_CLASS} &

View File

@ -0,0 +1,24 @@
#!/bin/sh
BASE_DIR="."
LIB="${BASE_DIR}/lib"
DRIVENPATH="${BASE_DIR}/$4"
JAVA_OPTS=" -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=1024k -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/mtdperf.hprof -server -Dfile.encoding=UTF-8"
START_CLASS="luckyclient.execution.OneCaseExecute $1 $2 $3"
echo ${LIB}
for libfile in ${LIB}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
for libfile in ${DRIVENPATH}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
CLASSPATH=${BASE_DIR}:${CLASSPATH}
echo .:${CLASSPATH} ${START_CLASS}
java -cp .:${CLASSPATH} ${START_CLASS} &

View File

@ -0,0 +1,24 @@
#!/bin/sh
BASE_DIR="."
LIB="${BASE_DIR}/lib"
DRIVENPATH="${BASE_DIR}/$3"
JAVA_OPTS=" -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=512m -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:logs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=1024k -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/mtdperf.hprof -server -Dfile.encoding=UTF-8"
START_CLASS="luckyclient.execution.WebDebugExecute $1 $2"
echo ${LIB}
for libfile in ${LIB}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
for libfile in ${DRIVENPATH}/*.jar ; do
if [ -f $libfile ] ; then
CLASSPATH=$libfile:${CLASSPATH}
fi
done
CLASSPATH=${BASE_DIR}:${CLASSPATH}
echo .:${CLASSPATH} ${START_CLASS}
java -cp .:${CLASSPATH} ${START_CLASS} &