Maybe <apply> would benefit from these changes too ;-) --DD

-----Original Message-----
From: Conor MacNeill [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 08, 2003 8:27 AM
To: Ant Developers List
Subject: New <exec> and <java> input capability


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to