ANT & output
2 posts in topic
Flat View  Flat View

Posted By:   olivier_yagmourian
Posted On:   Thursday, June 10, 2004 01:19 AM


I'm trying to get only expected output on my own by using ant. I mean for example if I get that kind of output

[echo] Good from here

[exec] script executing

[echo] end of ANT

I intend to get only

Good from here

script execution output generated by the script

[echo] end of ANT

Is it doable? and how?



Re: ANT & output

Posted By:   Anonymous  
Posted On:   Tuesday, June 15, 2004 01:09 AM

Thats the normal way Ants default logger are implemented. If you want a different behaviour you can implement your own BuildListener.

But maybe the -quiet option is enough.

Re: ANT & output

Posted By:   Naveen_Singh  
Posted On:   Friday, June 11, 2004 05:32 AM

Send the output to a "log file". On completion of the build using ant, you can parse this file using normal IO and other Java API methods and thats it. You know what string you are looking for and get it from the file if it is there. Hope this helps.

About | Sitemap | Contact