ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Improvement]: Support adding resources from compiler plugins to the final executable

Open Dilhasha opened this issue 1 year ago • 0 comments

Description

When compiler plugins generate resources and write to the target, at the code generation phase, these resources can be extracted and added to the final executable.

Describe your problem(s)

  • The current approach for user provided resources - adds resources with a package specific path. So, accessing the resource is not possible without knowing the package which added the resource

  • There's no mechanism to add resources from compiler plugin to the final executable

Describe your solution(s)

  • User provided resources - remove package specific path and add the resources directly to the base

  • Resources from compiler plugins - When compiler plugins generate resources and write to the target, at the code generation phase, these resources can be extracted and added to the final executable.

Related area

-> Other Area

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Dilhasha avatar Jul 04 '24 06:07 Dilhasha