-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ProjectAssetManager doesn't load resources from dependency Jar files in Gradle projects #373
Comments
And then there is this, not maybe 100% related but: If I create a scene file to the Gradle template... It doesn't seem to understand it is a jME project or something.... |
Yes - I noticed that. Similar, in that I think it is to do with the With SDK3.4, if I create a new Gradle project, the Asset node gets created in the Project view. This appears to be when the But when Opening an existing project (or restarting SDK), the Asset node doesn't get created, and assets can't be viewed in the SDK. My hunch was that if it were possible to fix the detection of the |
I also did some experimentation at trying to get the classpaths out of NB's Gradle API, so that compiled jars could be classloaded to load assets from dependencies. No joy so far, every when trying to mimic NB's Gradle classpath tests 🤷 |
I'm acquiring some knowledge around this when figuring out how and which icons are loaded. I'll keep a look out, too, and report back. |
It would be super cool to get the kinks ironed out from the Gradle template to the SDK 3.5 release (slated for next month). |
Hmm, is this issue totally unrelated? #266 |
Close? |
As mentioned by @yaRnMcDonuts in #305 :
This happens because the Materials Editor does two things:
.j3m
extensionPart 1) still works, and will find .j3m files in the
/assets
folder/sub-project, but theProjectAssetManager
class is using NB's Java Project API to the files on the classpath, and its not returning the files for Gradle projects.ProjectAssetManager
needs to be extended to be "Gradle-aware" and probably use NB's Gradle Java Projects API to locate the dependency .jars (after a priming build) in Gradle projects and load the materials from them.This would probably fix a bunch of other things that are squiffy in Gradle projects, like the textures browser etc.
The text was updated successfully, but these errors were encountered: