5b569149f33a2eadd29f303a3e2f09d9e3c67c2e
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh
2index 28d49d73b89562836ccad992bc51ba1f73ef5baa..a6cd4edd14d9ea4ba72ae1da2483a083ce32143c 100644
3--- a/plugins/mvn/mvn.plugin.zsh
4+++ b/plugins/mvn/mvn.plugin.zsh
5@@ -22,34 +22,31 @@ RESET_FORMATTING=$(tput sgr0)
6
7 # if found an executable ./mvnw file execute it otherwise execute orignal mvn
8 mvn-or-mvnw() {
9- if [ -x ./mvnw ] ; then
10- echo "executing mvnw instead of mvn"
11- ./mvnw "$@";
12+ if [ -x ./mvnw ]; then
13+ echo "executing mvnw instead of mvn"
14+ ./mvnw "$@"
15 else
16- mvn "$@";
17+ mvn "$@"
18 fi
19 }
20
21 # Wrapper function for Maven's mvn command.
22 mvn-color() {
23- (
24- # Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations
25- unset LANG
26- LC_CTYPE=C mvn "$@" | sed \
27- -e "s/\(\[INFO\]\)\(.*\)/${TEXT_BLUE}${BOLD}\1${RESET_FORMATTING}\2/g" \
28- -e "s/\(\[DEBUG\]\)\(.*\)/${TEXT_RED}${BOLD}\1${RESET_FORMATTING}\2/g" \
29- -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
30- -e "s/\(\[WARNING\]\)\(.*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}\2/g" \
31- -e "s/\(\[ERROR\]\)\(.*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}\2/g" \