Magesh Umasankar
e503ebd4c7
setFoo(String) replaced with setFoo(ExtendedEnumeratedAttribute) for certain attributes of these tasks:
Available.java
Tar.java
Tstamp.java
setFoo(String) has been deprecated for the affected attributes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270071 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f6db0835f7
New task <input>
Submitted by: Ulrich Schmidt <ulrich.schmidt@gmx.net>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270051 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
3beb7f13cd
Make BZip2 task comply with native bzip2 when there are multiple blocks
in the compressed file.
Submitted by Keiron Liddle "keiron@aftexsw.com"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270047 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
aacd26fab0
split javac testcase so that it doesn't use Project.unsetProperty any longer.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270042 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
3b2f961a60
tstamp now supports a timezone attribute for a custom format.
PR: 5000
Reported by: max@eos.dk (Max Rydahl Andersen)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270005 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
95fa304e14
1. As suggested by Peter, nixed the attributes outfile & verbose
previously added to Untar, Unjar, Unwar and Unzip, so that these tasks stay
focussed on unarchival and nothing but it.
2. If the Src attribute represents a directory, an exception is thrown, as Stefan
suggested. Nested Filesets to be used instead.
3. Testcase added to catch this exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269985 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ee7a81d646
Add testcase for untar, improve testcases for zip/unzip/tar
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269978 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1942efc118
add real tests fro the gzip and bzip2 tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269964 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
495b7c4688
Add testcase for <checksum>, clarify its documentation when used as a
condition and create checksums in Ant's distribution target.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269963 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4db248f63f
add method that compares file contents to FileUtils, use it in FixCrLf.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269960 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
41344d212c
testing for XMLReport...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269949 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
277a8471ba
better incomplete than nothing...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269947 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
aa51279001
Removing import that is no more needed... wiped out. :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269943 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
62f7d9f2ca
bad naming....remove this
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269942 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
9a1b892736
*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269941 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
812fa3e8ca
little testcase to ensure that I did not break too many things will refactoring aggressively the code behind the hood.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269940 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
08f1fb49e4
Added the test testAwkCommand to reproduce bug 4911
I commented it out for now since I'm not that confortable with the quoting logic in command line.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269936 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
b40b53c73c
Adding test to demonstrate multiple files transform for trax as filed in bug 4335
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269933 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
c35619ac8a
Added more tests for Manifests
Fixed problem with multiple class-path attributes. Hopefully Sun will
update their spec sometime.
PR: 4683
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269921 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
6345068235
Fixed the description bug reported by Gerhard Langs <glangs@eunet.at>
Description is now backslashed so that delimiters are backslashed correctly and do not confuse Oro.
Based on a patch from Magesh Umasankar <umagesh@rediffmail.com>
Added basic test case to ensure fix.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269914 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3f37290d4a
Initial cut at Manifest tests. This is in preparation for handling multiple
Class-Path entries. More to come.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269912 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3572b96ca9
Move all tests to BuildFileTest from TaskdefsTest
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269911 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
286537d1f8
Make <fixcrlf> work for long lines as well.
PR: 4186, 4646, 4709
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269907 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8e37dd0ba2
Add encoding attribute to <fixcrlf>
PR: 961
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269904 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ba558a362e
Make <typedef> something that is useful.
PR: 4143
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269893 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1e88913f66
Enable the commented out tests in TaskdefTest - they failed because
org.apache.tools.ant classes must live on the system classloader to be
loaded.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269892 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
6fcd5887aa
targets are not tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269891 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
b31544238d
don't try to do too much with the regexp stuff.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269890 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f84c5e38fe
make unit tests work on Windows (at least I hope so 8-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269880 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a66a2b7f86
Add testcases for latest <javac> changes, fix some problem with some
rare combination of the fork attribute and build.compiler settings.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269879 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
8c33cae423
Remove undesirable package dependency by making TaskdefsTest facilities
available to all Ant Tests in the BuildFileTest class. The next step is
to make current Taskdefs inherit directly from BuildFileTest and then
deprecate TaskdefsTest
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269867 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
e90e60c110
assert -> assertTrue in two testcases I had missed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269863 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
307c136939
push createTempFile to FileUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269859 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
5f93102e17
Make sure the class passed into Project.addTaskDefinition is suitable
for a task, that is it is public, non-abstract, has a no-arg
constructor and a public no-arg execute method.
PR: 4163
Submitted by: Ralf Wiebicke <ralf@rw7.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269857 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d17f3c4f2a
Use locale independent methods to identify OS or match attributes and
elements in build files.
PR: 4100
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269847 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
32da696de4
Add testcases for the inheritall/dir attribute combinations and their
results on the new project's basedir - clarify documentation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269838 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
65c82879ee
Make <style> support Exolab's new Adaptx processor.
Submitted by: Arnaud Blandin <blandin@intalio.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269832 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
be53ecfdc2
Add testcases for the substitution methods (and make them work 8-)
Add testcase for <replaceregexp>, this task now works with ORO,
Jakarta Regexp and JDK 1.4 if you use \1 to refer to parens in the
regular expression.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269822 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
dfc1957328
testcases for case insensitive matches as well as multiline versus
singleline mode.
Note 1: doStartTest1 fails with ORO 2.0 but works with 2.0.4, better
use the latest release 8-)
Note 2: doEndTest2 fails with Jakarta Regexp 1.2, I've disabled it for
the time being, but may look into it later (file a bug report,
and so on).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269821 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
321c9dc68e
assert -> assertTrue in all testcases.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269814 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
1f2d7b9b3b
a full second of leeway on the clock during sleep tests to address scheduling/timing issues across different platforms.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269803 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
09a7def3cd
Make <propertyfile>'s default attribute work as expected.
PR: 3955
Submitted by: Erik Hatcher <jakarta-ant@ehatchersolutions.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269802 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
59fcd9ab82
Add initial testcase for the optional propertyfile task.
Submitted by: Levi Cook <lcook@gr.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269801 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
490a7cd059
remove redundant code from FileUtils, handle Netware case in
IntrospectionHelper's testcase.
Submitted by: Jeff Tulley <JTULLEY@novell.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269800 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
471322b9ae
I made a lot of changes here, to almost every test case in the "testConstructor" test. �Partly this code is system-dependent, but it is also testing that the paths are tokenized or split into individual paths correctly, so that system dependence is probably ok here. �I simply added in a NetWare case everywhere there was a UNIX and Windows(really, "else") case.
Submitted By: Jeff Tulley �(jtulley@novell.com )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269788 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
361eba4355
Make FileUtils.resolveFile more robust - modelled after File(File, String).
This avoids the explicit checks for null directories in
SourceFileScanner as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269755 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
df14132289
Merge in 1.4 src changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269663 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f66cab0ea7
Merge from ANT_145_BRANCH up to Beta 2
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269587 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
25484253db
Move resolveFile methods to FileUtils, add a normalize method there.
Make sure Ant normalizes whatever it takes as its basedir - since
we've dropped canonicalPath
ant -f foo.xml
and
ant -f ./foo.xml
would have given different results (the . needed to be stripped).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269522 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
66810782a6
Does this pass on Windows?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269518 13f79535-47bb-0310-9956-ffa450edef68
24 years ago