[ 
https://issues.apache.org/jira/browse/BUILDR-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antoine Toulme resolved BUILDR-463.
-----------------------------------

    Resolution: Fixed

Fixed!

22:31:05~/w/buildr>svn ci CHANGELOG lib/buildr/java/rjb.rb -m "BUILDR-463 
Setting a system property in the buildfile causes a NoClassDefFoundError"
Sending        CHANGELOG
Sending        lib/buildr/java/rjb.rb
Transmitting file data ..
Committed revision 959862.

> Setting a system property in the buildfile causes a NoClassDefFoundError
> ------------------------------------------------------------------------
>
>                 Key: BUILDR-463
>                 URL: https://issues.apache.org/jira/browse/BUILDR-463
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.4
>         Environment: MRI 1.8.7-p174
> (does not happen on JRuby)
>            Reporter: Rhett Sutphin
>            Assignee: Antoine Toulme
>             Fix For: 1.4.1
>
>
> If a buildfile sets a system property like so:
>     Java.java.lang.System.setProperty("foo", "bar")
> a subsequent attempt to run JUnit tests will fail with a NoClassDefFoundError 
> for org/apache/buildr/JavaTestFilter.  A minimal project which demonstrates 
> this can be found in this gist: http://gist.github.com/460611 .  Clone it and 
> then run `buildr clean test` to replicate.
> This worked in 1.3.5.  It continues to work in 1.4.0 in JRuby, but not in MRI.
> (Apologies for not catching this in an RC -- most of my prerelease testing 
> was with a different project that didn't do this.)

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

Reply via email to