Hi Shane.

I want to find out why the extensions.threaded.swing behaviours were being run before we change the AllBehaviours back to using a BehavioursLoader. Also, the build now takes 13 seconds on my machine rather than 30, so there was definitely some duplication happening.

I've found that the AllBehaviours were easy enough to maintain because in general you are only adding one new Behaviour class at a time.

Cheers,
Dan

Shane Duan wrote:
Hi Dan,

That change was mine, done several month ago.

I think jbehave.AllBehaviours should be reverted to include all other
AllBehaviours individually but are you sure you want to hard wire all
other AllBehaviours one by one?  It would be a nightmare to maintain
that list.

Hope this makes sense.

Regards,
Shane

On 12/1/06, Dan North <[EMAIL PROTECTED]> wrote:

 Hi folks.

 I'm finding I can't run isolated sets of behaviours, due to the sudden
proliferation of some magic code, namely:

         return new
BehavioursLoader(getClass()).loadBehaviours();

 This magic is a lot less expressive than listing the behaviours in each
extension (especially since many of them only have one behaviour class).

 I was trying to run jbehave.AllBehaviours, which contains these:

                 jbehave.core.AllBehaviours.class,
                 jbehave.ant.AllBehaviours.class,
                 jbehave.jmock.AllBehaviours.class,
                 jbehave.junit.AllBehaviours.class,
                 jbehave.core.story.AllBehaviours.class

 However, I was getting failures from
jbehave.extensions.threaded.swing. Not good (the fact it
was running at all, not the errors).

So, I've reverted the above AllBehaviours classes to hard-wired behaviours.

I noticed in reverting them that the build now runs the same 168 behaviours
twice, so this magic was also masking a duplication in the build.xml.

 Please, in future, do not make changes like this without asking first.

 Thanks,
 Dan






---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to