You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/08/05 23:06:41 UTC

DO NOT REPLY [Bug 11482] New: - Splash task in a non-gui enviroment

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11482>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11482

Splash task in a non-gui enviroment

           Summary: Splash task in a non-gui enviroment
           Product: Ant
           Version: 1.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: sandymac@ufl.edu


Below is a diff to org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java
that make it so if you run ant in an enviroment that doesn't have a GUI (eg:
when DISPLAY="" in a unix os) it doesn't thow the error:

java.lang.InternalError: Can't connect to X11 window server using '' as the
value of the DISPLAY variable.


--- SplashTask.orig.java        Mon Aug  5 16:57:05 2002
+++ SplashTask.java     Mon Aug  5 16:57:26 2002
@@ -218,6 +218,9 @@
                 success = true;
             } catch (Exception e) {
                 throw new BuildException(e);
+            } catch (InternalError e) {
+                log(e.toString(),  Project.MSG_DEBUG);
+                return;
             } finally {
                 try {
                     din.close();

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>