Peter Reilly
f0244ee350
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@583884 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
d8a7e0bbb6
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@583364 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
4dcddd59e5
-bugzilla #32062 , allow javah to use filesets
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582709 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
ea8689d3d3
-bugzilla #32062 , allow javah to use filesets
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582708 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
7eec24e306
-bugzilla #32062 , allow javah to use filesets
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582707 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jesse N. Glick
d00b77dd77
Javadoc clarification for Resource.getLastModified.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582364 13f79535-47bb-0310-9956-ffa450edef68
18 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
Peter Reilly
664a8fd424
fix for SelectorUtils.isOutOfDate for non-file resources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582160 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
Peter Reilly
48c3492303
remove inner assignments, functionize some code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581623 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
cde826c2b0
checkstyle: remove inner assignment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581599 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
98c94f2ed3
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581587 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
eb4293a5c6
-open session once for a command resource not each command
-bugzilla 43437 don't make properties immutable
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581576 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jesse N. Glick
43953950aa
Silly little optimization: <javac> was taking time quadratic in fileset size.
Unfortunately this is not the only place in Ant where List.contains is called;
DirectoryScanner.processIncluded seems to be as bad.
Alas, someone long ago made protected Vector fields in DS, and it seems too late to change them now:
even changing to ArrayList would break subclasses like FTP which call addElement!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581394 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jesse N. Glick
14a2247a90
#43398 : always print stack trace for non-BuildException's.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581076 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
046aaf269a
pr 43521, @ in filename not allowed anymore since @ allowed in password.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@581055 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
467616fc6f
fix scoping
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@580393 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
b40be7e514
checkstyle: remove inner assignment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@580348 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
9997ae2135
checkstyle: remove inner assignment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@580302 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
1d71f55f68
more inner assignments
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579978 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
e6041976b7
remove a couple of inner assignments
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579975 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
ac16a45be3
magicnumbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579953 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
138108b44b
* Better name for magic numbers: use 'prefix' instead of 'start'
* codestyle: getX() { return x; } ==> into multiple lines
* merge javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579929 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
5c861cf9e6
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579712 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
54bac0e89c
removing starteam code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579316 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
0b6d093f46
magic number
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579278 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
d379a70adf
trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579273 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
753902eb4d
magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579270 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
162782c491
magic number
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579266 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
755c489937
trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579263 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
46a5dc988f
removing weblogic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578882 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
20ed788e6f
Use StringUtils.removeSuffix()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578832 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
440cd71622
Use StringUtils.removeSuffix()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578773 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
902b72ec83
Some cleanups of property expansion
* extact expand property from PropertyExpander
* extact resolve property map from Property task
* remove use of ThreadLocal from Property task
* remove need of cloning of PropertyHelper when resolving properties
in a map.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578769 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
f9de93c35b
more magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578739 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
aacfe14361
magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578730 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
1ff87364e9
trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578729 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
97a4611dc8
Watchdog may have yield negative wait time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578575 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
0961bd8616
magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@578199 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
2ed29da51a
* Test for removeSuffix()
* Test + Impl of removePrefix()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577781 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
cb1bf4ef26
Factor removeSuffix() out.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577772 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jan Materne
79c6e8371a
Use better constant names.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577765 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
0dd2ec90a5
more magic num
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577684 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
7aff35c2c2
more magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577364 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
a914355da2
more magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577308 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
baf9ffa96f
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577307 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
81ae3f7447
bugzilla ID 38199, symlink fails on second call
bugzilla ID 43426, <symlink> cant create a symlink over a file
solution is the same: opt for ln -sf after trying to do it internally. We could perhaps drop all ant deletion operations, for a much simpler operation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577281 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
1ecdefae95
make this synchronized, especially the pop
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577279 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
c4a771c03a
magicnumbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577263 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
6a1014d73c
trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577262 13f79535-47bb-0310-9956-ffa450edef68
18 years ago