Deprecated the variable so that that anyone directly referencing variable will get warning and suggestion to use the accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273155 13f79535-47bb-0310-9956-ffa450edef68
even if exceptions have been thrown.
Make the single file copy operation only work for a single nested
fileset that contains a single file (would have accepted multiple
included files and silently used the randomly chosen first one).
Remove private shadows of Copy members from Move.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272365 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
on encodings different than the platform's default as well.
PR: Christopher Taylor <cstaylor@nanshu.com>
some year 2002 fixes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271540 13f79535-47bb-0310-9956-ffa450edef68
XP-style: added test case to detect bug, then fixed it. Also, trying to break out of the mould of the "testN" test case names - too brittle and non-descriptive.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271143 13f79535-47bb-0310-9956-ffa450edef68
(1) Make sure there is a Copyright notice on all files.
(2) Make sure all years in which a file has been modified are
listed.
(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.
(4) Change some references from Tomcat to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270658 13f79535-47bb-0310-9956-ffa450edef68
Didn't worry too much about WaitFor's backward compatibility issues as it is hardly a week old.
WaitFor has ben modified this way so that it is consistent with Tstamp and takes in enumerated attributes for unit instead of allowing arbitrary letters/ words suffixed to the time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270074 13f79535-47bb-0310-9956-ffa450edef68
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
This adds a lot of power to copy and move, we can drop the optional
RenameExt task for example as
<renamext srcdir="src" destdir="dest" fromextension=".java.keep"
toextension=".java" replace="true" />
can now be written as
<move todir="dest" overwrite="true">
<fileset dir="src" />
<mapper type="glob" from="*.java.keep" to="*.java" />
</move>
but more difficult transformations can be done as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268203 13f79535-47bb-0310-9956-ffa450edef68
what I want to accomplish.
All tasks using a scanDir method to find the source files that are
newer than there targets should get a similar treatment as <copy>.
The major benefit is not to have the functionality in one place but
the added flexibility you get, when you allow the user to specify a
custom FileNameMapper to a task (not there yet).
Nothing (especially not the names) is carved into stone of course.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268190 13f79535-47bb-0310-9956-ffa450edef68
Also fixed up the message indicating how many files are being copied to
correctly use "file" and "files".
Reported by: Diane Holt <holtdl@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268138 13f79535-47bb-0310-9956-ffa450edef68
a single instance of Copy to be used more than one - like in
ant -Dant.install=../dist/jakarta-ant dist install
where the second time the dist target gets executed would throw an
exception. You can see this in the logs of recent nightly builds of Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268084 13f79535-47bb-0310-9956-ffa450edef68
action is to include empty directories in any copy and move action. It makes
a lot more sense for Move, and seems reasonable for Copy.
Fixed up Move to correctly remove the original directories rather than leave
them behind.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268068 13f79535-47bb-0310-9956-ffa450edef68
Move tasks. Now you can only copy
or move entire directories with
nested FileSets.
Prompted by a patch submitted by
Nico Seessle.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268061 13f79535-47bb-0310-9956-ffa450edef68