buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BUILDR-569) Buildr fails under JRuby 1.6.0.RC1 due to read-only $? variable
Date Tue, 08 Feb 2011 04:57:57 GMT

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

Alex Boisvert resolved BUILDR-569.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.5

Fixed.

boisvert@smudge:~/git/buildr/lib/buildr/core$ git svn dcommit
Committing to https://svn.apache.org/repos/asf/buildr/trunk ...
	M	CHANGELOG
	M	lib/buildr/core/util.rb
Committed r1068270


> Buildr fails under JRuby 1.6.0.RC1 due to read-only $? variable
> ---------------------------------------------------------------
>
>                 Key: BUILDR-569
>                 URL: https://issues.apache.org/jira/browse/BUILDR-569
>             Project: Buildr
>          Issue Type: Bug
>         Environment: Reported by Peter Donald:
> http://buildr.markmail.org/thread/eyfn34ltgwhxqi2p
> Hi,
> Unfortunately one of the hacks in sh implementation no longer works in
> the latest jruby due to $? variable being read only. A typical stack
> trace describing the error is;
> C:\dev\iris\trunk>buildr artifacts:sources --trace
> This build requires the gems buildr-iidea-0.0.10: do you want me to
> install them? [Y/n]
> Y
> Installing buildr-iidea-0.0.10 ...
> C:\Applications\jruby-1.6.0.RC1\bin\jruby -S gem install buildr-iidea
> -v 0.0.10
> Fetching: buildr-iidea-0.0.10.gem (100%)
> Thanks for installing the Intellij IDEA extension for Buildr
> Successfully installed buildr-iidea-0.0.10
> 1 gem installed
> Buildr aborted!
> NameError : $? is a read-only variable
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/util.rb:487:in
> `sh'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1098:in
> `sh'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/util.rb:65:in
> `ruby'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/util.rb:181:in
> `command'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/util.rb:167:in
> `install'org/jruby/RubyArray.java:1671:in `each'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/util.rb:165:in
> `install'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:421:in
> `load_gems'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:215:in
> `load_buildfile'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:523:in
> `standard_exception_handling'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:213:in
> `load_buildfile'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:137:in
> `run'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:523:in
> `standard_exception_handling'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/lib/buildr/core/application.rb:135:in
> `run'
> C:/Applications/jruby-1.6.0.RC1/lib/ruby/gems/1.8/gems/buildr-1.4.4-java/bin/buildr:19:in
> `(root)'org/jruby/RubyKernel.java:1066:in `load'
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4.5
>
>


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message