ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11482] New: - Splash task in a non-gui enviroment
Date Mon, 05 Aug 2002 21:06:41 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message