Here's the attachment of the reproduced problem.  It runs in Eclipse's
JUnit runner, but fails in ant when it can't find my properties file
(ws.properties).  Now I'm hoping it's something that I didn't do
properly, like setup the claspath wrong, called ant's <classloader> at
the wrong time, got my constructor incorrect, etc.  I did experiment
with variations on setting up the classpath, changing the constructor,
etc.

NB: The lib directory of the attached zip should include JBehave
2.3.2.  In your experiments, please add that version flattened in the
lib directory.

JDK: Sun jdk1.6.0_16
Ant: 1.7.1
OS: Windows XP Pro Version 2002 Service Pack 3
JBehave: 2.3.2

On Thu, Dec 31, 2009 at 4:35 AM, Mauro Talevi
<[email protected]> wrote:
> Christopher Gardner wrote:
>>
>> I did get the classloader version of the constructor called, but my
>> class still can't find file.properties.  The Steps class doesn't
>> actually call ClassLoader.getSystemResource itself.  It delegates to a
>> utility class that has static methods.  I had my Scenario class pass
>> the classloader that it received upon construction to this utility
>> class.
>>
>> file.properties is in the directory ${project_root}/test/resources/client.
>>
>> I added that directory to my scenario classpath.  Nothing I've done is
>> working.
>>
>
> Could you attach a sample project that allows us to reproduce problem?
>
> In particular, what your Scenario and Steps classes look like.  The simplest
> possible that reproduces problem.   Also, specify the JDK and OS you are
> using please.
>
> Thanks
>
>
> ---------------------------------------------------------------------
> 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


Reply via email to