Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a solution to load resource files from ballerina #9890

Open
anuruddhal opened this issue Aug 3, 2018 · 0 comments
Open

Need a solution to load resource files from ballerina #9890

anuruddhal opened this issue Aug 3, 2018 · 0 comments
Labels
Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement

Comments

@anuruddhal
Copy link
Member

anuruddhal commented Aug 3, 2018

Description:
As per the current packerina design, we have the following data structure for a ballerina project.

├── Ballerina.toml
├── .ballerina
├── pkg_a
│   └── a.bal
├── pkg_b
│   └── b.bal
├── pkg_c
│   └── c.bal
├── resource
│   └──  hello.yaml
└── target

In order to read the resource/hello.yaml from a.bal we have to provide the absolute path of the file. This is not scalable.

We can't provide the relative path as the relative path is dependent on where ballerina run/build command is executed

Steps to reproduce:

Affected Versions:
0.980.1

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

@NatashaWso2 NatashaWso2 added the Team/StandardLibs All Ballerina standard libraries label Sep 11, 2018
@kalaiyarasiganeshalingam kalaiyarasiganeshalingam added Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime and removed Team/StandardLibs All Ballerina standard libraries labels Jul 27, 2020
@warunalakshitha warunalakshitha added Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) and removed Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement
Projects
None yet
Development

No branches or pull requests

5 participants