It's all about the answers!

Ask a question

Using ANT can you make a copy of the build Log


Jason Wilson (311226) | 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 (63.1k33646) | answered Jan 13 '15, 11:05 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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 http://ant.apache.org/manual/Tasks/copy.html as the first hit. Have you tried that?
Jason Wilson selected this answer as the correct answer

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

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.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.