[ 
http://jira.codehaus.org/browse/JBEHAVE-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Hübner updated JBEHAVE-49:
---------------------------------

    Attachment: jbehave-49-classloader.patch

Dear Mauro and JBehave team,

please find attached patch with a proposed fix for BehaviourRunnerMojo's 
classloader issue. It works by completly isolating into an classloader the 
BehaviourRunner and the behaviours to be verified. That classloader only knows 
a project's target/classes, target/test-classes and its dependencies of scope 
"test".

Hope this helps you, as it helped me.

Cheers
Stefan

PS: Also, I was working on extending your mojos to accept include/exlude 
patterns for searching for Behaviour-/Story-classes. That way JBehave's ant 
tasks and maven plugin would provide similar options to the user regarding the 
selection of classes (at least, in the beginning I was confused with those 
slight differences).
If you're interested, please let me know. I'd be happy to contribute the code.

> Maven 2 support
> ---------------
>
>                 Key: JBEHAVE-49
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-49
>             Project: JBehave
>          Issue Type: New Feature
>          Components: Build system
>            Reporter: Mauro Talevi
>         Attachments: jbehave-49-classloader.patch, maven-patch.txt
>
>
> Regardless of feelings about maven vs ant, there is a case for supporting 
> both.
> IMO maven 2 provides a declarative approach that simplifies readability of 
> build system, 
> especially for multicomponent systems.
> Discussions on merits should be on the list.   
> Here I'm attaching an initial spike patch that mavenises build for people to 
> have a look at and get a feel.
> Read README.txt to start off with - need to install cotta jar in the local 
> repo (this is just a temporary step to get build
> working - it can also be configured to be installed automatically or deployed 
> to ibiblio).
> The behaviours still fail to run because of the 
> jbehave.core.util.BehavioursLoader does not provide injection of classloader. 
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

    http://xircles.codehaus.org/manage_email

Reply via email to