bject: RE: Parsing file. It works but...
--- Matt Benson <[EMAIL PROTECTED]> wrote:
> --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
>
> > That's a bit better.
> >
> > Is there a better way to iterate the lines in the
> > file? The task
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
> Was the message supposed to have an attachment?
Yeah, did it not come through? Ha... I'll send it to
you off-list since I'm assuming the list may have
stripped it.
-Matt
__
Do you Yahoo!?
All
Was the message supposed to have an attachment?
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 5:17 PM
To: Ant Users List
Subject: RE: Parsing file. It works but...
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
>
Disregard,
I have just noticed that you do use a var at
the end of the iteration to "unset" the property!
Peter
Peter Reilly wrote:
This will not work as each iteration of
the for loop happens in the same project,
so source and target will be set only once.
You will need to do something like (note
This will not work as each iteration of
the for loop happens in the same project,
so source and target will be set only once.
You will need to do something like (note the override attribute
on the and the use of instead of ):
...
(Yes it is even ugler!).
You could use a scri
--- Matt Benson <[EMAIL PROTECTED]> wrote:
> --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
>
> > That's a bit better.
> >
> > Is there a better way to iterate the lines in the
> > file? The task
> > docs say any type that has a public iterator() can
> > be used. Is there
> > such a type for f
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
> That's a bit better.
>
> Is there a better way to iterate the lines in the
> file? The task
> docs say any type that has a public iterator() can
> be used. Is there
> such a type for file iteration?
There is now.
HTH,
Matt
__
4:09 PM
To: Ant Users List
Subject: Re: Parsing file. It works but...
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
[SNIP]
> I need to parse the file and send the two values in
> each line to another
> program. When there is only one value on the line, I
> have to s
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
[SNIP]
> I need to parse the file and send the two values in
> each line to another
> program. When there is only one value on the line, I
> have to send the
> value twice. Here's the target I wrote to parse the
> file. I looks pretty
> ugly. Can any
On Feb 11, 2005, at 12:49 PM, I wrote:
Yeah, I can simplify it to one line of shell:
sed -e 's/^\([^ ]*\)$/\1 \1/' < the-file | another-program
D'oh, I just realized you might be on Winblows...
I guess if I were on raw Winblows (i.e. not using Cygwin)... then I
guess I would write a Perl script.
On Feb 11, 2005, at 12:24 PM, Dick, Brian E. wrote:
...there has to be a better way to do this.
I have a file that contains lines like the following.
src1 trg1
src2
src3 trg3
I need to parse the file and send the two values in each line to
another
program. When there is only one value on the line,
11 matches
Mail list logo