I have written a small Java plugin in IntellIJ IDEA. This plugin allows me to create a yaml file.
I want to save it in my project structure using the doOKAction function.
If I hard code the path, it will work. But if I run my plugin on another computer it will not work. (Of course)
I would use:
Path root = Paths.get(".").normalize().toAbsolutePath();
but this isn't working...
Because the plugin is not included in the current project structure and i would get something like this :
If there is a way at all, what would be the best way to store a file somewhere in the project structure?
Many thanks and best regards