-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.config
36 lines (28 loc) · 969 Bytes
/
build.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
project=gshell
function command_rebuild {
rm -rf target
mvn clean install $*
unzip -d target gshell-assembly/target/gshell-*-bin.zip
}
function command_rebuild_quick {
self rebuild -Dtest=skip $*
}
function command_run {
export JAVA_OPTS="-Dshell.logging.file.threshold=DEBUG -Dshell.logging.root-level=DEBUG $JAVA_OPTS"
exec target/gshell-*/bin/gsh -e $*
}
function command_debug {
export JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 $JAVA_OPTS"
self run $*
}
function command_run_trace {
export JAVA_OPTS="-Dcom.planet57.gossip.Log.threshold=TRACE -Dshell.logging.logger.Sisu.level=TRACE -Dshell.logging.file.threshold=TRACE -Dshell.logging.root-level=TRACE $JAVA_OPTS"
self run $*
}
function command_run_mvn {
mvn -N com.planet57.gshell:gshell-maven-plugin:LATEST:run $*
}
function command_kill {
ps -ef | grep target/gshell-*/boot/bootstrap.jar | grep -v grep | cut -c7-12 | xargs kill
}