ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject txtfile with various lines
Date Thu, 09 Dec 2004 12:25:38 GMT

Hi,

Yet another textprocessing question.

A scriptgenerated txtfile that has 1 or 2 lines, depending on a flag.

txtfile is either

Line 1

or

Line 1
Line 2

where Line 1 and 2 have different contents.

Line 1 format = string_string_string_string
Line 2 format = Server has to be restarted

Problem = i want to set a property, but only if Line 2 appears
	    in my txtfile.


I believe it could be done with LineContains and tailfilter, but
i didn't get it. There has to be something like =

tailfilter lines="1"
if line contains pattern ="^Server"
then ...

Don't know how to write that ?!

Any ideas ?

Regards, Gilbert


 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message