ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tolley Shorn" <>
Subject RE: java task and command line interaction
Date Thu, 30 Oct 2003 07:20:38 GMT
So there's definitely no way to tranfer the standard input stream across to the forked process?
(I guess it'd be kinda painful to do in a cross-platform manner, eh?)

I've had this issue a couple of times now.

Ctrl-Break on windows goes to the Ant process, so I get a stack dump from the Ant JVM instead
of the JVM my code is running in... real helpful.  And in some other instances it would've
been nice to just be able to read some input from the user.  Don't get me wrong though, I'd
rather work round the issues than bother with writing my own batch files to kick off these
processes :)

I get around these issues with proper debugging tools, using the JPDA and all that.
But it'd be nice if I could just get some input to the running JVM every so often.


> -----Original Message-----
> From: Conor MacNeill []
> Sent: Thursday, 30 October 2003 5:06 PM
> To: Ant Users List
> Subject: Re: java task and command line interaction
> On Thu, 30 Oct 2003 05:14 pm, wrote:
> > Hi all,
> >       how do I allow a java task to have interaction via 
> the command prompt
> > while it is being called from ant?
> >
> > (I know ant can prompt for input but thats a once off, I 
> need interaction
> > from the command prompt back to the currently executing class.)
> >
> If you do not fork the <java> task and you run under Ant 1.6 
> this should be 
> possible. If you fork the <java> task, it is not possible.
> Conor
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  

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

View raw message