You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Mark Bram <re...@optusnet.com.au> on 2004/11/20 11:38:54 UTC
Calling java and capturing output to a property
Hi All!
I have a small app that brings up a Java FileChooser, takes the user's
selection and writes the file name to standard output. Is there a way to
call that app from ant and capture the output into a property?
Thanks for any advice!
Rob
:)
--
Robert Mark Bram
http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student
School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Calling java and capturing output to a property
Posted by Rhino <rh...@sympatico.ca>.
----- Original Message -----
From: "Robert Mark Bram" <re...@optusnet.com.au>
To: "Ant" <us...@ant.apache.org>
Sent: Saturday, November 20, 2004 5:38 AM
Subject: Calling java and capturing output to a property
> Hi All!
>
> I have a small app that brings up a Java FileChooser, takes the user's
> selection and writes the file name to standard output. Is there a way to
> call that app from ant and capture the output into a property?
>
> Thanks for any advice!
>
Ant is intended to run in batch, not to interact with the user. The only
exception I know is the <input> task. How do you plan to let the user make
the selection from the FileChooser?
As cool as Ant is, I think you're going beyond the bounds of what Ant is
intended to do.
Rhino
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org