Stephane Bailliez
488529801c
Update ANTLR to revert to forked-mode only.
Comments in code should be self explanatory for the
next person who have to deal with it.
Testcase is updated (working dir is no more mandatory)
and I added a note in case someone wants to run
the tests... I should probably add a mention to
this in the ANTLR docs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270161 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ce90a68baa
Add a testcase that demonstrates why FOP's build fails right now.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270140 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3745d5dc70
Add a new inheritRefs attribute to <ant> with a default value of false
that controls implicit copying of references - i.e. we don't copy
anything by default.
Try to copy a clone before copying the real object.
inheritRefs="true" doesn't make any sense for <antcall> as all
references of the calling project will be defined in the new project
and wouldn't be overwritten. That's why <antcall> didn't even get
this attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270136 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ddc395dffa
Add some tests for manifest task - realized that empty manifest aren't
that empty.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270133 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1318b84a90
remove exit ability from <input>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270129 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
b546691d3a
Add if/unless attributes to <fail>.
PR: 1380
This is the first step to remove the fail functionality from input and
waitfor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270126 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
e8f24b5abb
JDK 1.1 doesn't grok UTF16 8-(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270122 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
03d2b1c05f
If running on JDK 1.3 register an exit handler that kills spawned
processes when the JVM exits.
PR: 5125
Submitted by: mnewcomb@tacintel.com (Michael Newcomb)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270117 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
05b5cb8f3d
Allow <ant> and <antcall> to pass references to the subbuilds.
Submitted by: Matthieu Bentot <mbentot@arantech.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270105 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
03e7448524
constructor has changed for filtering
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270100 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
48aa9d115e
Added a test for time dependent copy -and the ability to override it.
This is long for a test (=harder to tell which assert failed), but if you are going to sleep between touches then you should make the most of the test.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270096 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
04a1688d9c
fix testcase that requires /tmp to exist (at least I hope so).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270088 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
809dcaf287
enable modified version of the awk test to demonstrate there is no problem.
PR: 4911
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270080 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b06aed6911
Update to remove warnings generated by antcall due to last immutability tightening. Did this by adding a protected constructor to property.
Made sure that operations internal to Project could not generate these warnings by adding a new setPropertyInternal method that didn't do any checks.
Also made the getUserProperties and getProperties methods return copies of maps rather than direct references.
Updated WHATSNEW to warn about these issues.
Added some unit tests to verify that property immutability is enforced - where we actually do enforce it ;)
Submitted by: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270078 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c3abf0c4cb
Remove some deprecated language features.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270077 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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