Read a file residing in other plugin [message #1051656] |
Mon, 29 April 2013 04:27 |
Ankit Agarwal Messages: 35 Registered: March 2012 |
Member |
|
|
I have two plugins say A and B.
In my plugin A i have a file readme.txt. it is inside a folder named docs. So i am reading it inside A plugin using a method as :
public void readFile(){
File file = new File("docs/readme.txt");
}
and everything is fine when i run the test case. but now when i call the same method from Plugin B. On executing it from a test case in B. I am not able to read it as the relative path is no more valid. Then how should read it from Plugin B.
Note : I donot have Activator classes in both of these plugins.
[Updated on: Mon, 29 April 2013 04:37] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02301 seconds