move shell commands to gradle

parent 95510177
......@@ -39,6 +39,15 @@ def casWebApplicationBinaryName = "cas.war"
tasks.findByName("build").mustRunAfter("setExecutable")
afterEvaluate { project ->
println "******************************************************************"
println "Apereo CAS $casServerVersion"
println "Enterprise Single SignOn for all earthlings and beyond"
println "- https://github.com/apereo/cas"
println "- https://apereo.github.io/cas"
println "******************************************************************"
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
......@@ -313,6 +322,20 @@ task createKeystore (type:Exec, group: "build", description: "Create CAS keystor
}
}
task listTemplateViews (group: "build", description: "Create CAS keystore") {
dependsOn explodeWar
doFirst {
def explodedDir="${buildDir}/cas"
fileTree(explodedDir).matching {
include "**/*.html"
}
.collect { it.name }
.toSorted()
.each { println it }
}
}
def isRunningCasServerSnapshot(casServerVersion) {
return "${casServerVersion}".contains("-SNAPSHOT")
}
......@@ -89,9 +89,7 @@ function jibdocker() {
}
function listviews() {
explodeApp
explodedDir=build/cas
find $explodedDir -type f -name "*.html" | xargs -n 1 basename | sort | more
./gradlew listTemplateViews "$@"
}
function explodeApp() {
......
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