buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby
Date Tue, 29 Jan 2008 07:44:33 GMT

    [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563415#action_12563415
] 

Assaf Arkin commented on BUILDR-27:
-----------------------------------

With a variant of this fix in SVN, I got JRuby to build and run tests on both Linux and OS/X.
 Can you confirm on your end?

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following
stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error
during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead
of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached
the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message