ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: New <exec> and <java> input capability
Date Sat, 08 Feb 2003 16:37:59 GMT
Maybe <apply> would benefit from these changes too ;-) --DD

-----Original Message-----
From: Conor MacNeill []
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 

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message