Forum: Ruby Rake outputting to stderror

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ca1b1806b7a8ec91fd3ea70efbc2f8aa?d=identicon&s=25 Bob Archer (Guest)
on 2008-12-04 16:24
(Received via mailing list)
I am using CC.Net to call rake via the rake task in cc.net.



In my rake file I have a cp command:



FileList['**/app.config.template'].each do |src|

 cp src, "#{File.dirname(src)}/app.config" unless
File::exist?("#{File.dirname(src)}/app.config")

end



However, in the cc.net log the above cp gets logged as:



<buildresults>
  <message level="Error">cp Unit Test/eDex.Test/App.config.template Unit
Test/eDex.Test/app.config</message>
</buildresults>



On the cc.net mail list they told me this:



"The problem you have with the cp
thing showing as error is that rake seems to write it to the standard
error stream."



Why is this written to std error instead of stdout? The cp did not
error?



Thanks,

BOb
This topic is locked and can not be replied to.