You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rajesh Kumar (IN4774)" <ra...@mindtree.com> on 2007/08/30 07:01:19 UTC

Need Help with Ant Pass fail notification!

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?

 

Thanks in advance!

 

Regards,
Rajesh

 

 

*Thanks & Regards,

Rajesh <http://www.nidokidos.org/>  Kumar

R & D Services I MindTree Consulting Ltd. I * rajesh_kumar1@mindtree.com 

I * +91-80-26264000 Extn: 65631 I M: +91- <http://www.nidokidos.org/>
9986675403

 



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. 

Re: Need Help with Ant Pass fail notification!

Posted by Kevin Jackson <fo...@gmail.com>.
> 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