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
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
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
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
Steve Loughran
7c58ba3edd
Having learned about how the java memory model really works, I have had a quick code review of the threading here.
1. stuff that is shared read is always marked volatile, to avoid being compiled out.
2. added more synchronization when appropriate.
I make no claims as to thread safety here, as I was never that good at formal proofs of correctness.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@465013 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jan Materne
ae5166d215
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@464439 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
45b244fd64
use FileUtils.close to close the Reader open for the crash file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@464359 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
707e6f329b
Reduce to verbose message of overridding properties.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463868 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jan Materne
94f6a31817
Factory method for easier instantiation.
Bug 14831
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463601 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
911c5901fc
opps: restore correct behavour for setting basetest attributes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463447 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
1cddc5e638
fix failures
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463287 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
79f24fd579
Added outputtoformatters attribute to <junit> to allow suppression
of noisey tests. Bugzilla report 12817.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463045 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
157e6f3305
Let Path use Union by composition instead of inheritance so that third-party
code using paths built against Ant 1.7 should still run against Ant 1.6 .
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@462955 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
66838f3c29
Added <compare> resource selector to select resources based on the
results of their comparison to other resources. Inspired by userlist thread
http://marc.theaimsgroup.com/?t=115998761500004&r=1&w=2 .
Still lacks an example other than testcases. :(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454842 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
4baba959d2
extract DelegatedResourceComparator from Sort collection
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454829 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
a4c55d35b9
fix method signature--accidentally and unnecessarily opening up access
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454827 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
76a6b5c4c9
extend DataType, equals non-final
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454824 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
a5360da98a
PathConvert on Windows should process forward and back slashes equivalently.
Bugzilla report 32884.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454032 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
3822ba4a35
Fix for junit4
in JUnit4 annotations are placed in org.junit,
so this package needs to be made a "systempackage" for fork=no to work.
Bugzilla report 40697
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@454027 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
d7f1401f85
Defer references
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453770 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
3b1908017a
ignore null child collection, why not
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453765 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
7b8f2409f8
line up with some other exception throwing utility methods e.g. in DataType
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453763 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
583cfae0e5
Do not set ant.file.{projectname} when the project name
is not set in the <project> tag. (as discussed)
Bugzilla report: 39920
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453401 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
c524f9ba22
Bugzilla 40682: junit regression
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453350 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
8ed820fa86
refactoring of WeakishReference, as discussed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453274 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
329d23fb88
close using FileUtils.close
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453156 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
33c2653138
Bugzilla 30498: no check on refid for setting some attributes in zipfileset
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453035 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b10bf232ba
another go at bugzilla 38747, isolate resources
get the baseloader for resources in isolate mode
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@453032 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
ef789dfa9b
Always handle refid first.
Refid normally cannot be used with other
attributes and some types check for this.
The code is broken in a number of places -
if refid is not set first. To fix this,
runtimeconfigurable will now always process
refid first.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@452635 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
a045d5480c
revert making ConditionBase a Task after discussion on dev@apache.org
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@451444 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
5998d06be2
remove finalize method, suggested by Peter Reilly
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@451160 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
7500bf94b8
Make conditionbase a Task.
?was there any reason that this was not done for ant 1.6?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@451000 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
f1c84aeb99
running junitreport several times, issues with closing URLResource, bugzilla report 40595
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450863 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Kevin Jackson
c653fb3069
- fix broken build - change to ConcatResourceInputStream wasn't completed here in Concat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450679 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
da045acc91
revert 38747: resource isolation, should fix one of gumps issues - look at other later
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450614 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
274f5d877f
add the <tokens> resource collection; tokenizers graduate to free-standing types
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450611 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
6e2df44c94
Extract StringTokenizer and FileTokenizer from TokenFilter.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450610 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
9daeaaf04e
add @since tag, remove unthrowable constructor exception, and shrink some stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450609 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
367896b928
unnecessary line break
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450608 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
7f1c9c1617
remove unnecessary parens
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450606 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
Matthew Jason Benson
1a67702cbf
Add "more" as greater-than synonym in Comparison type.
Simplest way to fix the SizeSelectorTest failure I introduced.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450538 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
3f73a85198
Bugzilla 31520
adding SPI to jar-task
This patch from bernd Dutkowski adds
a nested element <service> to the <jar> task
this creates the SPI files - see doc.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450209 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b473d2ab95
eol-style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450207 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
f35b23cd42
New files for service element for <jar>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@450204 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
962afc9797
fix typo (reported by Antony Goubard)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449828 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b65fcc8a3a
Bugzilla 28883 add <matches> condition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449824 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
e0f2e450f7
eol-style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449819 13f79535-47bb-0310-9956-ffa450edef68
19 years ago