playing with jspreadsheet

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-03-20 08:26:45 +01:00
parent 62981b22b5
commit a2e2643020
4 changed files with 102 additions and 20 deletions

View File

@@ -11,3 +11,20 @@ tasks.processResources {
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
fun download(url : String, destination : String){
var destFile = projectDir.toPath().resolve(destination).toFile();
destFile.parentFile.mkdirs()
if (!destFile.exists()) {
System.out.println("Downloading "+url)
ant.invokeMethod("get", mapOf("src" to url, "dest" to destFile))
}
}
tasks.register("downloadLib"){
download("https://bossanova.uk/jspreadsheet/v5/jspreadsheet.js", "src/main/resources/web/js/jspreadsheet-ce.js")
}
tasks.named("compileJava") {
dependsOn("downloadLib")
}