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
Stefan Bodewig
8e8d51c354
Testcase for Project.resolveFile
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269515 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
cbbb182eae
testcase for FileUtils.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269514 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
bdf4456a77
New task dependset
Submitted by: Craeg K. Strong <cstrong@arielpartners.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269479 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f5f32f163a
Make log messages from System.out calls, remove some code in execute
that was redundant, remove some tabs, add testcase that checks that
files don't get overwritten if they'd be identical to the new version.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269474 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a794b2b204
<fixcrlf> now deals with CR only line-ends and arbitrary tab lengths.
It should work independant of the size of the file as well.
Additionally it can treat tabs inside character constants in source
files differently.
Documentation will follow - also it will now update the timestamp of
files, even if the file doesn't change. This will be fixed before the
final release but shouldn't stop us from starting the beta cycle.
PR: 1053
Submitted by: Peter B. West <pbwest@powerup.com.au>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269449 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
cc569b21fc
Mini testcase for the Java task....not fantastic but better than nothing..
It mainly test for the -jar option
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269446 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
c2e92b3185
Add <includesfile>/<excludesfile> elements to <patternset> and friends,
thus allowing for more than one file of each type.
Submitted by: Mark Womack <mwomack@bevocal.com>
Add pointer to "Directory Based Tasks" in the documentation of
patternsets where patterns are actually defined.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269419 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
25116b2c5b
Resolve properties within properties files by first consulting the project
properties first.
PR: 2915
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269417 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
70f7d48dbd
Make UnknownElement aware of TaskContainer so that one can taskdef a
TaskContainer at runtime.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269392 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
6e2f15d42a
Add tests for property resolution in property files
Update JUnit jar to latest version (3.7)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269389 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
64988531ab
Adapt testcase to changes in CommandlineJava.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269358 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
96e168a932
Make test OS independant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269345 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0e650797a5
Various patches to PCVS task:
More robust parser that allows for platform independant paths.
Support for UNC names and a new updateonly attribute.
Submitted by: Thomas Christensen <tchristensen@nordija.com>
Don Jeffery <donj@apogeenet.com>
Fix for problematic file names
Submitted by: ScottCarlson@email.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269342 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ea21f122ab
Add vssver.scc to default excludes
PR: 2015
In some cases DirectoryScanner could miss included files/directories.
PR: 1415
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269333 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8726d0dc58
testcase for JUnitTestRunner.
Submitted by: Stephane Bailliez <sbailliez@imediation.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269317 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ef2c9e1a3c
Make bootstrap process for JDK < 1.3 on Unix work again (bootstrap
uses the <chmod> task to make antRun executable which in turn needs an
executable antRun script ...)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269315 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
c51d45fd2c
support java.util.regex package of JDK 1.4 in regexp mapper.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269311 13f79535-47bb-0310-9956-ffa450edef68
24 years ago