diff --git a/build.gradle b/build.gradle index 676a480..6d1adf3 100644 --- a/build.gradle +++ b/build.gradle @@ -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" + } } } }