Magesh Umasankar
bcd2dfcf11
Remove contents from filter reader proposal, now that the code has been migrated to the main tree.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271848 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f9bcdd7713
Eliminate compile time dependency of ClassConstants with JavaClasshelper that uses bcel. Compilation of JavaClassHelper will be performed only if bcel is present at the time of compile.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271755 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
b926938e01
Document <loadproperties> task.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271728 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
069a8898be
Test chain of filters.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271727 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f261bcd566
Make TailFilter behave exactly like the unix tail application.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271726 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
d89352ca5e
null check.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271725 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
fdcfd1dd9b
Improved doc; loadfile.xml typo fix.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271724 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
1eaa635f8f
Add a few preliminary testcases...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271714 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ce2a2bc4bc
Cheat the introspector by making ClassConstants delegate bcel stuff to a helper class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271713 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
a172bceca6
Removing short form syntax for ClassConstants for the time being, as it forces user to have bcel.jar in classpath irrespective of whether the filter is being used or not.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271712 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6885f5ccad
Made <copy> and <move> filterchain aware. Existing <filterset> elements can live together with <filterchain> elements. However, all <filterset>s will only be processed *after* all <filterchain>s have been.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271671 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4f2c7ee539
Minor cleanups - sorry for spamming...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271662 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
741e2cbbd7
All the filter cares about is a stream of data - not necessarily if it is from a file. Make documentation reflect that.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271661 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
78a9dff37e
New filter reader to access straight-forward 'constants' defined in a class file.
This can be used to load class constants as Ant properties.
External Dependency on: BCEL
PR: 6591
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271660 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
7288026e05
New filter reader that gets those lines that match a regular expression pattern.
Requested by: Adam Murdoch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271621 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
b5de47561b
Merge changes with the 1.14 revision from the main tree.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271620 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
c9f7dca90e
Fix javadoc.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271618 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
43e62b81ff
1. ExpandProperties filter introduced as envisioned by Steve.
2. String readFully(Reader) added to FileUtils.java (main trunk revision 1.13)
3. Doc changes
4. Removed the attribute evaluateproperties from <loadfile> as it is no longer necessary.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271617 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
dfd61de939
Use StringBuffer to assemble String.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271614 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4a5b5fd1ea
Split processStream into two methods to facilitate streamed reads...
Reader getAssembledReader()
String readFully(Reader)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271613 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
faf931435a
Skip must use this.read() and not in.read() - Thanks, Adam, for catching this.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271612 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
22e36e493c
Misplaced null check.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271611 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4e222b97c6
As suggested by Adam, use java.util.Properties.load(InputStream) instead of reinventing the wheel.
Introduced a new class - StringInputStream
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271610 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
87f806d3e4
Refactored code (as suggested by Costin and Adam) - first run.
1. Moved ChainReaderHelper.java to filters/util
2. Moved setInitialized, getInitialized to base class.
3. Introduced BaseParamFilterReader that implements Parameterizable and has setParameter
4. Null check introduced for LoadFile
5. Convenience method readLine() introduced into BaseFilterReader.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271605 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ef4a11096f
1. Move a couple of common methods to an abstract base class.
2. Javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271594 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4ff6d329e5
Empty line check inserted.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271593 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
cfa964e51d
Oops... missed adding this as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271590 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ef53e158d6
Oops... missed adding this.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271589 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
3347fc0270
FilterReaderSet -> FilterChain as this is more representative of the collection.
Documentation updates.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271588 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6f30444010
Add License.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271587 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
88f297a15d
Add License.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271586 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
e91ef17bb5
CloneableReader -> ChainableReader
Reader clone(Reader) -> Reader chain(Reader)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271585 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6067cc8261
1. Provide a mechanism by which filter readers recognized by Ant's core (FilterreaderSet) can have a better syntax.
2. Remove double-quotes from javadoc and replace with "
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271584 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
7899d6c4a6
Provide a mechanism by which filter readers recognized by Ant's core (FilterreaderSet can have a better syntax.
For example, HeadFilter can be added to filterset as this:
<filterreaderset>
<filterreader classname="org.apache.tools.ant.HeadFilter">
<param name="lines" value="3"/>
</filterreader>
</filterreaderset>
or this:
<filterreaderset>
<headfilter lines="3"/>
</filterreaderset>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271580 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
9cdb3c6908
1. Addition of new filter reader "LineContains"
2. Javadoc changes to use < and > instead of < and > characters
3. Removal of debug statement from ChainReaderHelper
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271526 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
79b4ed70c6
type is more appropriate than name in this case.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271525 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
d2f8fa7463
Filter Reader that strips out those lines that begin with a comment tag.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271524 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
03bfcc3c1b
Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271523 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
e22b34c577
Use classpath of AntFilterReader if available.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271522 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
de1a987f23
Stefan's prediction coming true: AntFilterReader has its own classpath attribute and nested classpath element.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271521 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
5f07fcba57
Use a helper class to process chained readers.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271518 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ec9595bfac
FilterReaderSet aware task to load Ant properties.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271516 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6a2b776bfc
A filter that attaches a prefix to every line of data read.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271515 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
9ec9a279f5
Add copyright header.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271418 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
7f243c7f6a
Converts Tabs to Spaces.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271417 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
70f91ac465
Oh! the horrors of cut-n-paste. Copyright should have been 2002.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271416 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
defe5f24dc
Answer the question: "So what are filterreadersets and filterreaders anyway?"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271415 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
5e16edc84e
Filter to read the last 'n' lines.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271394 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f860a1bf81
Initialize whenever parameters (possibly) change.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271393 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
3ca907710e
1. Use a variable name that better represents the type of data stored.
2. Minor code cleanup.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271392 13f79535-47bb-0310-9956-ffa450edef68
24 years ago