ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Priou <apr...@gmail.com>
Subject Re: i have on question
Date Tue, 22 Feb 2011 20:43:23 GMT
nice, perfect i try that

thanks
-- 
Alexandre Priou
Analyste Concepteur Web chez HR TEAM
Détaché aux éditions la rivière
64 rue de l'Essonne
91000 Évry

On Tue, Feb 22, 2011 at 9:37 PM, Gilbert Rebhan <gilreb@maksimo.de> wrote:

> -------- Original Message  --------
> Subject: i have on question
> From: Alexandre Priou <apriou@gmail.com>
> To: user@ant.apache.org
> Date: Tue Feb 22 2011 21:18:09 GMT+0100 (CET)
>
> > hi
> >
> > it's possible to open a dialog box in the ant task ?
> > i need an answer for continued to run one task, it's possible ?
> >
> > thanks for your answer
>
> for simple purposes it may be sufficient to use the builtin <input> task
> or something like :
>  <script language="beanshell">
>   import javax.swing.*;
>   int decision = JOptionPane.showConfirmDialog(null,
>   "Please decide ...", "choose one", JOptionPane.YES_NO_OPTION);
>    if (decision == JOptionPane.YES_OPTION) {
>       // User clicked YES.
>    } else if (decision == JOptionPane.NO_OPTION) {
>     // User clicked NO.
>
>   // using fireBuildFinished didn't work
>  //  project.fireBuildFinished(BuildException e);
>
>    stop = project.createTask("fail");
>    stop.setMessage("No selected ... ");
>    stop.execute();
>    }
>  </script>
>
> in your script, before writing a new task.
>
> also you may use - or get inspired by - Ant Forms :
> http://antforms.sourceforge.net/
>
> and finally you may implement your own input handler :
> http://ant.apache.org/manual/inputhandler.html
>
>
> Regards, Gilbert
>
>
> ---------------------------------------------------------------------
> 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