Rake outputting to stderror

B

Bob Archer

I am using CC.Net to call rake via the rake task in cc.net.=20

=20

In my rake file I have a cp command:

=20

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

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

end

=20

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

=20

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

=20

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

=20

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

=20

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

=20

Thanks,

BOb

=20
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top