Archived
0

gradle: генерация скрипта-запускатора в deploy

(cherry picked from commit 23f2b689fe)
This commit is contained in:
2019-01-29 16:31:46 +03:00
parent eed3ea33d4
commit a2e086dac7

View File

@@ -110,8 +110,6 @@ subprojects {
Files.copy(jar.archivePath.toPath(), target)
}
def libsDir = System.getProperty("libs", deployDir+File.separator+"libs")
if (Files.notExists(Paths.get(libsDir))) {
(new File(libsDir)).mkdirs()
@@ -125,6 +123,12 @@ subprojects {
Files.copy(libFile.toPath(), target)
}
}
if (Boolean.valueOf(System.getProperty("createRunScript", "false"))) {
def runnerSh = new File(deployDir, "run.sh")
runnerSh.write "java -cp \"${project(':core').jar.archiveName};"
runnerSh << "./libs/*;./log-impl/*\" mc.core.Main\n"
}
}
}
}