ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Calling java and capturing output to a property
Date Mon, 22 Nov 2004 12:35:33 GMT
I would try
   <java classname="MyFileChooserApp" 
         outputproperty="choose.result" 
   />
   <echo>Output of Java app is: ${choose.result}</echo>


Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Rhino [mailto:rhino1@sympatico.ca]
> Gesendet am: Samstag, 20. November 2004 14:21
> An: Ant Users List
> Betreff: Re: Calling java and capturing output to a property
> 
> 
> ----- Original Message ----- 
> From: "Robert Mark Bram" <relaxedrob@optusnet.com.au>
> To: "Ant" <user@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
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message