DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38
598>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38598
a>
Summary: SubSet Filter
Product: Ant
Version: 1.6.5
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
AssignedTo: dev ant.apache.org
ReportedBy: donovan.dillon shaw.ca
When processing text files, using the copy, move, concat
(etc) has the current
ability to use filter readers. The current set of filter
readers provides a
very useful set of functionality. The enhancement I would
like would be a
filter that provide the following functionality.
The SubSet Filter is a filter that can be used within a
filterchain to extract
data from a text file. It allows you to designate 2 reg exp
patterns. The
first pattern is what the filter uses to start the
extraction and the second
is the pattern is uses to stop the extraction.
Rules:
1) If the beginning filter is not specified, starts at
beginning
2) If the beginning filter is never found, no lines are
returned
3) If the end filter is never found or not specified, then
all lines till the
end are returned
4) If the skipstart attribute is set, it will skip N number
of matches before
it starts
5) If the skipend attribute is set, it will skip N number of
matches before it
ends
After the lines are determined, each line can then be
limited by column index.
The truncating of a line will keep the line-ending
character.
Rules:
1) If columnstart index is specified, the entire line is
returned starting
from that 0-based index
2) If columnstart is greater than a the line length, nothing
is returned
3) If columnend is specified, only text up to that index is
returned.
4) If columnend is greater than line length, then everything
up to line length
is returned.
Now obviously I have already tried to do this and think it
is a useful filter
that would help complete the existing set of great filters.
I have had a
recent set of tasks and chose ant to help do text file
processing and found
that this was very useful. I realize you already have a
great pool of talent
but would look forward to contributing the code I do have.
It is fully unit
tested using the anttest util.
Anyways, hopefully I will see it in a future release.
Thanks,
Donovan
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe ant.apache.org
For additional commands, e-mail: dev-help ant.apache.org
|