chore: add scripts and set tools

This commit is contained in:
Frank.R.Wu
2021-10-29 17:47:47 +08:00
parent 312b3336bb
commit 38970a3fca
5 changed files with 72 additions and 2 deletions

View File

@@ -40,11 +40,20 @@ jar {
}
}
tasks.processResources.dependsOn(":web-client:copyToCluster")
tasks.processResources.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
task prepareWebContent(type: Exec) {
if (System.properties['os.name'].toString().toLowerCase().contains('windows')) {
commandLine "rmdir", ".\\WebContent"
commandLine "mklink", "/j", "..\\router-frontend\\src", ".\\WebContent"
} else {
commandLine "rm", "./WebContent"
commandLine "ln", "-s", "../router-frontend/src", "./WebContent"
}
}
task copyScript(type: Copy) {
from("../script/") {
from("./script/") {
include 'ncstart.sh'
include 'ncstop.sh'
include 'ncconfig.json.template'