From ae16bb711b331f6c8a20ee1298cf171de43266f7 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Sun, 13 Feb 2000 18:24:18 +0000 Subject: [PATCH] Several changes: 1) restructured Project and Task: copyFile should be a project method rather than a task method for good OO patterns. Well, actually they should be target-granular but we'll see. 2) patched all the necessary files to make the above work 3) removed some unused methods (setAttributes()) 4) added the Filter task that addes token filtering capabilities to all the copyFile operations. This works more or less as a superstructure to Replace and KeySubst but automatically and inherited by all the tasks that use copyFile() methods. 5) indicated KeySubst as deprecated 6) updated docs to reflect this new behavior NOTE: behavior is _totally_ back compatible if you don't specify any tag. NOTE2: nothing is carved in stone. If you don't like something you're welcome to propose fixes. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267604 13f79535-47bb-0310-9956-ffa450edef68 --- docs/index.html | 74 +++++- src/main/org/apache/tools/ant/Project.java | 190 ++++++++++--- .../org/apache/tools/ant/ProjectHelper.java | 1 + src/main/org/apache/tools/ant/Target.java | 10 +- src/main/org/apache/tools/ant/Task.java | 62 +---- .../apache/tools/ant/taskdefs/Copydir.java | 6 +- .../apache/tools/ant/taskdefs/Copyfile.java | 34 +-- .../org/apache/tools/ant/taskdefs/Filter.java | 81 ++++++ .../apache/tools/ant/taskdefs/FixCRLF.java | 251 +++++++++--------- .../org/apache/tools/ant/taskdefs/Java.java | 6 +- .../org/apache/tools/ant/taskdefs/Javac.java | 8 +- .../apache/tools/ant/taskdefs/Javadoc.java | 4 +- .../apache/tools/ant/taskdefs/KeySubst.java | 1 + .../org/apache/tools/ant/taskdefs/Rmic.java | 6 +- .../tools/ant/taskdefs/defaults.properties | 3 +- 15 files changed, 474 insertions(+), 263 deletions(-) create mode 100644 src/main/org/apache/tools/ant/taskdefs/Filter.java diff --git a/docs/index.html b/docs/index.html index 05ec42e9b..738f002f0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,12 +11,14 @@

by

-

Version 1.0.5 - 2000/02/12

+ +

Version 1.0.6 - 2000/02/13

+

Table of Contents