Skip to content

Commit

Permalink
parse DEBUG added, mcist added
Browse files Browse the repository at this point in the history
  • Loading branch information
ibanadiga committed Sep 10, 2013
1 parent 53bb436 commit 6b4066e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.*~

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The script is intended to be run on CLI shell startup.
In addition to the coloring function, it creates the following aliases:
* **mvnc** - to run "mvn" with color highlighting
* **mci** - to run "mvn clean install" with color highlighting
* **mcist** - to run "mci -Dmaven.test.skip=true -Dmaven.it.skip=true" with color highlighting

**Note:** any extra params for **mvnc** will be proxied to **mvn**

Expand Down
6 changes: 4 additions & 2 deletions maven-color.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ color_maven() {
-e "s/\(FAILURE.*\)/${BRED}\1${NORMAL}/g" \
-e "s/\(\[WARNING\].*\)/${YELLOW}\1${NORMAL}/g"\
-e "s/\(\[INFO\].*\)/${GREEN}\1${NORMAL}/g" \
-e "s/\(\[DEBUG\].*\)/${GREEN}\1${NORMAL}/g" \
-e "s/\(\[INFO\].*SUCCESS.*\)/${BGREEN}\1${NORMAL}/g" \
-e "s/\(\[INFO\].*FAILURE.*\)/${BRED}\1${NORMAL}/g" \
-e "s/\(\[INFO\].*SKIPPED.*\)/${BYELLOW}\1${NORMAL}/g"
}

# Short alias
alias mvnc=color_maven # To run eny maven comand with color highlighting
alias mci="mvnc clean install" # To run mvn clean install with color highlighting
alias mvnc=color_maven # To run eny 'maven' comand with color highlighting
alias mci="mvnc clean install" # To run 'mvn clean install' with color highlighting
alias mcist="mci -Dmaven.test.skip=true -Dmaven.it.skip=true" # For run 'mvn clean install -Dmaven.test.skip=true -Dmaven.it.skip=true' with color highlighting

0 comments on commit 6b4066e

Please sign in to comment.