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
Peter Reilly
3bfcba10d1
implementation of matches condition
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449818 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
eeab7a1ba3
refine empty node handling
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449407 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
ffc467b126
Bugzilla 26286: allow empty leaf nodes to be properties
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449309 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
7ac1fe3852
switch when attribute of size fileselector to use Comparison type.
Also took out a bunch of spurious parentheses and moved the public statics to the top.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449115 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
6c9e00f717
containsregexp does double-duty as FileSelector + ResourceSelector.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449108 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
76cfa5be68
migrate resource selectors tests to antunit.
modify containsselector to function as a resourceselector; add test.
alphabetize resource selectors antlib.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449103 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
55e706dbe4
incorporate new LogLevel EA into <echo> and <record>. Are there others?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@449046 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
Antoine Levy-Lambert
359ac4f967
patch submitted by Xavier Hanin, mainly closing HttpURLConnection
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448452 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b912cb97f4
Performance: bugzilla 25778
Minor optimization for ComponentHelper.initDefaultDefinitions
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448385 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
Peter Reilly
40b8196df0
Perforamce:
do not bother to check if need to expand for
strings that do not have $
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448379 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0c318edc89
Performace:
cache last FileUtils.fromUri() result
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448377 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
Antoine Levy-Lambert
d5e3608bf5
close reader of vmwatcher
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448061 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Antoine Levy-Lambert
85168f7e1a
add a close method for JarURLConnection, idea found in
http://svn.apache.org/repos/asf/jakarta/velocity/engine/trunk/src/java/org/apache/velocity/runtime/resource/loader/JarHolder.java
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448049 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
267492df58
Fix for 39439: <fileset> in <cab> does not work.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447991 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
427c2d293d
Have to fix fix from bug 39407, because a nested resource and a nested resource
collection are ambiguous; all resources are resource collections. Added
addConfiguredStyle(Resources) for maximum ease of use; user can specify a
nested resource e.g. <file> or <url>, or any resource collection known to
evaluate to a single result e.g. <fileset file="foo" /> OR
<style refid="somesingleelementcollection" /> is supported OOTB. Docs to come.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447990 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