killme2008 / killme2008/aviatorscript
【重开】【历史 Issue】compileScript 获取 jar 包内部文件的方案讨论
- Dominant language
- Java
- Stars
- 5.2k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
基于历史 Issue 的一个讨论:https://github.com/killme2008/aviatorscript/issues/673
当前 compileScript 方法仅提供了 path 作为入参的调用方法,不支持自行封装(如果有可以满足需求,且 elegant 的方法建议,劳烦指教)。
在 将 aviator 作为 基建 jar 接入时,由于Java 原生以下的特性:
1. jar 包内部的文件无法直接通过 File 或 Path 操作。
2. 必须通过类加载器以流的方式访问资源。
所以希望能够 review + approve, https://github.com/killme2008/aviatorscript/pull/659
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the compileScript entry point and read historical issue 673 for the existing discussion. Review pull request 659 to understand the proposed approach for accessing files inside a jar through the class loader; completion should provide an approved solution beyond the current path-only API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100