Commit f57c8a1c by wutong

elastic-jobCD/CI

parent 30544d7a
......@@ -113,7 +113,6 @@ fabric.properties
### Eclipse template
.metadata
bin/
tmp/
*.tmp
*.bak
......
@echo off
if ""%1"" == ""-p"" goto doSetPort
if ""%1"" == """" goto doStart
echo Usage: %0 [OPTIONS]
echo -p [port] Server port (default: 8088)
goto end
:doSetPort
shift
set PORT=%1
:doStart
set CFG_DIR=%~dp0%..
set CLASSPATH=%CFG_DIR%
set CLASSPATH=%~dp0..\lib\*;%CLASSPATH%
set CONSOLE_MAIN=io.elasticjob.lite.console.ConsoleBootstrap
echo on
if ""%PORT%"" == """" set PORT=8088
java -cp "%CLASSPATH%" %CONSOLE_MAIN% %PORT%
:end
#!/bin/bash
show_usage() {
echo "Usage: $0 [OPTIONS]"
echo " -p <port> Server port (default: 8088)"
exit 1
}
if [ $# -ne 0 ] && [ $# -ne 2 ]; then
show_usage
fi
port="8088"
if [ $# -eq 2 ]; then
while getopts p: arg
do case "$arg" in
p) port="$OPTARG";;
[?]) show_usage;;
esac
done
fi
if [ "$port" = "" ]; then
show_usage
fi
cd `dirname $0`
cd ..
DEPLOY_DIR=`pwd`
LIB_DIR=${DEPLOY_DIR}/lib/*
CONSOLE_MAIN=io.elasticjob.lite.console.ConsoleBootstrap
java -classpath ${LIB_DIR}:. ${CONSOLE_MAIN} $port
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment