Hi Luiz, Afaik, that's not possible, by the very nature of classloading in Java.
What you can do is use a dependency injection container to specify the steps classes. Else you may want to consider the groovy example, but the difference there is that the Java classes are compiled on the fly from the groovy source. Cheers On 2 Sep 2011, at 17:30, luis <[email protected]> wrote: > Hi all, > > > I've been looking around the documentation and the mailing-lists but > so far I have had no luck with this... here's what I'd like to do: be > able to specify the files from where the Steps should be read from by > using a pattern matching kind of scheme, like what we can do for > stories with the StoryFinder: > > new > StoryFinder().findPaths(CodeLocations.codeLocationFromClass(this.getClass()), > "**/*.story", ""); > > instead of specifying all the steps files that we wish to use, like this: > > @UsingSteps(instances = {FirstStepsFile.class, SecondStepsFile.class, > OhNoAnotherStepsFile.class, WhydidIWriteSoManyStepsFile.class, ....}) > > > Anyone has any idea on how to do this? > > > Thanks in advance, > L. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
