File Access in Plugin


I have a few png and text files that I want to ship with my plugin. Getting them into the plugin is not the problem, but accessing them to use them in my textgen and in an editor does not work.

I saw that there is a post about the same problem :

But the proposed solution is either not working or I am doing it wrong. Getting the classLoader of the Module the resources are located and then calling getResource doesnt find the files. One reason might be that the build process seem to build an extra nameOfModule-src.jar instead of putting the files in the nameOfModule.jar.

So how do I correctly acccess a file I have put into the plugin ?

I can put them into the plugin either by sourcePath of the module , or just by copying them into the jar via the build script.





Please sign in to leave a comment.