ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jackson" <foamd...@gmail.com>
Subject Re: Need Help with Ant Pass fail notification!
Date Thu, 30 Aug 2007 05:14:27 GMT
> 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:

kev@ubuntu-dev:~/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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message