Peter Donald
6187610641
Move entry to being a top level class and clean up naming conventions
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270577 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
af7a38e95e
Don't place project in bean list - instead place context in there
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270576 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0ed3627cf3
Use Execute2 abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270575 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
68c0830423
Move runCommand into this class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270574 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4abaa3ec23
Use Ant2 propertys that are objects rather than strings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270573 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0abcddef6c
*** empty log message ***
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270572 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
dad10655ad
Remove unused import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270571 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
69e14f256e
Use Execute2 abstracton
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270570 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
46302b08af
No need to use project anymore
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270569 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0b2fdb2709
Get property from context rather than project
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270568 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
15debed637
Use context to resolve file rahter than proijectr
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270567 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a99f864176
No need to apply policy in task - can do that in context
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270566 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a25518889b
No need for setter to throw execption
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270565 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2e186a3000
Remove access to project as not needed
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270564 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ceaf662ffb
Refactor and clean code
Also start using Execute2 abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270563 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e0f26fe260
Cleanup code a little
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270562 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
df0a7e7358
Use Execute2 abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270561 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9739843b08
Use adaptors logger rather than getting tasks logger via hackGetLogger
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270560 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6a568e4e32
Use inherited getProperty rather than getProject().getProeprty()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270559 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1158015760
Remove unused stream handlers/pump abstractions. These are now replaced by ExecOutputHandler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270558 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
689c802c3a
Add in a copy of Execute that is separate so that it can be evolved at a faster rate.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270557 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
14da38e484
Remove unused method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270556 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
47dfd87c88
No longer need hackGetLogger as all those ugly hacks have been removed
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270549 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
b60ae9855b
Make sure the check_for_optional_packages is processed before compoile
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270547 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fe1594401f
Make sure new nativelib typelibrary is created. Also make it not cause for failure if you can't delete the dist directory
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270533 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a6c4de4a6c
Remove load-environment/load-properties functionality as that has been reimplemented
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270532 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fc800c719f
zap whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270531 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7986eeaf40
Currently myrmidon uses myrmidon.home rather than ant.home
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270530 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ddf1b613cf
Remove unused class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270529 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b6655479c2
Add some tests to check that loadproperties and load-environment work as expected
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270528 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0b2a242fd1
Add in declaration of load-properties task for descriptor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270527 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
62797d9ef1
Add a descriptor for new nativelib type library
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270526 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