vancetang / reflections

Automatically exported from code.google.com/p/reflections
Do What The F*ck You Want To Public License
0 stars 0 forks source link

Scanning folder with nested jars doesn't scan each jar #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a folder with JARs inside
2. Add URL to ConfigurationBuilder which points to the folder from step 1
3. Fire up Reflections(ConfigurationBuilder)...

What is the expected output? What do you see instead?
Scan each jar or subfolder.

What version of the product are you using? On what operating system?
0.9.8 (Windows 7)

Please provide any additional information below.
Maybe this wasn't intended for scanning hierarchies of folders but it would be 
useful if it did.

Original issue reported on code.google.com by sbul...@gmail.com on 28 Sep 2012 at 8:00

GoogleCodeExporter commented 9 years ago
I also put my required jar files into a sub-folder.  I find that reflections 
can easily find and scan those jars if the full classpath is included in the 
manifest of the main jar file.  Doing that makes life easier for running your 
program as well.

I am using Maven, so creating such a folder of dependencies and listing each 
dependency jar in the manifest is easy using maven-assembly-plugin and 
maven-jar-plugin.

Original comment by enwi...@gmail.com on 26 Jan 2015 at 9:57