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
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
Peter Reilly
d4ebf04094
Try to get the correct task/type name for an unsupported attribute/element
exception thrown by IntrospectionHelper
PR: 31389 and 29499
Reported by: Tamas Szeredi and Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276882 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
f94d46e400
fix sizeselector testcase
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276860 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
ac747c8ca7
allow testcase to compile under jdk1.2.2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276856 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
1ddab2c141
add xmlcatalog nested element to the xmlproperty task
PR: 27053
Obtained from: David Crossley and Dave Brondsema
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276840 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
0f723fa82a
Support different output formats in checksum, PR 16539, based on a patch by Mark R. Diggory
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276838 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
84bfc9dabe
Allow <move>'s file attribute to rename a directory.
PR: 22863
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276806 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Antoine Levy-Lambert
12f1e22e1f
Zip task did not create tasks when there are only empty directories in the selection
I have simply added a testcase, the code was already fixed by Matt Benson in Zip.java
revision 1.128
PR: 30365
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276804 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
d0fe01180d
Provide access to extension points and attribute/element/extensions/text methods in
IntrospectionHelper
PR: 30794
Obtained from: Dominique Devienne
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276796 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
73bea8d87b
test fixup, I still think the csc tests are broken.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276762 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
ea016c9845
fixed the test failure, added a proper self contained test.
I have commented out the test that asserts that sourceTime==destTime implies up-to-dateness. This is an interesting problem. Filesys granularity gets in the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276761 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
85f05e8b8d
more tests; 'default' compiler and "" has a well defined behaviour.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276757 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
18aa085b70
IDE stuck in a GPL license, thinking this was day-job code :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276756 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
fdf4bba148
rmic gets a fork option.
Most of the changes here are actually adding tests, which was surprisingly hard work.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276755 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
45a286b046
sneak in an explicit test of the new file utils timestamp comparison stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276753 13f79535-47bb-0310-9956-ffa450edef68
21 years ago