Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
89614be1
Commit
89614be1
authored
Nov 21, 2012
by
Carlos Alexandro Becker
Browse files
param -i para gerar installer
parent
50e538ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
custom/totvs.zsh
View file @
89614be1
...
@@ -18,8 +18,8 @@ alias ecmb=ecmbuild
...
@@ -18,8 +18,8 @@ alias ecmb=ecmbuild
alias
ecmc
=
ecmclean
alias
ecmc
=
ecmclean
alias
ecms
=
ecmstart
alias
ecms
=
ecmstart
alias
ecmo
=
ecmstop
alias
ecmo
=
ecmstop
alias
ecm
=
goecm
alias
ecm
i
=
ecminstall
alias
ecm
=
ecmfull
# update ecm
# update ecm
ecmup
()
{
ecmup
()
{
...
@@ -30,19 +30,31 @@ ecmup() {
...
@@ -30,19 +30,31 @@ ecmup() {
# build it!
# build it!
ecmbuild
()
{
ecmbuild
()
{
vared
-p
'build? no problem sir, do you want a installer? (y/N) '
INSTALLER
echo
"build? no problem sir..."
case
$@
in
-
*
i
*
)
INSTALLER
=
y
;;
esac
cd
$VOLDEMORT
&&
mvncie
cd
$VOLDEMORT
&&
mvncie
cd
$VOLDEMORT
/social-ecm
cd
$VOLDEMORT
/social-ecm
cd
$VOLDEMORT
/wcm
&&
mvncie
cd
$VOLDEMORT
/wcm
&&
mvncie
cd
$ECM
/ecm/wecmpackage
&&
mvncie
cd
$ECM
/ecm/wecmpackage
&&
mvncie
cd
$VOLDEMORT
/ecm
&&
mvncie
cd
$VOLDEMORT
/ecm
&&
mvncie
if
[[
$INSTALLER
-eq
'y'
]]
;
then
ecminstall
cd
$VOLDEMORT
/ecm/installer
}
mvnci
-am
-Drun
=
installer
-DLinux64
=
true
-DappServer
=
jboss
else
# gen installer or cp wars...
cd
$VOLDEMORT
/ecm/build
&&
mvnci
ecminstall
()
{
cd
$VOLDEMORT
/social-ecm/build
&&
mvnci
if
[[
"
$INSTALLER
"
==
"y"
]]
;
then
fi
cd
$VOLDEMORT
/ecm/installer
mvnci
-am
-Drun
=
installer
-DLinux64
=
true
-DappServer
=
jboss
else
cd
$VOLDEMORT
/ecm/build
&&
mvnci
cd
$VOLDEMORT
/social-ecm/build
&&
mvnci
fi
}
}
# clean jboss trash folders
# clean jboss trash folders
...
@@ -53,8 +65,11 @@ ecmclean() {
...
@@ -53,8 +65,11 @@ ecmclean() {
# start jboss server
# start jboss server
ecmstart
()
{
ecmstart
()
{
echo
"starting jboss"
# why shall I start server if i just gen a installer?
JAVA_OPTS
=
"-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true"
$ECM_JBOSS
/bin/standalone.sh
if
[[
"
$INSTALLER
"
==
"y"
]]
;
then
echo
"starting jboss"
JAVA_OPTS
=
"-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true"
$ECM_JBOSS
/bin/standalone.sh
fi
}
}
# stop jboss (usually on 8080)
# stop jboss (usually on 8080)
...
@@ -64,7 +79,7 @@ ecmstop() {
...
@@ -64,7 +79,7 @@ ecmstop() {
}
}
# do all the things
# do all the things
go
ecm
()
{
ecm
full
()
{
echo
"serious business here. let's have a coffee.."
echo
"serious business here. let's have a coffee.."
ecmstop
ecmstop
ecmclean
ecmclean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment