Stefan Bodewig
edb0dd9582
use adapter instead of instanceof checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@718387 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
31e1bc0694
use adapter for Touchable instead of instanceof checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@718210 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
a22e945b3c
use an adapter to use Appendable instead of instanceof checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@718205 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
3ae69e82c3
add Appendable interface with echo as first supporting task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@713173 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
7f3406304a
deal with resources without name in <copy>. PR 39960.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@708948 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
f2b07b0ac2
version
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@668719 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
1a82a29cb2
helper method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@668718 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
95d2387488
unused
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@668704 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
3a9aafdba7
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582162 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jesse N. Glick
cafa34ca08
Various microoptimizations to reduce I/O load of common tasks, esp. no-op <javac> and <depend>.
Many inner loops altered to make just 1-2 system calls rather than 4-5.
You can easily see how wasteful the previous code was, and find the culprits,
by patching r/o java.io.File methods and adding to -Xbootclasspath/p (or use AspectJ). E.g.:
public boolean isDirectory() {
System.err.println("isDirectory: " + this); if (Math.random() < .01) Thread.dumpStack();
// as before...
}
Ant still makes an order of magnitude more system calls to do what seem like simple operations
than you would think necessary, but this patch should at least improve the situation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581748 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
08f27b19f2
if either resource to be compared has an unknown size, we must compare content
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536536 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
7522190893
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@487798 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
bc28d31407
last minute; avoid NPE when attempting to map no-name resource. Bugzilla 39960.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@484850 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
9dfd03133b
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475983 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
2e897819a8
copy2license.pl
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439418 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
655e166741
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@405557 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
fa84f9f461
Move Resource-based utility methods in FileUtils to ResourceUtils (static).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@292553 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
a10f2fd777
overload selectOutOfDateSources w/ ResourceCollection version;
delegate existing selectOutOfDateSources to new method.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@290811 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
f59eb74bbf
remove unnecessary java.util.Date instantiation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278503 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
d1b98e7741
Javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277446 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
257dadeaf0
Make use of FileUtils in a uniform way via the getFileUtils method and a static final reference in the using files.
Also removed unused/* imports along the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277295 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
94ae79c224
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277096 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
cd12d21761
Push fix for PR#22150 to 1.6.2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276484 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
e05733aa9b
Add a granularity attribute to <copy>, <move> and <sync> that works
the same way as the attribute of the <depend> selector.
PR: 22150
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275307 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
3a35c7d914
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274858 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
6c0b17e148
Ignore directories in checking for out of date elements in a Zip/Jar task.
Directories can't really be out of date since they have no content.
PR: 21245
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274777 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1aca5cf036
Avoid reusing StringBuffers to work around JDK 1.4.1 memory leak.
I'm sure that my changes in most cases are of the paranoid type,
ResourceUtils and FixCRLF look as if they really had a chance of
running into trouble.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274397 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c89a66172d
Preparing merge to 1.5 branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274134 13f79535-47bb-0310-9956-ffa450edef68
23 years ago