Hi,
I am writing test cases that have to be executed in osgi environment, i have put the test data which is a set of files in the test bundle. I am able to access the test data files using bundle.getResource which returns an URL from which i can get the InputStream for a particular file, but how can i find out all the list of files in a particular folder in the test plugin. In eclispe i could use fileLocator to do this.
/bundle
testdata
one.txt
two.txt
three.txt
folder1
file1.txt
file2.txt
In the above bundle i want to find all the files and folders that are present in the testdata folder.
Best Reards,
Keshav