List Info

Thread: Need Help with Ant Pass fail notification!




Need Help with Ant Pass fail notification!
user name
2007-08-30 00:01:19
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.or
g/>  krishna

R & D Services I MindTree Consulting Ltd. I *
rajesh_krishna1mindtree.com 

I * +91-80-26264000 Extn: 65631 I M: +91- <http://www.nidokidos.or
g/>
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!
user name
2007-08-30 00:14:27
> 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:

kevubuntu-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-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )