Peter Donald
ee5b9c7e25
Update classes so that Path no longer accepts a Project object in its constructor and there is no setProject in ProjectComponent objects
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270424 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
215ff90fee
oops, forgot the license on first pass
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270423 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
af3b6295b4
Use new format of LogOutputStream
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270422 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
766f01e626
Removed log() method as no classes use it anymore
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270421 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
24c5d3e7cb
Moved MapperType inner class to top level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270420 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4109d9eb05
Cleaned up Mapper and moved MapperType inner class to top level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270419 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
93092c4c72
A new mapper to allow checking <uptodate> from test cases to their XML formatter results.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270418 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3612131a65
Move EchoLevel inner class to top level class
24 years ago
Peter Donald
76d232ed49
Update to use getLogger().<method>() rather than log()
Move EchoLevel inner class to top level class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270416 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5650a7f8d4
Remove log() statement and replace with getLogger().debug()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270415 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cb4b0a1e08
Update to use new format of LogOutputStream where you pass in a Logger
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270414 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c68a4ebc87
Remove filtering from rmic task because it didn't make much sense to do filtering there
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270413 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d052a7f47b
made method to create filters protected so it can be used by Move subclass
Removed all notion of setting log level as it is no longer used.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270412 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
09da369046
Reuse subclasses method to create filters
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270411 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
771c04c147
Removed the ability of allowing pluggable log levels.
Refactored creation of filtersets into new method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270410 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
59526e7a67
Remove deprecated behaviour of using MatchingTask
Removed the ability of allowing pluggable log levels.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270409 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5205e1bb54
Update to use new format of LogOutputStream where you pass in a Logger
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270408 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ab7d2dee49
Update so that LogOutputStream takes a logger and boolean indicating what log level should be logged at.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270407 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c838d08144
Pass in streams to constructor rather than task + level. This allows it to be more easily configured for different tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270406 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
36091b14d3
Fix compile error that introduced when moved from Vector to ArrayList
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270405 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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