From user-return-64759-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri May 09 17:57:31 2008 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51433 invoked from network); 9 May 2008 17:57:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2008 17:57:30 -0000 Received: (qmail 1667 invoked by uid 500); 9 May 2008 17:57:29 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 1632 invoked by uid 500); 9 May 2008 17:57:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 1621 invoked by uid 99); 9 May 2008 17:57:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2008 10:57:29 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2008 17:56:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JuWpx-0007Br-Da for user@ant.apache.org; Fri, 09 May 2008 10:56:53 -0700 Message-ID: <17153242.post@talk.nabble.com> Date: Fri, 9 May 2008 10:56:53 -0700 (PDT) From: toadFrog To: user@ant.apache.org Subject: Re: How to use stdin/stdout with exec In-Reply-To: <3643592.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kevin.schnake@comcast.net References: <3643592.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I read through all the responses to your question. I saw nothing that addressed this. Your question addresses an issue with is the same problem as running a KSH interactive script from the ant exec command. Specifically, ant does not block for user input when a script executes a read command ,at least, using the following configuration: ant build.xml snippet: ksh: build-promote.sh snippet: echo echo "Select kit number: " typeset -i akit read aKit echo "Is this kit number ok? $aKit" Upon execution of the read command, ant must stop and allow the user to enter a response. Instead what is happening is execution continues with the next line in the shell pgm. I can't enter a response to any of the reads in the pgm. Seems this is just operator error on our part. But, I've messed around with this too long and tried several different approaches. Were you able to get this working? thx in advance. kev. gboysko wrote: > > I am using Ant to automate the creation of some Java classes and compile > them. I also want to be able to execute one of these generated Java > classes (which has a builtin command processor). The commands are entered > by the user (interactively) and the output is sent back to the console > (via System.out). > > I simply want to use either the JAVA or EXEC task to invoke the class, but > I can't get the stdin and stdout to be routed to the class. I can see lots > of ways to wire up the input/output to files, but no way to have them > wired back to the Ant console. Am I missing something? Without specifying > anything, I don't see anything and can't enter anything. Is there a way I > can specify the console/terminal in Windows using the input and output > attributes? > > I am using Ant 1.6.5 on Windows. > -- View this message in context: http://www.nabble.com/How-to-use-stdin-stdout-with-exec-tp3643592p17153242.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org