Nicolas Lalevee
e5f3393251
Allow Object to be injected as attribute of tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1367303 13f79535-47bb-0310-9956-ffa450edef68
13 years ago
Jesse N. Glick
ec8453fec5
FindBugs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1148910 13f79535-47bb-0310-9956-ffa450edef68
14 years ago
Stefan Bodewig
5f20b99140
microoptimizations. PR 50716
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1066963 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
58f0bb04db
if user input is compared to fixed strings in a case insensitive manner we should use the default locale. Use Locale.ENGLISH consistently
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@910955 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Stefan Bodewig
7984fd2400
special handling of IllegalArgumentExceptions in attribute setters for better error messages. PR 47129
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@772606 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
28447bc7c0
allow TaskContainer and DynamicElement(NS) to coexist. Hijacked PR 41647 for this.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@708204 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
8f488f0872
make tasks with add(Foo) method play nice with TaskContainer. PR 41647.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@707398 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Scokart Gilles
6aa8785e32
Fix possible raise condition when modifying/reading restrictedDefinitions (missing from previous checkin)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@688725 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Scokart Gilles
502a6bcbf7
add some final keyword to immutable things
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@687832 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
59c41d005e
resources/fileproviders
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677347 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Matthew Jason Benson
0137cd8b64
ws/sp
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@673435 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
3426002af9
add a method to see if a nested element is supported via reflection
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@573642 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
f4ee8dcc26
Allow reflection on setX(Object x) to be an xml attribute
Normally x will be of String type, however with the new
PropertyHelper, x may be of other types.
x="${el:path.main}" for example.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568096 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
eefee2f267
make a big method a little smaller
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@567600 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
073153dd37
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565104 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
424bee292b
checkstyle: remove trailing ws
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@564891 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
31deeb9809
adding componentdef code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@564787 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
2276012218
checkstyle changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@558071 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
df97bfdc2b
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557216 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
1e599c6651
BZ 42736: PropertyHelper API changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@554394 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
939a6bbf2f
fmting/max line length, remove unnecessary Java 1.2 compatibility, some unnecessary elses
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@549681 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
ee2779b5b9
Very delicate changes to Introspection helper
1. warnings in the javadocs about how sensitive the file is
2. factoring out of the code to handle InvocationTargetExeptions
3. some more javadocs
4. some IDE-hinted warnings about static classes, access modifiers on abstract/private class constructors
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531486 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
d9fef33464
correct the comment to match the code -we only check for string args-
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@531448 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Matthew Jason Benson
77ebd3353d
use parseHumanSizes for longs. Allows 'computing terms' for any long.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@513900 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
912d48e591
linelength and 1.5 bootstrap whining
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@481763 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
f40249fb49
#41058 : permit Java 5 enumerations to work like EnumeratedAttribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@481322 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
290108eb35
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@476582 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
d2518a0832
make IH.clearCache() public
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466300 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
7d8402eb23
Stop making IH a project listener,
instead clean the IH cache explititly on build finished.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466290 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
12ae031068
Fix for OOME with <*ant*> and <typedef>
Bugzilla report 28283 and 33061
IH had a map of class->IH objects. The
class is the typedefed class and IH is the
attributes, elements etc of that class.
This works fine, except that the class is kept
until the build ends, this means that the classloader
for the class is also kept, a classloader contains
pointers to all the classes loaded by it - so a lot
of memory can be blocked.
When ant, or antcall is used and the called project
typedef the antcontrib, these will be new classloaders,
hence the memory being used up.
The fix is to use the name of the class, check if the IH
in the map is the same class, and if not replace that IH.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@465073 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
996bb8c9ce
commit the first antunit test while showing offending, un-addable text.
Bugzilla 40415.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448646 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
48483f3713
a little cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448642 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
3932c58421
try to address Jon Skeet's concerns about documenting the diff. between add/addConfigured in the Javadoc; removing his TODO
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448641 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
a25075fe6b
backout broken code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448319 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
29121f13cb
fix comment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447986 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
743dd824c9
add Task.setTaskName() to list of hidden set methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447980 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
3883649a0b
remove check on location, make ProjectComponent check for hidden set methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447979 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
63c5a21f1f
Bugzilla 40547: <path location='x'> was broken
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447966 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
Peter Reilly
08bfc05623
fix for 40228, add code to introspectionhelper to make addconfigured higher priority than add, and add addconfigured to chainedmapper
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@436992 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
87c740f8a7
make helpers final (HELPERS); put static stuff before instance-level stuff.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@417600 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
0d2a7bd4fa
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@416179 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
90ae788bf2
Performance enhancement by Dave Brosius
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@412489 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
7eb22e8cdc
indicated when methods/classes became deprecated, as to give us the possibility to remove deprecated methods in the future.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396012 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
c5a01d909c
Removed unused local variables.
I think there is an error in ConCat, see added comment.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278420 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
4f0b931824
2005
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278083 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jesse N. Glick
6ecb04cbad
#30162 : try to avoid a memory leak in IntrospectionHelper.getHelper().
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278078 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
139cee57f7
More LOC; also shrank constructor so checkstyle wouldn't complain.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277230 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
Steve Loughran
29b76e0c01
These are all patches to stop java1.5 whining about varargs.
In java.15 some of the reflection APIs are overloaded to be
usable via varargs, so untyped things cause confusion. These
are everywhere that bootstrap complains.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277008 13f79535-47bb-0310-9956-ffa450edef68
21 years ago