On Thu, Sep 10, 2009 at 4:11 PM, Antoine Toulme <[email protected]> wrote:
> Hey guys,
> I'm building a buildr plugin and I test against the trunk of buildr mounted
> as a braid mirror.
>
> Everything is ok so far (Daniel fixed BUILDR-309 yesterday).
>
> I have a small request: in sandbox.rb, Java.load is called.
>
> I have to call the buildr spec_helpers.rb before I can load my own library.
> As a result, when used for specs, my code can't add things to the classpath
> of Java for tests.
>
> I also wonder why this was done. After all, that means that for all the
> tests in all Buildr, the classpath is set once and for all ? Couldn't this
> be added to the sandbox method running before each command ?

You can only load the JVM once.

Assaf

>
> Any idea as the best way to add stuff to the classpath in the specs before
> sandbox locks up Java ? Could we do a before(:all) for it ?
>
> Thanks,
>
> Antoine
>

Reply via email to