> Hi,
>
> I am beginner in ant.
>
> I am trying to write one program in ant- which will save Pass/fail
> Notification in one text file. Could you help me please?

ant [target] | file.txt

use pipes to save the build output to a text file, to get just the
BUILD SUCCESSFUL/FAILED use

ant [target] | tail -2 | head -1 | status.txt

eg:

[EMAIL PROTECTED]:~/workspace/ant-core-trunk$ ant -f test-id.xml | tail
-2 | head -1 | output.txt

This is the simplest solution

Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to