* Added <condition> file selector, which allows a set of nested conditions to
be used to select files.
* Added <file-test> condition, which evaluates a set of nested selectors against
a file.
* FileSelector doesn't extend DataType any more.
* Got rid of the @ant:data-type tags from the file selectors, cause they ain't.
* Renamed <condition> nested element in <filtered-path> -> <filter>.
* Renamed <is-empty> selector -> <is-empty-folder>
* Fixed NPE using <name> selector in a path.
* Fixed error messages.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271684 13f79535-47bb-0310-9956-ffa450edef68
* Made framework.Condition an interface.
* Converted old framework.Condition into <is-set> condition.
* Ported all Ant 1 conditions to the new Condition interface, and removed
the old Condition and ConditionBase classes.
* Moved <and>, <or>, <not> conditions to framework.conditions.
* Moved <condition> task and <os> condition to antlib.
* Moved <available> to antlib. This is no longer a task, just a condition.
Removed all file checking, which will be done by other condition
implementations.
* Removed conditions from <fail>, as it can be wrapped in an <if> instead.
* A target can now take both an "if" and an "unless" condition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271683 13f79535-47bb-0310-9956-ffa450edef68
Updating the majority of the rest of the tasks with the XDoclet tags. The generated defaults.properties is *almost* the same as the current hand maintained one!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271678 13f79535-47bb-0310-9956-ffa450edef68
* Changed semantics of FileName.resolveName() with 'child' scope.
* Fixed a couple of problems in UriParser.normalise().
* Split up LocalFileNameParser into a Windows specifc parser and a generic
parser.
* More test cases.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271668 13f79535-47bb-0310-9956-ffa450edef68
* Replaced all usages of Os.isFamily( String ) with Os.isFamily( OsFamily ).
* Replaced all usages of "os.name" system properties with calls to Os.isFamily().
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271667 13f79535-47bb-0310-9956-ffa450edef68
is a PITA :) (Also all the usual grammar/spelling/wording/etc. edits.)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271663 13f79535-47bb-0310-9956-ffa450edef68
Important when you pass in System.out/System.err or want to do something
special to stream after processing.
Submitted By: Darrell DeBoer <darrell@apache.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271649 13f79535-47bb-0310-9956-ffa450edef68
hierarchy. Adapted terminology from Catalina
as that terminology is more widely used.
Punt on antlib ClassLoader structure as that
is defined via library specific mechanisms
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271647 13f79535-47bb-0310-9956-ffa450edef68
It completely punts on descriptro format for the
time being - mainly as I already documented that
elsewhere and just need to convert it to xdocs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271646 13f79535-47bb-0310-9956-ffa450edef68
Code changes:
Removed an unneeded nullity test null instanceof Foo is always false.
Changed replaceChild(UnknownElement, Object) with two methods:
replaceChild(UnknownElement,Task) and
replaceChild(UnknownElement,RuntimeConfigurable) to make it
absolutely clear that you can't just replace the children with random
elements.
I must admit I'm still far from entirely clear exactly how
UnknownElement works. It probably counts as black magic...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271639 13f79535-47bb-0310-9956-ffa450edef68
Note: maybeConfigure implies that calling it twice will have no effect.
I have a suspicion that children would be added twice. Search for XXX
to find the details.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271638 13f79535-47bb-0310-9956-ffa450edef68