Costin Manolache
4fc2dab7e2
Remove the files for the second proposal for now. I'll add them back
after ProjectHelper is cleared.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271734 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
Erik Hatcher
6252354506
once again for Jose Alberto - think I got it right this time
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271710 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
fac77e5b28
for Jose Alberto
sorry for the spam - get lock errors if i try too many files at once :(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271673 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
8dfa7abd4d
for Jose Alberto
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271672 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
Costin Manolache
d1dac8f1ba
Drop the AntBean proposal.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271642 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
Costin Manolache
db1c54b55c
Added the TaskFactory and modified Project.
This is not organized as a 'project' - the files here needs to replace
the ones in the main tree. I'll probably import the rest of the core
and make it a standalone replacement, so it's easy to review.
The goals are to:
- make ant more 'embeddable'
- integrate it better in other tools
- support SAX2 and namespaces
- support pluggable behavior for the XML reader
- support pluggable task factories - the factory will have full control
over the class loader
- better support and integration with existing java beans.
All that while maintaining full compatibility with ant1.4 - all
the code here is just an additional set of hooks, with the previous
behavior preserved and remaining as default.
Eventually this can be refactored into a standalone component
that will implement a task engine for ant1.x.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271572 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d11556a7ce
forgot to adapt the interactive test case
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271558 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
fdcbd434d8
Add explicit requirements to the handleInput method.
Minor optimization of PropertyFileInputHandler.
Use magic property name ant.input.properties instead of
input.properties to conform with our unofficial magic property naming
convention.
Use valid choices in prompt (DefaultInputHandler only) if we have a
MultipleChoiceInputRequest.
Port old <input> testcase over to this proposal.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271557 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
2ace409068
Simple input framework proposal, see proposal/sandbox/input/README or
wait for my mail.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271546 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