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:[EMAIL PROTECTED] > 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" <[EMAIL PROTECTED]> > To: "Ant" <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >