Peter Donald
cd86200647
Move implementation of toNativeEnvironment into this class rather than delegating
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270461 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cac267a813
Classes not used outside this package so we can make them package access
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270460 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e5e10d6b06
Remove the initialize and dispose stages in the lifecycle of a task as they no longer are needed given task execution occurs in a single pass.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270459 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
cd048de043
No need for task to implement Initializable/Disposable stages because tasks are imediatly executed and there is no concept of multiple passes ala Ant1.x
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270456 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6bf9dc91a5
Check for java 1.4
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270455 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
aff9d91f0c
Move JavaVersion class into framework package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270454 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7dc2430ad5
Move JavaVersion stuff outside the TaskContext.
JavaVersion is now a completely self-contained class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270453 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
093967db0e
Removed AntClassLoader and replaced it with URLClassLoader. Now new ClassLoaders do not include the ant runtime by default
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270450 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
68c5a1567e
Renamed the constants to have constant-y names
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270439 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
17df286f98
Move DTDLocation inner class to top level class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270429 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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