Hi,
i try to load some *.xsd files for schema validation out of a jar file.
As long as i start the jar file outside the office an connect via remote
everything works fine. The *.xsd files are located inside the jar,
for example: "my/package/resources/schema.xsd"
But if i create an extension, the following code fails, cause
the *.xsd files are not found :-( ...
public InputStream getInputStreamFromFile(final String file) {
final URL url = ClassLoader.getSystemResource(file);
if (url != null)
try {
return url.openStream();
} catch (final IOException e) {
e.printStackTrace();
}
return null;
}
any hint's ?
Oliver
--
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
signature.asc
Description: OpenPGP digital signature
