Transforming a text file line by line with ant.

2010-05-03 Thread Marco Faustinelli
Good morning, I wish I could have some expert opinion on the following topic. I have to write an xml file from a csv file inside an ant script. The way the csv lines are transformed depends on a very much complex choice, so using XSLT is excluded. Please just trust me on this one. My idea would

Re: FileNameMapper implementation gets invoked twice inside a

2010-05-03 Thread Marco Faustinelli
Stefan, Thank you for the quick and exhaustive answer. What you recall matches what I see. I have to be careful. Have a nice day, Marco   From: Stefan Bodewig To: user@ant.apache.org Sent: Mon, May 3, 2010 3:53:42 PM Subject: Re: FileNameMapper implementation g

Re: FileNameMapper implementation gets invoked twice inside a

2010-05-03 Thread Stefan Bodewig
On 2010-05-03, Marco Faustinelli wrote: > I have written a FileNameMapper that gets invoked during the run of a > task. What puzzles me is that the mapper is invoked TWICE per > each file handled by the copy task, whereas I request only ONE > invocation. I don't think Ant makes any guarantees a

FileNameMapper implementation gets invoked twice inside a

2010-05-03 Thread Marco Faustinelli
Good day to everybody, I have written a FileNameMapper that gets invoked during the run of a task. What puzzles me is that the mapper is invoked TWICE per each file handled by the copy task, whereas I request only ONE invocation. The details follow here. Thanks in advance to whoever will want