Stefan Bodewig
234c1d9ff4
weed out race-condition in mkdirs calls inspired by PR 55290 and Matthias Bhend's suggestion
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1554403 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Antoine Levy-Lambert
06dc6c0eea
adding an encoding attribute to the contains selector
StringResource default encoding becomes UTF-8
changing ResourceUtils to use the String's encoding when copying from a String
Bug Report 54606
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1452118 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Jacobus Martinus Kruithof
6b7bc9e535
Bug 53291 - Several spell checker findings in apache ant 1.8.3 documentation
-- api --
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1342897 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jesse N. Glick
ea33301047
#52829 : ResourceCollection now Iterable<Resource>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1326760 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jesse N. Glick
6424390970
#49430 : trying to work around NIO bug in JDK 1.4.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@953809 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Jesse N. Glick
f7d47f6b71
Continued spelling fix from 947340.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@947689 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Jacobus Martinus Kruithof
c78b5d0baa
fix spelling error in var name
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@947340 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Jacobus Martinus Kruithof
4fd2002344
pr 49326. Sun JVM tries to mmap the entire file during a copy. For large files this is not feasible. We now explicitly request to copy at most 16 MiB per request.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@947339 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
35e9c976ac
be consistent when it comes to overwriting read-only files, add an option to do just that to <copy>. PR 49261
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@942752 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
5788dcef71
extract constant
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@935488 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Jacobus Martinus Kruithof
c72633ebe4
problem 48894
1) buffer size management is present in FileChannel, so we do not need to impose any limit.
2) bus error in gij when requested copy size > remaining file size (this is a bug in gij that will not be triggered anymore by ant from this line)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@922179 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
6d13fceec8
filesmatch throws NPE when comparing texts and the second one has fewer lines. PR 48715
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@908356 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
9ae5d99ebe
Use NIO when copying files without filtering. PR 30094. Submitted by J Bleijenbergh and Robin Verduijn
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@807523 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a4c9863544
don't compare timestamps on directories but add missing dirs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794255 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
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
18 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
19 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
21 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
22 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
22 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