-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.config
32 lines (25 loc) · 850 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
#!/bin/bash
project=mvnsh
function command_rebuild {
mvn clean install $*
unzip -d target mvnsh-assembly/target/mvnsh-*-bin.zip
}
function command_rebuild_quick {
self rebuild -Dtest=skip -o $*
}
function command_run {
export JAVA_OPTS="-Dshell.logging.file.threshold=DEBUG -Dshell.logging.root-level=DEBUG $JAVA_OPTS"
export MAVEN_OPTS="$JAVA_OPTS"
exec target/mvnsh-*/bin/mvnsh $*
}
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.file.threshold=TRACE -Dshell.logging.root-level=TRACE $JAVA_OPTS"
self run $*
}
function command_kill {
ps -ef | grep target/mvnsh-*/boot/bootstrap.jar | grep -v grep | cut -c7-12 | xargs kill
}