mirror of
https://gitee.com/BDWare/router-backend
synced 2026-02-14 23:49:25 +00:00
chore: add scripts and set tools
This commit is contained in:
13
build.gradle
13
build.gradle
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user