Diff
1diff --git a/.gitignore b/.gitignore
2index 51a5ee6c396f012ae162d0d63006d4d8e765b92f..4cb1720e7ca778b4104c88447a9b312b6516289b 100644
3--- a/.gitignore
4+++ b/.gitignore
5@@ -1,7 +1,6 @@
6 locals.zsh
7 log/.zsh_history
8 projects.zsh
9-custom/*
10 !custom/example
11 !custom/example.zsh
12 *.swp
13diff --git a/custom/totvs.zsh b/custom/totvs.zsh
14new file mode 100644
15index 0000000000000000000000000000000000000000..9ef5fd641de56f18c2aeb6482470f458d25710d8
16--- /dev/null
17+++ b/custom/totvs.zsh
18@@ -0,0 +1,74 @@
19+#
20+# Just some utilities for use in ecm development.
21+#
22+
23+setopt rmstarsilent
24+
25+HOME="/home/carlos"
26+ECM_WS="$HOME/totvs/ws"
27+ECM_JBOSS="$HOME/Public/ecm/JBoss-7.1.1"
28+ECM_PORT="8080"
29+VOLDEMORT=$ECM_WS/voldemort
30+ECM=$ECM_WS/ecm
31+INSTALLER="n"
32+
33+# fuckin aliases
34+alias ecmu=ecmup
35+alias ecmb=ecmbuild
36+alias ecmc=ecmclean
37+alias ecms=ecmstart
38+alias ecmo=ecmstop
39+alias ecm=goecm
40+
41+
42+# update ecm
43+ecmup() {
44+ echo "update all the things!"
45+ cd $VOLDEMORT && svn up
46+ cd $ECM && svn up
47+}
48+
49+# build it!
50+ecmbuild() {
51+ vared -p 'build? no problem sir, do you want a installer? (y/N) ' INSTALLER
52+ cd $VOLDEMORT && mvncie
53+ cd $VOLDEMORT/social-ecm
54+ cd $VOLDEMORT/wcm && mvncie
55+ cd $ECM/ecm/wecmpackage && mvncie
56+ cd $VOLDEMORT/ecm && mvncie
57+ if [[ $INSTALLER -eq 'n' ]]; then
58+ cd $VOLDEMORT/ecm/installer
59+ mvnci -am -Drun=installer -DLinux64=true -DappServer=jboss
60+ else
61+ cd $VOLDEMORT/ecm/build && mvnci
62+ cd $VOLDEMORT/social-ecm/build && mvnci
63+ fi
64+}
65+
66+# clean jboss trash folders
67+ecmclean() {
68+ echo "cleaning jboss shit"
69+ rm -rf $ECM_JBOSS/standalone/{deployments/*,log,tmp} 2> /dev/null
70+}
71+
72+# start jboss server
73+ecmstart() {
74+ echo "starting jboss"
75+ JAVA_OPTS="-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true" $ECM_JBOSS/bin/standalone.sh
76+}
77+
78+# stop jboss (usually on 8080)
79+ecmstop() {
80+ echo "kill jboss (or whatever you are running on 8080"
81+ fuser -k $ECM_PORT/tcp
82+}
83+
84+# do all the things
85+goecm() {
86+ echo "serious business here. let's have a coffee.."
87+ ecmstop
88+ ecmclean
89+ ecmbuild && ecmup && ecmstart
90+}
91+
92+
93diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh
94index cde4679819bf236b5f97a19117021bb3fe5dcc13..f250c2a27c183af730dcad34993bc15016aaec02 100644
95--- a/plugins/mvn/mvn.plugin.zsh
96+++ b/plugins/mvn/mvn.plugin.zsh
97@@ -37,7 +37,7 @@ mvn-color()
98 }
99
100 # Override the mvn command with the colorized one.
101-alias mvn="mvn-color"
102+#alias mvn="mvn-color"
103
104 # aliases
105 alias mvncie='mvn clean install eclipse:eclipse'