feat: support executing .jar#4625
Conversation
📝 WalkthroughWalkthroughAdds JAR file execution support by enabling dependency-injected path resolution. Introduces a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
unix.Exec's first argument must be an absolute path.
|
📝 ktfmt-0.61.jar doesn't work. $ _JAVA_OPTIONS="-Duser.language=en -Duser.country=US" ~/go/bin/aqua exec -- ktfmt --help
Picked up _JAVA_OPTIONS: -Duser.language=en -Duser.country=US
Error: Unable to initialize main class com.facebook.ktfmt.cli.Main
Caused by: java.lang.NoClassDefFoundError: kotlin/NoWhenBranchMatchedException |
Close #4623
If
aqua whichreturns a jar file, aqua executes it viajava -jar.Examples
https://github.com/facebook/ktfmt
https://github.com/Homebrew/homebrew-core/blob/352317b7b01c24a0d1cafe8080edf7bec4f36f98/Formula/k/ktfmt.rb#L20