ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ehlers, Kolja" <>
Subject AW: Confirmation popup
Date Thu, 24 Jul 2008 13:07:03 GMT
exactly I just call system "ant -f yourbuild.xml" and parse the output to a
html file. I would love to use AntForms but thats the reason I think it wont
work. I am not sure how the window is produced, but since there is no X
installed on this server both antforms and the beanshell code is not

No X11 DISPLAY variable was set, but this program performed an operation
which requires it.


-----Ursprungliche Nachricht-----
Von: Rebhan, Gilbert []
Gesendet: Donnerstag, 24. Juli 2008 14:55
An: Ant Users List
Betreff: RE: Confirmation popup

-----Original Message-----
From: Ehlers, Kolja []
Sent: Thursday, July 24, 2008 2:30 PM
To: Ant Users List
Subject: AW: Confirmation popup

Thanks Gilbert for your responds, thought I am wondering if this will
Like I said the ant scripts output is redicted to a html web page. On
server there is not X Window installed at all. I guess this will not
then right?

Any chance I can call a javascript confirm from ant?

how do you call ant  from perl ?
means do you start a new shell and ant -f yourbuild.xml or do
you make direct use of the ant api in your perl script  ?

Why do you think the use of AntForms taskdef won't work ?

If you don't want to use AntForms, another
possibility is using <script> and 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.

 // or use fireBuildFinished ...
// but that didn't work
//  project.fireBuildFinished(BuildException e);

  stop = project.createTask("fail");
  stop.setMessage("No selected ... ");

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message