Peter Donald
c9046b7db8
Sort imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270689 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6f95776320
Process standard error should process standard error not standard output :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270688 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
80714ea328
Make sure that exec runs even if you don't specify an OS
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270687 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
38aba801e3
Some spring cleaning
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270686 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
465dd5dfe1
Add a converter for booleans
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270685 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
69b275e120
Migrate all the ant-independent code for
native execution
environment loading
os detection
into a new hierarchy aut.
AUT basically being completely independent of Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270681 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
35641d9794
Add an Exec task that is reeplacement for ant1.xs ExecTask
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270677 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0cd16649f2
Remove unused debug ClassLoader
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270676 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f2e2178170
Made the ExecManager support another method of execution that involves supplying an ExecOutputHandler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270555 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2b4f4a5945
Shutdown standard input of process - not sure if this is a wise move
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270554 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c4fd52dc5b
Shutdown IO if it is supplied
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270553 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1d72126924
Created a OutputStream that redirected to an appropriate handler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270552 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d3609fe2ba
Move var closer to where it is used
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270551 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ff7c11c744
Added the ExecOutputHandler abstraction so that tasks don't have to worry about more complicated stream parsing and can work with just notification of lines appearing.
Also added a default implementation that conforms to the most common pattern of making stdout info log messages and stderr warn log messages
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270550 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
27040cde16
Use new Execute2 abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270548 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
babc775431
Add a task to load properties from a property file - optionally with a specified prefix
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270525 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3bea6099f8
Add a task to load the native environment into some properties with a specified prefix
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270524 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
101185acab
Refactor now that resolveValue is part of TaskContext
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270523 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
65256f43dc
add in somee finals
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270522 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
146898d169
Mad all the command launchers use getEnvironmentSpec and thus made ExecUtil.toNativeEnvironment private as it is not used outside class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270521 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4ad84fc4cc
Moved getEnvironmentSpec to ExecUtil
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270520 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0a064d62aa
Reorded addition of proeprties to environment when exec call has an additive environment so specified values overide values in the native environment.
Also added basic javadocs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270519 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
65a74dfc9e
Made sure that setting of environment variables for the native exec calls occurs accoridng to epectations.
If no properties are specified then null is passed to underlying exec call.
if some properties are set and environment is additive then the native environment is added to environment object
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270518 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5b78d0ba6f
Make sure a property file with no properties in it does not cause any exceptions.
Removed an unused method.
Made the Properties object returned from getNativeEnvironment() contain all environment properties rather than having the environment properties as default properties for property object. This allows much easier direct access to prpoerty values.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270517 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
399c54d5f7
No need to implement resolveValue as TaskContext now supports that method directly.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270516 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
425e6f46c6
Update implementation of TaskContext to support the new resolveValue method in TaskContext
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270515 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f0e110d26c
Make sure new resolveValue method in TaskContext is exposed via inheritance
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270514 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
07f15736a0
Add a new method "resolveValue" to TaskContext that resolves values according to ant rules and using that particular context.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270513 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
27eea93c8c
Clened up task a little.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270505 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2a6da440b8
Remove special handling of references as the container should take care of that.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270504 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ce6c8d711c
Started to migrate FileSet away from using Project and for implementing references itself (rather than letting container manage references)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270499 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
eff7370291
Cleaup imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270492 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
010a31e844
Refactor the Configurer so that it is much much faster and caches the reflection information. Make it much easier to support pluggable configurors in the future and alternative configuration mechanisms.
Submitted by: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270491 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
bc9dc4239a
Replace all different occurences of grabbing line separator with StringUtil.LINE_SEPARATOR
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270475 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1cf954d68b
Refactored to work well with new AbstractProjectListener
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270468 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f6c369f28f
Cleaned up documentation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270467 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7cb0319029
Refactor AbstractProjectListener so that it retains state regarding current task and current target
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270466 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fd20f40968
Use simpler isFamily check for netware
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270465 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e84361f936
Moved implementation of ExecManager into new package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270464 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fccb323ba5
Remove some unused cruft
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270463 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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