Rake outputting to stderror

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:

cp Unit Test/eDex.Test/App.config.template Unit Test/eDex.Test/app.config

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