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 <filter> 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
* Use the month format in DSTAMP (mm is minutes)
* Use the 24-hour hour format in TSTAMP (otherwise, at 7pm the TSTAMP will
be 0700 instead of 1900).
Submitted by: Glenn Twiggs <Glenn_Twiggs@bmc.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267601 13f79535-47bb-0310-9956-ffa450edef68
Added the "if" attribute to Target that executes it if and only if the property specified in the attribute is set
There might be better ways of doing it and don't consider this carved in stone, but it works, it's simple and vital for Cocoon.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267599 13f79535-47bb-0310-9956-ffa450edef68
2) Correct Stefano's mailing address
3) Correct handling of escaped quotes in strings
4) Return exit code from the exec'd process as it may be useful
Submitted by: Michael Smith <michael@sneakerlabs.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267590 13f79535-47bb-0310-9956-ffa450edef68
tmpExcludes.addElement("**/"+tok.nextToken().trim()+"/**");
(currently found in org.apache.tools.ant.taskdefs.Copydir)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267589 13f79535-47bb-0310-9956-ffa450edef68
Restore original name of ant.jar as it is used in the ant batch and
shell scripts, as well as in numerous other build.* files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267580 13f79535-47bb-0310-9956-ffa450edef68
extend Task or have any ideea that Ant will use them.
The only requirement is to have a
void execute() throws Exception
That allows Tomcat ( and other projects) to define normal Beans and still
be able to script them.
The usage is identical with normal Task-extending Beans.
Also fixed bootstrap.sh.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267576 13f79535-47bb-0310-9956-ffa450edef68
BTW, Sam, my tests show the pumping threads
slow down the process to half of its original speed,
we should use a better method for this...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267575 13f79535-47bb-0310-9956-ffa450edef68
Project: prints the os as well as jdk version
taskdefs.Exec: Fixed issues with Win95
Submitted by: Ludovic Claude <lc@websitewatchers.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267560 13f79535-47bb-0310-9956-ffa450edef68