Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 86467 invoked by uid 500); 20 Apr 2001 15:23:43 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 86174 invoked from network); 20 Apr 2001 15:23:38 -0000 Message-ID: <5BEBB69C4285D411934B00508B5C45F2910BA5@SCL4MLBX09> From: Dana Rice To: "'ant-user@jakarta.apache.org'" Subject: RE: unix redirection - how do you specify input files? Date: Fri, 20 Apr 2001 08:23:35 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.52) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N You can put your redirection etc. in a script and have ant call that. Worked for me. -----Original Message----- From: Shane_Curcuru@lotus.com [mailto:Shane_Curcuru@lotus.com] Sent: Thursday, April 19, 2001 12:21 PM To: ant-user@jakarta.apache.org Subject: Re: unix redirection - how do you specify input files? Also: Re: task & files on standard input So, basically, there's no way in an Ant build file to force a core task that takes a command line argument to read (something) from standard input, is there? I'm looking for simple, and have no wish to write my own task for this; if it's not part of the core tasks like java/javac/exec, then I'll just pound the tool that uses stdin into compilance rather than mucking with Ant any more. This question comes up for me when trying to port this line from a makefile into xml-xalan/java/build.xml: java -cp /blah/java_cup.jar java_cup.Main -parser XPathParser < /blah/xpath.cup ---- you dcorbin@machturtle.com wrote ---- > A fine solution for sed, but what about other tools that ONLY deal with > stdin (stupid though they may be). Indeed! Unfortunately in life we sometimes inherit other people's toys that only accept stdin. (Use it by default all you like when building tools; just provide me an option like '-stdin argname' to replace it with, huh?) - Shane