I am developing an eclipse plugin. In my code I am opening a .java
-file via new File(filePath)
. However the plugin is only able to find that file if I provide the absolute path starting from /home
else I get a java.io.FileNotFoundException
.
The file is included in both Binary Build
and Source Build
under Build
in plugin.xml
:
The file (ReversePolishNotation.java
) is in the package testing
inside the /src
-folder.
It is also included via the build.properties
-file:
I want the plugin to find the file from the projects directory.
This works fine for another file in a different folder (but not in a package).
How do I do that?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…