ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject New <exec> and <java> input capability
Date Sat, 08 Feb 2003 14:26:51 GMT
I've recently added the capability to redirect input for the exec task. I 
then refactored this into a new class (Redirector) which I then applied to 
the Java task.

For <exec? this means the following new capabilities:

1. you can use an error attribute to redirect stderr independently
of stdout

2. you can use an errorProperty to store the stderr into a property

3. You can store to a file and to a property at the same time.

4. You can use logError="true" to send the error output to the Ant log
when redirecting just stdout.

5. You can take input from a file with the "input" attribute

6. You can task input from a string with "inputstring". This gives
access to Ant properties.

The application of this to <java> task means all these features are
also available to <java> in addition to <exec>'s existing outputProperty 
attribute.

The only limitation at the moment is that you cannot redirect input for a 
non-forked java task - I'm working on that.

If you have any issues with these changes, please let me know. I'll update 
the documenation soon.

Conor


Mime
View raw message