It's all about the answers!

Ask a question

Using ANT can you make a copy of the build Log

Jason Wilson (31925) | asked Jan 13 '15, 10:53 a.m.
Afternoon All,

I am wondering if you are able to help.

Using ANT I am trying to make a copy of the build-*.log file that is created, but this then to be copied to a specific directory for particular Sys-Admin users to view.

Any help is greatly appreciated.

Accepted answer

permanent link
Ralph Schoon (62.7k33643) | answered Jan 13 '15, 11:05 a.m.
I am not sure what you have tried and if there is a problem. But I typed "ant copy file" into a search engine and got as the first hit. Have you tried that?
Jason Wilson selected this answer as the correct answer

Nick Edgar commented Jan 13 '15, 2:18 p.m.

The timestamp in the build log file name is not published as an Ant property, so you'll likely need to use the Ant copy task as Ralph suggests, with a wildcard to match build-*.log.

Note that older files may still be around, e.g. if JBE wasn't able to complete the build and publish the log file normally (e.g. if JBE was killed / crashed, or RTC server was unreachable).

Your answer

Register or to post your answer.