Stefan Bodewig
96fa99ee6c
create local copies of realThing to avoid TOCTOU race condition
see https://bz.apache.org/bugzilla/show_bug.cgi?id=65316
4 years ago
jkf
3a4980e3c4
updated reference to license from http to https using
find . -type f -exec sed -i "s/http:\/\/www.apache.org\/licenses\/LICENSE-2.0/https:\/\/www.apache.org\/licenses\/LICENSE-2.0/" {} \;
6 years ago
Gintas Grigelionis
551cb55e32
Revert last 5 commits
7 years ago
Gintas Grigelionis
2b699eb695
SonarQube: nested if’s is a major code smell
7 years ago
Gintas Grigelionis
070c3bc86f
Deprecate CollectionUtils and Enumerations;
reduce explicit use of Enumeration
7 years ago
Gintas Grigelionis
5f4c43ddc3
Checkstyle/spelling
7 years ago
Gintas Grigelionis
95495d57aa
Remove extraneous casts and (un)boxing, tersify logic
7 years ago
Gintas Grigelionis
7f1e7628b3
Checkstyle: whitespace, line continuation and modifier idiosyncrasies
8 years ago
Matt Benson
b7d1e9bde4
java 5-8
8 years ago
Stefan Bodewig
e1f9674ab3
false positives for null dereferences
9 years ago
Jan Matèrne
bf6026a147
organize imports
11 years ago
Antoine Levy-Lambert
46c940785a
adding if and unless namespaces allowing to put conditions on all tasks and nested elements. Code written by Peter Reilly. Bugzilla PR 43362.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1479422 13f79535-47bb-0310-9956-ffa450edef68
12 years ago
Matthew Jason Benson
3d706ab818
java 5 updates
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1375137 13f79535-47bb-0310-9956-ffa450edef68
13 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
Nicolas Lalevee
74f2e55f3c
make the flush of the error stream actually flush
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@958704 13f79535-47bb-0310-9956-ffa450edef68
15 years ago
Jan Materne
03726c31c1
whitespaces
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@712663 13f79535-47bb-0310-9956-ffa450edef68
17 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
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
Peter Reilly
561706f38c
Bugzilla 44689: NPE with multiple targets and id's in task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@641903 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
7ec7ef9d62
place the cleanup code in a finally clause
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568876 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
90e46ca4cd
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@471289 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0aa2b2528f
some checkstyle changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@469717 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
e563725d1b
Free the realThing with UE is finished with it
(fixes since last look at this allows this)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@466283 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
f5c95e9ca4
add fall-back for undefined references that are parsed
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@465065 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
135b0fa373
UnknownElement.maybeconfigure was 'always configure': Bugzilla 40641
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@451479 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
d2cdd21fe5
Bugzilla 40621: fix ordering of add and addconfigured
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450605 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
e028c28100
Performance:
if a task does not have an id, do not bother
to replace the unknownelement in the tasks list of the target
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448382 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
74434ce5d0
Push setLocation down to ProjectComponent, reflect it into adapted tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@442287 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
Jacobus Martinus Kruithof
0df2b1de3f
Minor updates based on the input of Dave Brosius
pr: 39320
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@397298 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
7917d87521
#38056 : NPE when using presetdef under obscure circumstances.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@359329 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
9229d25b42
When getting the real object from UE, do not call Task.init() on the Object
returned from ComponentHelper as init() has been called in createComponent().
PR: 34411
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278131 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
Jacobus Martinus Kruithof
0ba9db2412
Renamed parameter to avoid hidden member variable
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277774 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b0003afe36
complete rework of reporting when we cant instantiate an element
old: generic error message
new: step by step diagnostics with instructions.
The code treats ant tasks and ant optional tasks specially, based on package names.
Also: moved some constants into the appropriate places.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277750 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
83c26f549b
NPE when when <presetdef> tries to configure a task that
cannot be instantiated.
PR: 33689
Reported by: Steve Loughran
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277704 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
6ca8466008
Add clone task.
PR: 32631
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277320 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
fc4482c260
remove modifying exception code for unknown<attribute/element>exception
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276891 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
d4ebf04094
Try to get the correct task/type name for an unsupported attribute/element
exception thrown by IntrospectionHelper
PR: 31389 and 29499
Reported by: Tamas Szeredi and Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276882 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Magesh Umasankar
63c0593a82
Tasks extending from oata.Task and implementing Dispatchable are not dispatchable.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276560 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
278074659b
add implicit element to macrodef
PR: 25633
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276490 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
4b2cd31d48
remove refernce to optional.jar in "unable to create task/type" message
Obtained from: Jack J. Woehr
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276283 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
Steve Loughran
e0a983e358
adding hints about presetdef/macrodef to the errors. Now that I am using them, they are the main source of this error :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276159 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
Peter Reilly
336e5b4ed9
Reverting setting the wrapper proxy to null as the unit tests failed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275841 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
476da8dd23
UnknownElement set the created task to null for gc , but did not
set the RuntimeConfigurable's copy to null as well
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275840 13f79535-47bb-0310-9956-ffa450edef68
22 years ago