> in other words
>
Sorry that is invalid - invalid xml. Attribute values have to be quoted.
Then the Ant runtime would search for a property servrestart and evaluates
that to its value or - if not set - to ${servrestart}. So you´ll get
a) with value=Hello World
[echo] Hello World
b) not set
>
> ...
> and
>
>
>
> gives me always ${servrestart}
>
> regardless whether txtfile contains Line 2 or not. ?!
>
> Gilbert
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 09, 200
>
>
> ...
> and
>
>
>
> gives me always ${servrestart}
>
> regardless whether txtfile contains Line 2 or not. ?!
>
> Gilbert
>
>
>
> -----Original Messag
Basically
should do the job.
- load the content of the file into a property
- but ignore all lines which doesnt start with "Server"
And if there is no line, wont set the property.
Jan
> -Ursprüngliche Nachricht-
>