moved copy task to gradle

parent 859453e5
......@@ -127,6 +127,14 @@ jib {
}
}
task copyCasConfiguration(type: Copy, group: "build") {
from "etc/cas/config"
into "/etc/cas/config"
doFirst {
mkdir "/etc/cas/config"
}
}
task copyWebAppIntoJib(type: Copy, group: "build") {
dependsOn build
from "build/libs/${casWebApplicationBinaryName}"
......
#!/bin/bash
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
./gradlew copyCasConfiguration "$@"
}
function help() {
......
......@@ -2,7 +2,7 @@
cas.version=6.0.0-RC4-SNAPSHOT
springBootVersion=2.1.0.RELEASE
appServer=
appServer=-tomcat
gradleVersion=5.0
tomcatVersion=9
......
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