Stefan Bodewig
776c80d8ec
Fix propertyset's builtin attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277032 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
366f48ac93
Fixed escaping of stderr/stdout
PR: 30662
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277031 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
3f31dc8f7a
Make Jikes happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277030 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
ed380ea5d0
deprecated or not, this is the only way to avoid creation of both - a Date and a Calendar instance - that works on JDK 1.3 and 1.2 - Calendar#setTimeInMillis has been protected before 1.4
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277028 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
52bdd44cde
JDK 1.3-
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277027 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
12efb8ddef
several javadoc fixes.
PR: 30410
Submitted by: Brant Langer Gurganus
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277025 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
5cdf6b2b0c
Invoke static methods as static methods.
Submitted by: Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277022 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
c776fe2b0e
Don't create too many temporary objects, based on a patch by Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277021 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
42d9dddc08
Restore old method signature (BWC) and plug a ResultSet leak at the same time
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277019 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
be45954b98
Avoid calling getResultSet() multiple times when printing just in case Informix does not like it. This was per suggestion of Bohuslav Roztocil.
PR: 27162
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277018 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
509ae3e1f5
Fix a NPE that occurred apparently because Folder.list() can return null
Thanks to Bob Evans
PR: 31965
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277017 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
c8d28da5f8
Manifest task logs warnings: PR32190
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277015 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
1299460664
Fix invalid xml formed in case the filename is made of reserved xml characters (ampersand for entities for instance)
PR: 30817
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277014 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
d809433494
Make it compatible with Safari.. the open function does not return any document.
Thanks to Ingmar Stein
PR: 26953
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277013 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
a1ead42848
factor out close logic. This changes
semantics slightly was we no longer raise an IOE
if file closure fails.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277011 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
98e632f37a
factor out close logic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277010 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
87ce22c5e9
final declaration is moot for a static
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277009 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
29b76e0c01
These are all patches to stop java1.5 whining about varargs.
In java.15 some of the reflection APIs are overloaded to be
usable via varargs, so untyped things cause confusion. These
are everywhere that bootstrap complains.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277008 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
4216b1a4cc
Improve code as suggested by Dominique
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277007 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
ff703c26b3
fix years
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277006 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
b1186f08a3
Preparations for PR: 21832, in particular unit tests and some
refactorings for <sync>
Changes to Sync:
* drop JDK 1.1 compatibility,
* override scan instead of buildMap in MyCopy so that we get the
included directories even if includeEmptyDirs is false.
* use a DirectoryScanner to find orphaned files instead of the
recursive algorithm.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277005 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
32365ed4e0
Some places where url.toFile has been used instead of FileUtils.fromURI.
PR: 30593, 30642
Submitted by: Kevin Greiner <kgreiner at xpediantsolutions dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277003 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
1700aa0b9e
Make getCompatibilityWith actually compare two different values.
PR: 31360
Submitted by: David G�rtner <david dot gaertner at syngenio dot de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277000 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
24f365284e
Don't use deprecated code. Submitted by: Kevin Jackson <kevin dot jackson at it dot fts dash vn dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276999 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
09966b4c39
Adjust to reality
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276998 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
b5252dc951
Adjust to reality
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276995 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
53cd4e8958
Tests for recorder by Martijn Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276994 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
7651d02856
1. Updated repository work; now has the following from Russel Gold's contrib
-uses <get> to get
-sets a classpath after
2. some changes to Get to make this work. They also lay the way to adding progress indicators to guis, if that is felt useful in IDEs (it may be, once downloads become more common)
3. starting on security. This will need to work with <checksum> to get done. Currently the md5 can be fetched if asked for, and if so it must exist.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276989 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
c8203de650
whitespace changes only
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276987 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
f40450a1ea
Make sure <record> lets go of files when stopped.
PR: 26020
Submitted by: Martijn Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276986 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
e47f624d54
more diagnostics
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276984 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
844ca96965
merging features of Russell's dependencies contribution;
conditional dependencies and setting of a path to the dependency list.
Moving from httpclient to get is still todo.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276982 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
fdc903238f
Patch in PR# 21996
add a flatten to unzip.
I actually only patched in the mapper nested element support; with that the flatten attribute can only introduce inconsistency (what if you spec a mapper and flatten=true).
And the patch was modified to keep the attributes private, with a getMapper() operation for subclasses (like untar) to get when needed.
Did a bit of cleanup -especially of the unzip tests- while at it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276981 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
060243e8bf
Use org.apache.log4j.Logger instead of org.apache.log4j.Category
PR: 31951
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276979 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
f993e95b32
Make handling of javac -source easier. Simply make JDK 1.4.1's
interface upwards compatible.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276977 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
04b378d4c8
not testing the broken stuff; will do a big rework soon w/ the httpunit and incubator stuff integrated
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276976 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
39868ef368
Properties.propertyNames() should be used instead of .keys():
fix for previous fix - use getProperty() and not get()
fix for PropertySet
PR: 27261
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276971 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
7e145de4f1
Properties.propertyNames() should be used instead of .keys().
PR: 27261
Obtained from: Mike Murray
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276969 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
a39b8f902e
Removed too much with my last patch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276967 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
6515402721
NPE using XmlLogger and antlib
check if the value of the name attribute is not null
set the taskname of the antlib task
PR: 31840
Obtained from: Mariano Benitez
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276965 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
39404a0194
Better error reporting when users set the wrong default namespace.
PR: 30660
Submitted by: Kevin Greiner <kgreiner at xpediantsolutions dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276963 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
a245b4e9e6
compiler attributes is used to determine command line arguments even in the fork case, this warning is misleading. PR: 31664
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276961 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
d2ceff2d4e
Move GetLibrariesTest to make tests compile without httpclient
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276958 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
045a7004a1
Repository support; needs http client 2.x and commons-logging.
Broken: repository references (you'll see in the test results)
not tested: authenticated access to the repository.
Already had a feature request for multiple repository support;
would be nice. That and better diagnostics on failure.
Note that we dont currently probe ibiblio for availaibility; that was taking longer than the fetches themselves.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276957 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a340fef0f6
Concat task instance could not be run twice
PR: 31814
Reported by: elara at smartops dot com (Eduardo)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276953 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
4e1ca8adac
ExecTask executes checkConfiguration() even though os does not match.
PR: 31805
Obtained from: David Boon
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276951 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
7228bef97c
add failall value for onerror attribute of <typedef>
PR: 31685
Obtained from: steve morin
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276950 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
9f4c2a3be6
Errors thrown before we fire startTestSuite cause problems in setOutAndErr
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276945 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
3c231b4ee7
The code that tries to detect a crashing forked VM in <junit> breaks
down when the VM runs multiple tests.
The old code used a TestFormatter and detected a crash if the expected
output had not been written. If multiple tests get run in one VM, the
TestRunner ignores the filename that has been passed in - and the task
doesn't find any output.
Even if it didn't ignore the file name, a single non-crashing test
would have made the task think, the VM finished in a healthy way.
Make the crash-detection more explcit and let the TestRunner cooperate
more than before.
This bug has been presented by Gump in cooperation with the Hivemind
build.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276942 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
52af56afe8
define <ispingable>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276941 13f79535-47bb-0310-9956-ffa450edef68
21 years ago