This content has been marked as final. Show 3 replies
I can load the file using the following code:
FileInputStream loInputXSLT = new FileInputStream("/var/opt/transformation.xslt");
However... I would really like this xslt file to be located in some sort of resource directory within the jar file... eg: META-INF or something... is this possible?
I tried using getResourceAsStream() as above, however, this does not work...
URL f = Thread.currentThread().getContextClassLoader().findResource("transformation.xslt"); FileInputStream xxx = new FileInputStream(f);
and place transformation.xslt in the base directory of the JAR file.
Thanks for that, thats what I was looking for :)