I'm not sure if
Reflections can help me here...
I'm looking for a way to recursively copy/extract a directory taken from the classpath (in a
.jar) to a file system directory.
Let's say the directory on the classpath is located at "/some/directory" and that this entry is unique on the classpath (no duplicate).
Is there a way Reflections can help extracting such directory? This extraction doesn't seem to be a trivial task as you first need to find the exact .jar containing the directory in order to loop over its ZipEntry objects and copy them.
Can
Reflections help find the path to the
.jar a directory is in? I would then use
ZipFile zipFile = new ZipFile(jarFilePath);
and copy its entries to the file system...
Thanks!