--- Dana Rice <[EMAIL PROTECTED]> wrote:
> You can put your redirection etc. in a script and have ant call that.
> Worked for me.
Or, if it's a simple one-liner, you can <exec> "sh -c ..."
Diane
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 12:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: unix redirection - how do you specify input files?
>
>
> Also: Re: <java> 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 [EMAIL PROTECTED] 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
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/