Read a file line by line and do something for each line

2009-04-08 Thread Felix Dorner
Hey, I'm trying to figure out a way how to read a text file line by line. Then for each read line I'd like to invoke a macro with that line's contents as an argument. I can't find a better whay than using ant-contribs math+var tasks to count the number of lines read so far. With that I can use

AW: Read a file line by line and do something for each line

2009-04-08 Thread Jan.Materne
>I'm trying to figure out a way how to read a text file line by line. >Then for each read line I'd like to invoke a macro with that >line's contents as an argument. I can't find a better whay >than using ant-contribs math+var tasks to count the number of >lines read so far. With that I can use

RE: Read a file line by line and do something for each line

2009-04-08 Thread Felix Dorner
Hey Jan, > list="${src}" delimiter="${line.separator}"> > > > > Yes this works too, apart from my natural dislikes against for. :-) I'll include a filter and meditate into happiness..: Thanks, Felix - To unsubsc

Custom ANT task

2009-04-08 Thread Muralidhar Manku
Hi , I am a third party custom ant task where it accepts a set of defined attributes and provision to pass additional attributes. checkArgIsNull(applicationName, "applicationName"); checkArgIsNull(name, "name"); checkArgIsNull(factoryClass, "factoryClass");

RE: Custom ANT task

2009-04-08 Thread Martin Gainty
who/what is consuming the resource configuration? Glassfish/WebSphere/Tomcat/Resin? Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger se

Re: AW: Ant task to pre-compile JSPs

2009-04-08 Thread dave.alvarado
I'm still missing something. The reason I want to get pre-compiled Java classes is so that I can instrument those classes for the purposes of running a tests coverage report (I'm using Cobertura). It would be great to have these files after I do my Ant build so then i can run my MockStrutsTest