-
Notifications
You must be signed in to change notification settings - Fork 0
/
clearTest.sh
executable file
·32 lines (29 loc) · 1.07 KB
/
clearTest.sh
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
echo "--------------------------------------------------------------------------------"
echo " INSTALANDO LA APLICACIÓN"
echo "--------------------------------------------------------------------------------"
mvn clean install
if [ $? -ne 0 ]
then
echo "Ocurrió un error al generar los paquetes."
exit 1
fi
echo "--------------------------------------------------------------------------------"
echo " CARGANDO LOS DATOS DE PRUEBA"
echo "--------------------------------------------------------------------------------"
cd criadero-model
mvn exec:java -Dexec.mainClass=ar.uba.fi.criaderoxp.RunInitialLoad -e
if [ $? -ne 0 ]
then
echo "Ocurrió un error al cargar los datos."
exit 1
fi
echo "--------------------------------------------------------------------------------"
echo " LEVANTANDO EL SERVIDOR"
echo "--------------------------------------------------------------------------------"
cd ../criadero-webapp
mvn jetty:run
if [ $? -ne 0 ]
then
echo "Ocurrió un error al iniciar el servidor."
exit 1
fi