Conor MacNeill
1293c3bea0
Do not require tar files to be in ustar format. Old V7 format should now
be handled. The main difference is in the handling of uid vs uname which
isn't that relevant to Ant anyhow.
PR: 6634
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271510 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a7f9947566
year 2002 squad at work.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271508 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
3a60c3af7e
Utility task to list all your current properties along with unit tests, as written by Matt Albrecht . Added a prefix to save a subset of the properties for the very silly. Left it in optional.jar although it has no dependencies.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271507 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
6cbeee38fa
Here goes: propertyfile refactoring to hopefully fix all outstanding issues with it. "now" and "never" were removed as operations (didn't make sense). "never" was removed as a value (it caused a null pointer exception anyway).
Other code cleanup (axing "m_" prefixes).
Added "unit" attribute to <entry> defaulting to DAY. This was essentially the previous default, but it was far too confusing.
Test cases beefed up to consider several scenarios.
There may be more changes needed to satisfy other use cases, and certainly some previous (undocumented) behavior has been changed (for the better!).
Is there a use-case for "never" as a value?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271503 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
165b7dfa13
Tests and fixes for the DemuxOutputStream
1. New tests for the DemuxOutputStream and parallel task
2. Fix for the DemuxOutputStream thread problem identified by Jon Skeet
3. Found additional bug where UnknownElement does not hand output and error
strings onto the real task
A little bit of checkstyling.
Hmmm, really should be in bed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271501 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
17832b2eea
<path> is not a task but a data type - and all data types can be used
outside of targets.
<typedef> is another task that may be used outside of targets.
I "fixed" that by replacing path with typedef in Steve's text, but we
really should talk about data types here as well - unfortunatley we
don't talk about data types in the manual at all, so it takes a bigger
effort.
Some year 2002 bugs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271491 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
9580c7126a
bug Id 6601; deprecation warning.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271463 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
79a5919664
fix boundary checking problem similiar to the one fixed for bug report 4290
Actually this wouldn't throw an ArrayIndexOutOuBounds- but a
BuildException as FileList.getFiles barfs out on empty lists, but that
way it is more consistent.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271456 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
63eed537b6
optimize dependset by not comparing each target with each source but
only the oldest target.
Submitted by: mrezaei@starpoint.com
I've also swapped the order of handling sourcefilesets and
sourcefilelists as filelists are a lot less expensive than filesets.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271455 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a45ed20242
@exception -> @throws
Submitted by: Jon Skeet <jon.skeet@peramon.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271454 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
048caece40
move method refactoring - applied in a way that keeps
IntrospectionHelper's API backwards compatible.
Inspired by: Jon Skeet <jon.skeet@peramon.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271451 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
575646714e
simplify createAttributeSetter method.
Submitted by: Jon Skeet <jon.skeet@peramon.com>
Throw in some additional tests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271450 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
cf8ec43ca4
improve javadoc
Submitted by: Jon Skeet <jon.skeet@peramon.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271447 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
01b79d1810
Add a new <contains> condition that looks for substrings.
Names are open to discussion, of course.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271444 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
cd5968cb24
dreaded year 2002 bug 8-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271442 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d3d1af8130
Make sure to set the context classloader to the AntClassLoader.
PR: 5006
Submitted by: mancarella@opoipi.bancaintesa.it (Stefano Mancarella)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271433 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
446a455769
Remove useless modifiers on interfaces.
Submitted by: Mariusz Nowostawski (mariusz@marni.otago.ac.nz )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271432 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
2737393e9f
Fix problems in Linux version of <cab>:
(1) it wouldn't use the basedir
(2) all diagnostic messages have been swallowed
Submitted by: Ilya A. Kriveshko <ilya@kaon.com>
Note that this patch needs the magic of Execute but also access to the
processes' standard input - this has been solved by adding a new
static method launch to Execute which hands out the Process instance,
the proper fix would be to handle input for the spawned processes as
well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271431 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d3cd72efd0
<regularexpression> --> <regexp>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271430 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
851bf0c5ed
Better handling of tasks that are wrapped in TaskAdapters - unwrap
InvocationTargetExceptions when they happen
PR: 5830
To test it I've enabled all tests for <condition>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271429 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
db498d958d
Remove Unused import
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271427 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
c2f05281ce
Ignore redefinition of datatypes if new and old class are the same.
PR: 6514
Submitted by: Peter Kristensen <pkr@netnord.dk>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271425 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
84c5e8b783
Remove excessive deprecation warnings.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271424 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
70b9a92855
fix inconsistency in log levels.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271423 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f20a1d1c4d
please don't use <zip>'s file attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271422 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Diane Holt
bab68a7598
Only use "value" in reference to the 'value' attr; use "oldIntValue" for
the old value from the prop file (0, if none); fix the comments as well.
(Oh right, and fix the damn copyright!)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271421 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Diane Holt
47f04e469c
Fix the increment/decrement operations so they work whether or not
a 'value' attr was specified. (And fix a tiny spacing nit :)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271420 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
ef3cba5a03
Applied documentation patches sent by Jon Skeet
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271414 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a6e3c87111
Make doclets behave the same way as other ClassPath loaded things in the presence of gump ... or at least thats what I think this patch does ? ;)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271413 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
687d070dda
Print a warning if we drop elements from a use supplied path.
Avoid exactly that warning in Ant's own build file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271367 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
96203d2041
Fix sysproperty handling (testcase fails for old code and passes for
new code).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271366 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4a89083738
More JavaDoc documentation fixups.
Submitted by: Jon Skeet <jon.skeet@peramon.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271364 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
466a2a978f
some typos.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271363 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
022ed20a99
Add compiler attribute to <javac> that allows users to override
build.compiler on a task by task basis.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271362 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
5c43f6c93e
Quick fix about naming.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271353 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4ffd54fee4
Remove unused local variable.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271352 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
271c73b91c
Allow -sourcepath for <javac> to be set explicitly.
PR: 5268
Submitted by: Alex Rosen <arosen@silverstream.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271351 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d880f3fef6
Make Ant work with the AElfred parser which doesn't like to be used
via SAX 1.
Submitted by: Andreas Voegele <voegelas@studenten.ims.uni-stuttgart.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271350 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1ef4d3ea86
Submitted by: Jon Skeet <jon.skeet@peramon.com>
Jon's message:
There is one small code change (which may very briefly reduce the
footprint of Ant by about 3K :) and two comments which suggests further
code changes (look for XXX). The rest is, I believe, entirely comments.
I've:
o Made sure that all occurences of null/true/false are surrounded by
<code></code>
o Wrapped comments to under 80 columns (in some ways this is more
important than wrapping code)
o Made sure that all fields and methods have JavaDoc documentation.
o All used method parameters are documented, including documentation of
whether they can be null or not
o All return types are documented
o All checked exceptions are documented
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271349 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
2976ded16a
Handle badly configured tasks created outside of Ant's core
PR: 6309
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271348 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0ec06feed1
I took the time to write a simple shell script to audit Copyright
lines, and now it is paying of ;-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271314 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
bbf5ec8b44
Improve coverage of manifest unit tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271308 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
b9ab19b18b
Fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271272 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
ef5da3ccff
- remove useless object creation
- do not modify formal parameter
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271247 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
968b173a27
Fix violation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271246 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
81973008d1
Fix array declarator
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271245 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
1e67240862
Access static method via class and not the object
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271232 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
532d0a479e
- Add an helper method to write directly a document
as UTF8 from a stream.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271231 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
4fbdadb171
Missed commit for this one.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271229 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
3b349325f1
Refactored handler by extracting specialized parser class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271228 13f79535-47bb-0310-9956-ffa450edef68
24 years ago