|[Wtp-wst-dev] Reading directory from a Plugin|
cache/OAGI/OAGIS8.0Where the above is the root directory for the schemas. I'm trying to set this up for reading as a File, using the following code:
IEnvironment environment = EnvironmentService.getEclipseConsoleEnvironment();
IURIFactory factory = environment.getURIFactory();IURI uri1 = factory.newURI(pluginPath + xsdRepositoryPath + "OAGI/OAGIS8.0");
Assert.assertTrue(uri1.isAvailableAsURL()); Assert.assertTrue(uri1.isAvailableAsFile());The assertion for isAvailableAsURL passes, the check for isAvailableAsFile fails. Is there anything special that needs to be done to make this so that it can work with the File object?
Back to the top