Bug 47715 - filterchain-based validation identifies line numbers
Summary: filterchain-based validation identifies line numbers
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-20 10:01 UTC by David Hausladen
Modified: 2009-08-20 10:06 UTC (History)
0 users



Attachments
Sample build file fragment showing possible use of new capability (2.29 KB, text/plain)
2009-08-20 10:06 UTC, David Hausladen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Hausladen 2009-08-20 10:01:09 UTC
When ant filterchains are used to validate files, the validation errors can not supply line numbers.  Enhance PrefixLines filter to support such a capability or add new PrefixLineNumbers filter.

I would suggest that the user be required to provide the padding size for the line numbers or padding be ignored altogether (the benefit of padding is to have all line numbers consume the same number of characters at the beginning of the line).

**Specific use case**

Our build does RegEx-based validation of source files looking for forbidden code constructs.  The RegEx is used to identify all source files containing the forbidden code constructs, and for each identified source file, it generates an error and shows the offending lines.  Unfortunately, we're unable to display the line number for the offending lines.

**Related enhancements**

5748 seems related, but the thin details leave one wondering how the tokens were expected to be used.
Comment 1 David Hausladen 2009-08-20 10:06:52 UTC
Created attachment 24154 [details]
Sample build file fragment showing possible use of new capability