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
Stefan Bodewig
d6b9d9ccd3
whitespace and a typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819565 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
5edb2be598
Syntax error. PR 47911
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819556 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Nicolas Lalevee
df121a6cf5
PR 47830 : implementation of the ProjectHelperRepository to make Ant able to choose a ProjectHelper, and some doc about it
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@819284 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
cb2df57502
things you didn't know target could do ;-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818447 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
1e3a386779
and aurora has a different address
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818394 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
df8a59cf0f
www.ao is aurora for now
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818390 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
5438260e40
GlobMapper's from attribute was broken, too
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818389 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
3935277bce
improve logging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818143 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
b1a62de50c
oops
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818135 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
aea6464f0e
test with more than one resource
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818133 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a920aa9f30
Make <get> support resource collections and mappers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@818129 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
32f323668f
URLProvider interface
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@817702 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
2e0b8b7d3c
handleDirSep on name selector. PR 47858
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@816591 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e25dc381ca
implement a new ${ant.refid:} syntax to expand project references as properties
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@816153 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
396f8e9b9b
enable test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@816139 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e06e8ceec5
Passing tests for PR 47844
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@815680 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a7cf25e509
Close all input streams when unzipping, Submitted by David Schlosnagle, PR 42696
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@815599 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
df7dfba9d3
convenience constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@813759 13f79535-47bb-0310-9956-ffa450edef68
16 years ago