Issues with loading a resource file in a plugin.

Volodymyr <[email protected]> Mon, 17 Jul 2017 10:26:44 +0300
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hi,

I have yet another issue to be resolved, this seems to be the very basic one, yet I can't solve it for now.


I need to load an resource xml file to get some more autocomletion options. So I load and parse it by using:
======
new File("src/com/forcenb/resources/autocomplete.xml");

======


While it, again, works perfectly in the Run/Debug environment, when it gets installed into the Netbeans as a plugin, IDE log shows it cannot find that file, and a path it refers to starts with Netbeans root folder, e.g. <netbeans_root>/src/com/forcenb/resources/autocomplete.xml.


How do I solve this?


Thanks a lot.