Hi,
I have a simple annotation,
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
public @interface Test {
String name();
}
I can get classes having this annotation when they are in my project. When I
move those classes to an external jar the classes are not found.
Reflections reflections = new Reflections(new ConfigurationBuilder()
.setUrls(ClasspathHelper.forPackage(packageName))
.setUrls(ClasspathHelper.forWebInfLib(servletContext)));
Set<Class<?>> annotated = reflections.getTypesAnnotatedWith(Test.class);
If I package my external jar with the source code (.java files) it starts
working.
Have you heard something like that ???
Thanks a lot !
Original issue reported on code.google.com by pierrelu...@gmail.com on 18 Nov 2012 at 3:55
Original issue reported on code.google.com by
pierrelu...@gmail.com
on 18 Nov 2012 at 3:55