#175 foreach should be able to skip blanks and commented lines

open
nobody
None
5
2009-05-23
2009-05-23
No

foreach should skip over blank lines. I don't see any point to processing them. Or at least have an attribute skipblanks="[boolean]" to turn this functionality on. As it is I have to write extra parsing inside the foreach tasks to ignore blank lines.

the foreach task should also allow a comment character to skip over lines beginning with this character. For example an attribute like commentchar=";" when used with a csv file with these contents:
a,b,c
;1,2,3
x,y,z
would only pass along the "a,b,c" and "x,y,z", skipping over the "1,2,3" line.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks