Peter Donald
4123acf5ed
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@270428 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c2c546cdb3
Path no longer takes a project object in the constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270427 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c7017ddd8e
Update to reflect new LogOutputStream interface
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270426 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
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
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
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
Peter Donald
f9835b0ae7
No Need to throw a task exception here.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270353 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c1f1c3932c
add a method to query whether process times out or terminated of natural causes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270352 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f6de4cf924
Add in class that will replace ExecuteWatchDog, ExeuteStreamHandler and related classes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270351 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
afd87bafa3
Use concreate class LogStreamHandler rather than interface ExeuteStreamHandler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270350 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8447568c3d
MOve ProcessDestroyer into myrmidon hierarchy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270349 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cdd8484f39
Made ExecMetaData take a Properties object for environment data rather than native format.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270341 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ace547bc97
Made timeout time a long not an int.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270340 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c5b4c4e5e8
Move WatchDog class to myrmidon framework section.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270337 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4a9c6d79bc
Convert from using TaskException to ExecException
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270335 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4c36f7cb5a
Add an exception that indicates an error running a native process.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270334 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5e1a060756
Add in an interface via which requests to execute a command can be made.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270330 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9665fcfad3
Made EnvironmentData.Variable into a top-level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270329 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d5ed2401cf
Extract then native Environment manipulation code from Execute class and place it into new class. Refactor it to be simpler to extend and use
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270318 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ea65444fd3
Environment -> EnvironmentData
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270309 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
728071cfac
access project instance via accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270308 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5657805883
Remove uneeded import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270307 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cff2df199d
Vector -> ArrayList
access project instance via accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270306 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
92248f472b
Restyled.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270305 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f1d9b9f2e7
Due to enhancement of ScriptCommandLauncher PerlCommandLauncher is no longer needed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270304 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c94f064263
Made it possible for the script to consist of multiple parts so that you could possible do something like
perl bin/antRun.pl
python bin/antRun.py
etc
This resulted in removal of file resolving and pushing that back into the Execute task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270303 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
067939388b
Removed uneccesary imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270302 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
39db94a5e8
Move getAntHomeDirectory to the Execute class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270301 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6248105498
Removed unecessary import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270300 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3d04769940
Restyled.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270299 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8085ebe912
Converted the old remaining useful script based CommandLaunchers to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270282 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
694b6a391c
Converted the old WinNTCommandLauncher to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270281 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6b669be21d
Converted the old MacCommandLauncher to new setup. There is no need to extend ProxyCommandLauncher as it did not offer any benefit (because the 2 arg version of Runtime.exec was always called)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270280 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d0225d0b52
Added a utility class to hold util functions for implementing Launchers.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270279 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5fe0c90529
Add a basic implement of CommandLauncher.
This merges the Ant1.x VM launchers into one class. If working on older JVMs (pre jdk1.3) and try to execute outside the current directory then an exception will be thrown.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270278 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6575f65c84
Add an interface for all CommandLaunchers to implement
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270277 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
eff8770f40
Start to implement the native execution framework.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270265 13f79535-47bb-0310-9956-ffa450edef68
24 years ago