You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexandre Priou <ap...@gmail.com> on 2011/02/22 21:18:09 UTC
i have on question
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
--
Alexandre Priou
Analyste Concepteur Web chez HR TEAM
Détaché aux éditions la rivière
64 rue de l'Essonne
91000 Évry
Re: i have on question
Posted by Alexandre Priou <ap...@gmail.com>.
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 <gi...@maksimo.de> wrote:
> -------- Original Message --------
> Subject: i have on question
> From: Alexandre Priou <ap...@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
>
>
Re: i have on question
Posted by Gilbert Rebhan <gi...@maksimo.de>.
-------- Original Message --------
Subject: i have on question
From: Alexandre Priou <ap...@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
Re: i have on question
Posted by Joe Attardi <jo...@attardi.net>.
Does it have to be a dialog box, or do you just need to prompt for input?
The <input> task can display a text prompt and ask for input. See
http://ant.apache.org/manual/Tasks/input.html for more information.
Hope this helps.
On Tue, Feb 22, 2011 at 3:18 PM, Alexandre Priou <ap...@gmail.com> wrote:
> 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
> --
> Alexandre Priou
> Analyste Concepteur Web chez HR TEAM
> Détaché aux éditions la rivière
> 64 rue de l'Essonne
> 91000 Évry
>
--
Joe Attardi
joe@attardi.net