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

Resources Are Not Added To Jar When Debugging With IDEA #5035

Closed
opticyclic opened this issue Mar 19, 2021 · 3 comments
Closed

Resources Are Not Added To Jar When Debugging With IDEA #5035

opticyclic opened this issue Mar 19, 2021 · 3 comments

Comments

@opticyclic
Copy link

When debugging a function using IDEA it is not possible to get resources from the classpath. e.g. application.properties

I paused the debugger and found a jar in /tmp/azure-functions10656607994858773786/.

When I unzipped the jar it only contained compiled classes and none of the resource files.

When I run the gradle task the resources are in the jar.

When I run the compile task from idea the files are in the out/production/resources directory as expected.

How are you creating the jar for debugging and why are you excluding the resource files?

@Flanker32
Copy link
Member

@opticyclic Thanks a lot for your report, @andxu Could you please investigate this issue?

@opticyclic
Copy link
Author

See also this related issue #5038

@Flanker32 Flanker32 pinned this issue Dec 1, 2021
@andxu andxu added this to the v3.60.0 milestone Dec 2, 2021
@andxu
Copy link
Contributor

andxu commented Dec 17, 2021

Fixed in #6225

@andxu andxu closed this as completed Dec 17, 2021
@andxu andxu unpinned this issue Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants