Peter Donald
74b3200d90
Move contentEquals method into FixCRLF as it is not used anywhere else
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270404 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0cdd9dd277
When a ConverterException occurs then fail convertion and configuration and re-wrap and throw exception
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270403 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7e1efb8223
Remove trailing newline
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270402 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
aaa47427c1
Make sure the error messages are all in resources bundle and are passed appropriate parameters.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270401 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2fc87ac96a
Update Log class so that it takes enums to specify the level.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270400 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
91c816cbbb
A a class to hold enums for the level at which to log.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270399 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8393e92588
Add a converter that converts between strings and org.apache.avalon.framework.Enums. It is expected that the Enum class have two public static methods with the following signatures
BlahEnum getByName(String name)
(may return null or throw an IllegalArgumentException if bad name)
String[] getNames()
This is a replacement for EnumeratedAttribute that is more friendly to people who want to use enums programatically.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270398 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c347070e1d
Make shorter line
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270397 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ce85ba9cfe
Made sure that the MasterConverter verified that the slave converters return the correct type. If not then it will raise an exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270396 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f1ca327fe8
Made the MasterConverter search through the destination classes hierarchy to find a match for converter. This will allow a converter that converts to a specific superclass also work for all subclasses.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270395 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0b8da0cb29
Turned off extreme debugging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270394 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f82ca6ff2d
Added additional methods to deal with strings.
This is mostly to avoid the use of regexp for
simple tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270393 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f1b8684907
Add an option to append output, I set it to false
to preserve behavior but I think it would be better
to true.
PR: 5559
Reported by: stefanf@decode.is (Stefan Freyr Stefansson)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270392 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
08ddc22648
Messages no longer prefix DestDir, DestFile, SrcFile, SrcDir to prevent
providing possibly confusing error messages to user.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270391 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
781137c4d8
setFile(File) deprecated and replaced with setFile(DestFile).
DestFile is used in this case eventhough SrcFile would make more sense
because currently, <property> does not throw an exception if the file
is not found - it just logs a message. If SrcFile were used, it would have
thrown an exception if the file was not found thereby being backwards
incompatible.
<property> was not checking to see if the supplied file was a directory.
It used to throw a java.io.FileNotFoundException previously. Now it
prints a message saying that it is not a file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270390 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
86003c2f15
Selection of PreferredAttributes over 'normal' attributes may break some
tasks that may have overridden setFoo(NormalAttribute).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270389 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
afa65467f7
1. setSrc(File) deprecated and replaced with setSrc(SrcFile)
2. setDest(File) deprecated and replaced with setDest(DestDir)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270388 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
c2a86d83a1
fixing incorrectly specified FQCN
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270387 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
18897c517a
Delegate validation to DestDir. This has a nice effect on MkDir as at least
one 'unknown reason' (Path containing an existing non-directory element) will
be known by using DestDir.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270386 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f1b5585024
If DestFile or DestDir does not exist, ensure that the path representing the
directory or the file is valid, by checking if the path contains any existing
non-directory element, thereby making sure the file/dir is constructible.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270385 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
4ae3c9e3c4
added empty and file constructors, the latter validates as you go. Also a little IsUpToDate() test for destdir which will should simplify dependency checking.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270384 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
a244b2f855
using srcFile datatype
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270383 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
e29a10c6a8
fixing javadoc tags
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270382 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
8542c23978
add detail on the nested elements; wrapping a few lines in the process.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270381 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
e4f965ec8c
spello
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270380 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4c06c2bf86
setFile(File) has been replaced with setFile(SrcFile). No backwards
compatibilty issues here as task was introduced Post 1.4.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270379 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
0320691179
setSrc(File) has been replaced with setSrc(SrcFile). No backwards
compatibilty issues here as setSrc(File) was introduced Post 1.4.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270378 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
f4df13a3aa
stops the encoding test failing. We now test that the encoding param is supported, but there is nothing to test that the encoding actually works.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270377 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
2058109551
IntrospectionHelper has been modified such that overridden setter methods
that take in 'PreferredAttribute's as argument gain higher precedence.
New attribute types - SrcDir, SrcFile, DestDir and DestFile are introduced. Each of these types is a PreferredAttribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270376 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
80962473e9
cvs didnt like the latin-1 stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270375 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
a225264f50
new loadfile task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270374 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
8958eef718
Modified 'backslash' to be public static final so that the test case can access it. This method is standalone, so having it static is fine.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270373 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
43ebf0d68f
new test for nested text element working, PR: 5579
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270372 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
b2519d45f5
test contents of exceptions match expectations
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270371 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
e6688723b8
PR: 5579 ;fail having uninitialized value trouble.
Which goes to show: if it aint tested, it doesnt work
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270370 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
24f8b28b01
stuck pointers to the mimemail dependencies in here
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270369 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
414d204102
we will have no tabs here!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270368 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
669a7eae15
Start updating logging to myrmidon style logging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270367 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
96f9a81fa6
Cleaned up code and gradually moving towards myrmidon patterns
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270365 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
77bc053aa7
Made GroupArgument a top level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270364 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
898a4c0716
Moved javadoc into package org.apache.tools.ant.taskdefs.javadoc and broken it up to remove all the inner classes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270363 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
255020c002
Fix up license banner.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270362 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3ddf07367d
Fix up license banner.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270361 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fca2ea7857
Add in default implementation of ExecuteManager. It takes over most of the responsibilities of Execute except that it does it in a more easily evolvable manner.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270360 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
33c937a716
Set the output streams to Execute via setters not via constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270359 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c9b993c41d
Set the output stremes via setters not via constructor
Set timeoout value rather than passing in watchdog
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270358 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9d030eb76b
Delegate to execute manager rather than doing the work internally.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270357 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d4ccd6348e
Removed some cruft and cleaned up file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270356 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f7e6cdd1f9
Set the output stremes via setters not via constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270355 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9853214070
Watchdog goes the way of the dodo and is replaced by processMonitor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270354 13f79535-47bb-0310-9956-ffa450edef68
24 years ago