gradle: генерация скрипта-запускатора в deploy
This commit is contained in:
@@ -110,8 +110,6 @@ subprojects {
|
|||||||
Files.copy(jar.archivePath.toPath(), target)
|
Files.copy(jar.archivePath.toPath(), target)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def libsDir = System.getProperty("libs", deployDir+File.separator+"libs")
|
def libsDir = System.getProperty("libs", deployDir+File.separator+"libs")
|
||||||
if (Files.notExists(Paths.get(libsDir))) {
|
if (Files.notExists(Paths.get(libsDir))) {
|
||||||
(new File(libsDir)).mkdirs()
|
(new File(libsDir)).mkdirs()
|
||||||
@@ -125,6 +123,12 @@ subprojects {
|
|||||||
Files.copy(libFile.toPath(), target)
|
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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user