runjetty

#!/bin/bash

if [ -z ${log_home} ] ; then
    log_home="/tmp/logs/jersey-app"

    if [ ! -d ${log_home} ] ; then
        mkdir -p ${log_home}
    fi
fi

export root_dir=$0/..

export GRADLE_OPTS=" -XX:PermSize=128M -XX:MaxPermSize=256m -Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=6096"

if [ "z"$JREBEL_HOME != "z" ] ; then
export GRADLE_OPTS=" -noverify -agentpath:$JREBEL_HOME/libjrebel64.so -Drebel.jersey_plugin=true -Drebel.spring_plugin=true -Drebel.ibatis_plugin=true -Drebel.disable_update=true $GRADLE_OPTS"
fi

gradle -p $root_dir --no-daemon clean jettyRun -PdevRunLocalJettyServer -Dapp.log.home=${log_home} -DhttpPort=6094 -DstopPort=6095



yangjianzhou@OptiPlex-9020:~/github/jersey-app$ gradle  --version 

------------------------------------------------------------
Gradle 2.4
------------------------------------------------------------

Build time:   2015-05-05 08:09:24 UTC
Build number: none
Revision:     5c9c3bc20ca1c281ac7972643f1e2d190f2c943c

Groovy:       2.3.10
Ant:          Apache Ant(TM) version 1.9.4 compiled on April 29 2014
JVM:          1.7.0_79 (Oracle Corporation 24.79-b02)
OS:           Linux 4.2.0-16-generic amd64



Building 80% > :jettyRun > Running at http://localhost:6094/jersey-app


你可能感兴趣的:(runjetty)