Add korapxml2krill shortcut

Change-Id: Ie0bd14ecff709bdde9a5d443e57ba6e073d1d8fc
diff --git a/app/build.gradle b/app/build.gradle
index 97af808..555c245 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -149,7 +149,9 @@
     
     def binDir = rootProject.file("build/bin")
     def targetExec = new File(binDir, "korapxmltool")
+    def krillExec = new File(binDir, "korapxml2krill")
     outputs.file(targetExec)
+    outputs.file(krillExec)
 
     doLast {
         def shebang = rootProject.file("korapxmltool.shebang")
@@ -162,12 +164,29 @@
 
         def targetJar = shadowJar.archiveFile.get().asFile
 
+        // Create main korapxmltool executable
         targetExec.withOutputStream { os ->
             os << shebang.bytes
             os << targetJar.bytes
         }
         targetExec.setExecutable(true, false)
         println "Created executable launcher: ${targetExec}"
+
+        // Create korapxml2krill symlink for backward compatibility
+        if (krillExec.exists()) {
+            krillExec.delete()
+        }
+        try {
+            java.nio.file.Files.createSymbolicLink(
+                krillExec.toPath(),
+                java.nio.file.Paths.get("korapxmltool")
+            )
+            println "Created symlink: korapxml2krill -> korapxmltool"
+        } catch (Exception e) {
+            println "Warning: Could not create korapxml2krill symlink (${e.message}), copying instead"
+            java.nio.file.Files.copy(targetExec.toPath(), krillExec.toPath())
+            krillExec.setExecutable(true, false)
+        }
     }
 }