I have a Resource object (org.springframework.core.io.ClassPathResource). I need to get File object, but resource.getFile(
) throws an exeption File not Found. but after invoking resource.getURI()
I have a result
jar:file:/D: .... file.jar!/com//test/0be14958-3778-40bf-bd3e-ee605fcdd3f0/verify
Directory is located in jar file. Is it possible to workaround limitation for ClassPathResource and create a File object?
I've tried a new File(resource.getURI()) but it fails with java.lang.IllegalArgumentException: URI is not hierarchical
what is my fault?