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

Mauro Talevi resolved JBEHAVE-504.
----------------------------------

       Resolution: Won't Fix
    Fix Version/s: 3.4

> Ant task RunStoriesWithAnnotatedEmbedderRunner not passing system properties 
> to embedder
> ----------------------------------------------------------------------------------------
>
>                 Key: JBEHAVE-504
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-504
>             Project: JBehave
>          Issue Type: Bug
>          Components: Ant Tasks
>    Affects Versions: 3.3.2
>         Environment: Ant
>            Reporter: Derek Clarkson
>             Fix For: 3.4
>
>
> I'm trying to run JBehave from Ant using the following ant code:
> {code:xml} 
> <taskdef name="runStoriesWithAnnotatedEmbedderRunner"
>     classname="org.jbehave.ant.RunStoriesWithAnnotatedEmbedderRunner" 
>     classpathref="integration.tests.classpath" />
> <runStoriesWithAnnotatedEmbedderRunner includes="**/*StoryEmbedder.java"
>     sourceDirectory="src/integration"
>     
> systemProperties="java.awt.headless=true,web.project.dir=${build.integration.web.dir}"
>  
>     ignoreFailureInStories="true" 
>     ignoreFailureInView="false" 
>     generateViewAfterStories="true" />
> {code}
> At the momment I'm getting a class not found which the story embedder I've 
> written starts up (doesn't happen from a junit run inside eclipse!).
> I think that it's running from the default directory because it appears that 
> the systemProperties are not making it through to the embedder. Here's the 
> log showing the startup:
> {code}
> run-bdd-tests:
> [runStoriesWithAnnotatedEmbedderRunner] Running stories with annotated 
> embedder org.jbehave.core.junit.AnnotatedEmbedderRunner
> [runStoriesWithAnnotatedEmbedderRunner] Found class names : 
> [au.com.sensis.wireless.smsmanager.integration.bdd.stories.AnnotatedStoryEmbedder]
> [runStoriesWithAnnotatedEmbedderRunner] 2011-05-03 16:12:21,042 DEBUG 
> [runStoriesWithAnnotatedEmbedderRunner] Processing system properties {}
> {code}
> As you can see it's reporting no properties passed. Digging into the Ant task 
> code supports that the properties are not getting through, but from what I 
> can see in the source there is no obvious reason. Possibly the code that 
> loads the properties has a bug and is throwing an exception because it's 
> try-catch silently swallows any errors. 

-- 
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