Unverified Commit 7d601c84 authored by Misagh Moayyed's avatar Misagh Moayyed
Browse files

updated

parent 72cfc0bb
......@@ -21,6 +21,12 @@ The `etc` directory contains the configuration files and directories that need t
./build.sh package
```
To update `SNAPSHOT` versions run:
```bash
./build.sh package -U
```
# Deployment
## Embedded Tomcat
......
#!/bin/bash
echo -e "Creating configuration directory under /etc/cas"
mkdir -p /etc/cas/config
echo -e "Copying configuration files"
cp -rfv etc/cas/* /etc/cas
function copy() {
echo -e "Creating configuration directory under /etc/cas"
mkdir -p /etc/cas/config
echo -e "Copying configuration files from etc/cas to /etc/cas"
cp -rfv etc/cas/* /etc/cas
}
function help() {
echo "Usage: build.sh [clean|package|install|run]"
echo "Usage: build.sh [copy|clean|package|run]"
}
function clean() {
./mvnw clean
./mvnw clean "$@"
}
function package() {
./mvnw clean package -T 5
./mvnw clean package -T 5 "$@"
copy
}
function install() {
./mvnw clean package install -T 5
}
function run() {
install && java -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n -jar target/cas.war
package && java -Xdebug -Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n -jar target/cas.war
}
if [ $# -eq 0 ]; then
......@@ -32,23 +33,24 @@ if [ $# -eq 0 ]; then
exit 0
fi
for var in "$@"
do
case "$var" in
"clean")
clean
;;
"package")
package
;;
"install")
install
;;
"run")
run
;;
*)
help
;;
esac
done
case "$1" in
"copy")
copy
;;
"clean")
shift
clean "$@"
;;
"package")
shift
package "$@"
;;
"run")
run "$@"
;;
*)
help
;;
esac
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment