This repository was archived by the owner on Jan 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathplay_run.sh
More file actions
executable file
·50 lines (41 loc) · 1.38 KB
/
play_run.sh
File metadata and controls
executable file
·50 lines (41 loc) · 1.38 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
source load_sysconfig.sh
set -e
if [ "$PLAY_HOME" = "" ]; then
echo "assuming play home is at /usr/lib/play"
PLAY_HOME=/usr/lib/play
else
echo "play home is at $PLAY_HOME"
fi
if [ "$WIDGET_HOME" = "" ]; then
echo "assuming current directory is widget home"
WIDGET_HOME=`pwd`
echo "widget home is $WIDGET_HOME"
fi
if [ "$MODULES_HOME" = "" ]; then
echo "MODULES_HOME is undefined. assuming it is at next to WIDGET_HOME"
MODULES_HOME=`pwd`
MODULES_HOME=`dirname $MODULES_HOME`/cloudify-widget-modules
echo "settings modules to $MODULES_HOME"
fi
if [ -f $MODULES_HOME/pom.xml ]; then
CURRENT_DIR=`pwd`
cd $MODULES_HOME/bin
./maven-install-custom.sh
cd $CURRENT_DIR
mvn install -f $MODULES_HOME/pom.xml
else
echo "pom.xml was not found under $MODULES_HOME"
exit 1;
fi
set +e
#this file helps run play with personal configuration
#the me.conf file should have as first line:
#import "application.conf" (or some other file)
#then you should start overriding application configuration
#such as DB details and what not.
#the "dev" folder is ignored by GIT, so fear not to commit it by mistake.
#if you want to debug, simply run "play_run.bat debug".
echo "deleting cloudify.widget artifacts from $PLAY_HOME/repository/cache/cloudify.widget/"
rm -Rf $PLAY_HOME/repository/cache/cloudify.widget/
play $* -Dconfig.file=conf/dev/me.conf run