Stefan Bodewig
683d210dae
follow Jesse's suggestion and use ant.core.lib - make testBasicOperation platform independent
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@896829 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
98563c7884
additional testcase
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@896823 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Antoine Levy-Lambert
d48905f7ec
preparation for ant1.8.0RC1 release
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@896194 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Antoine Levy-Lambert
f815d1f876
removing ant-weblogic and ant-starteam
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@896123 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
510f6b08f6
target-group -> extension-point
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@895567 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
009c4a440c
copy-paste error + @since
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@894464 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
24fbc8626d
complement prefixlines with appendtolines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@894462 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
94cf2091bf
document resourcelist and make it available
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@894459 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
bfc70a7112
functional tests for resourcelist
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@894458 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
1d9f0594cf
reference handling tests for ResourceList
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@894449 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a87dab03d9
a resource collection that reads its members from a list file/resource. Untested and undocumented, likely to be pushed to 1.8.1 unless I'll finish it in time for the RC1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@893843 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Kevin Jackson
2fa25afa49
-remove unused import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@893422 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Kevin Jackson
009a578153
-fix typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@893417 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
6cb11c4a23
try a bit harder to close the archive when reading a build file. Since that still doesn't work, add a task to brutally close jars and use it in import-url-test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@890827 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
792092f443
add a debug log statement to increase pressure on GC and hope to avoid PR 42696
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@888888 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
87142931bd
take advantage of FileUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@887990 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
d1e9fb4608
Make sure hashvalue algorithm of modified selector reads the files completely. Submitted by Nathan Beyer. PR 48313.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@887838 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Kevin Jackson
37b4989c05
allow scp verbose flag to actually log info - also makes ssh more chatty
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@885684 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jesse N. Glick
42b64be716
Trying to improve on r881624 robustness fix:
1. Use FileUtils.tryHardToDelete to delete possibly corrupt properties file.
2. Do not try to delete until after closing output stream.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@883514 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jesse N. Glick
fbd5fe56fc
Fixing fix for OOME in <subant>.
Was getting wrapped in BuildException by both DispatchUtils.execute and Project.executeSortedTargets.
Instead of trying to prevent wrapping, which is difficult to enforce, just die on wrapped hard errors.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@881627 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jesse N. Glick
37cf105bb3
Trying to improve robustness in <subant> and <propertyfile>.
Observed a long-running build randomly failing with text like this:
[propertyfile] Updating property file: .../whatever.properties
[subant] Failure for target 'something' of: ...module1/build.xml
[subant] The following error occurred while executing this line:
[subant] .../something.xml:123: java.lang.OutOfMemoryError: GC overhead limit exceeded
[subant] Failure for target 'something' of: ...module2/build.xml
[subant] The following error occurred while executing this line:
[subant] ...module2/build.xml:12: The following error occurred while executing this line:
[subant] .../something.xml:123: Syntax error in property: ${some.prope
[subant] Failure for target 'something' of: ...module3/build.xml [etc., hundreds of times]
Turns out that whatever.properties had been truncated at exactly 24k characters, in the middle of a line.
Fixing <propertyfile> to therefore collect all of what it plans to write, then write it.
Also trying to make <subant> actually stop the build when it gets OOME, rather than continuing
(probably in vain) just because failonerror="false" (which is intended to catch "normal" problems).
ThreadDeath should also be rethrown, not logged as a subscript failure.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@881624 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e1cd13c79b
support creating url resources relative to other URLs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@880590 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
42f31b452b
Fix import's file attribute if file is imported from URL, test it, document it. Note to self - url resource needs a way to create relative urls. Not to self - the duplication in the manual pages for import and include must stop.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@836334 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Jan Materne
746437d824
Try for CI-build: use another tmp.dir
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@835835 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a5da600a7a
make import support resource collections. PR 22269
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@834772 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
3a39ebed99
All instances of the same scriptdef task shared a single ScriptRunner, causing problems in multithreaded situations. Submitted by Valentino Miazzo. PR 41602
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@834354 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
2ef9a200ad
allow import of FileProvider or URLProvider resources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@832990 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Scokart Gilles
6d82803909
Mark field final (not strictly required, but looks better)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@830859 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
211d0a8ea6
make javaresource an URLProvider
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@830244 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
28ca062311
Use URLProvider instead of URLResource
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@830209 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Nicolas Lalevee
89ddfa3d6c
- use the project helper repository for antlib too
- change the ProjectHelper API to start using Resource instead of URL or File
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@829947 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
632c01d042
Only store the command's output with no decoration in sshexec's outputproperty if the command attribute is used. PR 48040
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@829311 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a2cedaed6c
Same fix as for AncestorAnalyzer - make code compile with BCEL's trunk
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@829307 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
98f78e19bd
tar doesn't always recognize the target isn't up to date. PR 48035
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@828141 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
26fe7e110b
adapt to BCEL change, see dist-ant's Gump build failure
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@827887 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
fa67ab4990
Make if/unless und junit test children use the same logic as target's if/unless
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@823395 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
163f90f6bc
Make junit's formatter if/unless behave like target's if/unless
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@823158 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
f503d05c52
make funtest even less visible
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@823150 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a4445df988
properly indicate the oldgnu format for tar entries with long file names. PR 47653. Submitted by Lorenz Diener
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@823136 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
48468d8995
use the same logic as target for xslt's param element's if/unless attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@822118 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
73c0030ac6
make select selector and include/exclude use the same logic as target for if/unless
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821847 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
b71fd5ddcb
provide project instance to internally created types
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821845 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
8a848413c4
better deal with null projects
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821836 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
bf8a13577a
behavior when property value is neither true nor false
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821803 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
f95493959b
fix logging logic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821677 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
1d56ecb5ab
Make fail task use the same if/unless logic as target
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821676 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
df102bb3a3
Move "don't check conditions if the attribute hasn't been set at all" logic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821675 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
c6b7ba94ce
Make target's if/unless treat true/false strings as booleans
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@820881 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
b31df63e38
Add missing license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819571 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
abe09254ec
create fresh instances in each invocation of getHelpers. Needed by ProjectHelper implementations that keep state and cannot be reused, like ProjectHelper2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819570 13f79535-47bb-0310-9956-ffa450edef68
16 years ago