I am writing test cases that should be run in the osgi environment, I put in test data, which is a collection of files in a test suite. I can access the test data files using bundle.getResource, which returns a URL from which I can get an InputStream for a specific file, but how can I find out the entire list of files in a specific folder in the test plugin. In eclispe, I could use fileLocator for this.
/ bundle TestData one.txt two.txt three.txt folder1 file1.txt file2.txt
In the above package I want to find all the files and folders that are present in the testdata folder.
Best backdrops,Keshav
If you know which package contains the information, use Bundle.findEntries or Bundle.getEntryPaths.
(, , ..), , . JAR. , HTTP-. , , , . JAR, JAR , , java.util.zip. ClassLoader , (, OSGi).