Bug 56711

Summary: Allow Redirects For Spawned Processes (exec and java tasks)
Product: Ant Reporter: Charles Barber <cwbarber>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Charles Barber 2014-07-11 05:21:37 UTC
As stated in the manual, the exec and java tasks do not allow input and output redirection when spawn="true". This is understandable prior to JDK 1.7, but the new redirectXXX methods in java.lang.ProcessBuilder look like they could easily support this feature, to / from Files, or inheriting the standard input / output / error streams.

See
http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.Redirect.html