Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 20763 invoked by uid 500); 9 Apr 2001 11:07:13 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 20750 invoked from network); 9 Apr 2001 11:07:12 -0000 Message-ID: <502326F46B08D41191C400508B6D70C1014B031D@nvision01.rubus.com> From: Les Hughes To: "'ant-dev@jakarta.apache.org'" Subject: RE: New task - PumpStreamHandler.java : codegenerator < stdin $pa ran > $stdout. HELP please Date: Mon, 9 Apr 2001 12:04:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi, The Perforce tasks do something similar with stdin and stdout. Have a look in P4Base for the stream handling code. Bye, Les > -----Original Message----- > From: Joel Cordonnier [mailto:jocordonn@yahoo.fr] > Sent: 09 April 2001 12:00 > To: ant-dev@jakarta.apache.org > Subject: New task - PumpStreamHandler.java : codegenerator < stdin > $paran > $stdout. HELP please > > > Hi! > > I need to write my own Ant task, to call a code native > generator. Actually, i use Ant1.3 on linux RH7.0 > > I need you advices: > > I have to redirect standard input to the created > subprocess when i write this new task, and i have > alseo to redirect standard output to a file, and error > to standard error: > > like codegenerator < stdin $paran > $stdout. > > I look a the cvs task for example, and I see that it > use the 'PumpStreamhandler' class that handle ALL the > redirections. It seems that there is no task that > redirect stdin, right ? > > > I just have to create a new thread to process the > input ? What about thread handling ? > > > Thanks > Joel > > > ___________________________________________________________ > Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, > Yahoo! Messenger : http://fr.messenger.yahoo.com >