Conor MacNeill
1b83e94bf1
JDM 1.5 compiler is much smarter than previous versions in the handling of
class references which should improve the performance of <depend>
The test has been changed to work with either, allowing eitehr one or two files
PR: 32557
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277263 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
763ad7ae9b
Propagate build.compiler to tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277247 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
4ab55dc0c9
More shadows and statics that make Jikes whine
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277240 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
19d45cc66e
testcases for new attributes on globmapper and regexpmapper
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277236 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
2d0707e131
Jikes again: shadows, some private finals that could be static and statics used as instance methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277219 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
89683e39ec
Spelling
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277216 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
fd1350c42a
use Touch#addConfigured(Mapper) rather than add(Mapper) as the mapper is
used in the method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277213 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
1ddaea8055
touch gets nested mapper plus verbose, mkdirs, and pattern attributes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277197 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
6653c42a77
If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile, right?
(Comment re-used from jglick)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277179 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
6d6bbfeb10
with the bugzilla change 30161 it is not necessary to place
Path.systemClasspath in the antclassloader
Doing so causes resources to appear twice
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277160 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
5320013dd3
Address Windows CVS client line ending conversion incompatibility issue.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277153 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
fa9ec13f40
Just moving license to top of file for consistency.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277137 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
d3e3db4fcc
Unused constant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277136 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
71333195c9
Trying to make unit tests independent of CWD.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277135 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
5a45e0117f
1. Never use new File(url.getFile()); it is not safe with all paths.
2. Using File.deleteOnExit for temp files, just in case the VM croaks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277134 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
bc09dd9275
Library flattens files
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277107 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a53a52b366
add unit test for signedslector
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277090 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
4d34b03883
added isfileselected test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277088 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
515949fd31
Please don't modify my working copy during tests, otherwise I'm going to commit changed files by accident
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277086 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
6a3d5030bb
add new preservelastmodified attribute to signjar
PR: 30987
Obtained from: Ignacio Coloma
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277079 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
dea3b5a66a
Tuning
1-if you dont specify an archive name, use that of the project
2-its OK to specify suffix=""
3-you do need the "." in the suffix; this was not needed.
(3) will break anything which set the suffix. I assumed the user
base was small enough to avoid a compatibility hack.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277078 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
ea0d1cd08b
some simple tests for the issigned condition
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277069 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
f4c6f96bae
1. Move from optional.repository to tasks.repository
2. rename <libraries>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277054 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
f630ef56ed
Updated <getlibraries> code, plus new classes. After this
checkin I'm about to move and rename some of the existing stuff.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277053 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
4d831bb7cb
patch to stop java1.5 whining about character encodings.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277052 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
7e5837b080
Change <apply>'s "overwrite" attribute name to "force". Also commit missing
Java changes. Oops.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277044 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
2f1e0c35af
Add overwrite attribute to <apply>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277043 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
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
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
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
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
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
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
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
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
Steve Loughran
8c49a2b843
Test that verifies XML parser version (Xerces) and feature set.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276933 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
a5a1cf2395
Restore <move>'s ability to replace existing files and/or write
into existing directories.
PR: 31031
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276925 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
e66d7c8754
Dont ask me why jikes decided to go all fussy on me. It has, and these are the corrections.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276923 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
66676d22f4
Make sure test output gets grabbed early enough to capture everything.
PR: 30798
While fixing this, I noticed that printsummary="withOutAndErr" didn't
work with fork="true".
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276916 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
1c48e016c2
Fix for execution of top level tasks getting delayed by targets.
PR: 31487
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276905 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
6f4f0c6075
Throw in some unit tests for <junit> - one of them will fail related to bug 30333
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276899 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
9844e736fe
Make test pass on OS X
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276897 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
4b2db7c0ca
Add alwayslog attribute to <redirector>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276889 13f79535-47bb-0310-9956-ffa450edef68
21 years ago