cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r239572 - in /cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging: Debugger.java RemoteDebuggingSitemapExecutor.java
Date Wed, 24 Aug 2005 08:37:47 GMT
Author: cziegeler
Date: Wed Aug 24 01:37:42 2005
New Revision: 239572

URL: http://svn.apache.org/viewcvs?rev=239572&view=rev
Log:
Add sitemap element

Modified:
    cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/Debugger.java
    cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/RemoteDebuggingSitemapExecutor.java

Modified: cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/Debugger.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/Debugger.java?rev=239572&r1=239571&r2=239572&view=diff
==============================================================================
--- cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/Debugger.java (original)
+++ cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/Debugger.java Wed
Aug 24 01:37:42 2005
@@ -233,13 +233,19 @@
             this.finished = true;
             try {
                 this.writer.close();
-            } catch (Exception ignore) {}
+            } catch (Exception ignore) {
+                // ignore the exception
+            }
             try {
                 this.reader.close();
-            } catch (Exception ignore) {}
+            } catch (Exception ignore) {
+                // ignore the exception
+            }
             try {
                 this.socket.close();
-            } catch (Exception ignore) {}
+            } catch (Exception ignore) {
+                // ignore the exception
+            }
             this.socket = null;
             this.reader = null;
             this.writer = null;
@@ -374,6 +380,7 @@
                 try {
                     java.lang.Thread.sleep(1000);
                 } catch (InterruptedException e) {
+                    // ignore the exception 
                 }
             }
             return reader.ready();

Modified: cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/RemoteDebuggingSitemapExecutor.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/RemoteDebuggingSitemapExecutor.java?rev=239572&r1=239571&r2=239572&view=diff
==============================================================================
--- cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/RemoteDebuggingSitemapExecutor.java
(original)
+++ cocoon/blocks/profiler/trunk/java/org/apache/cocoon/profiler/debugging/RemoteDebuggingSitemapExecutor.java
Wed Aug 24 01:37:42 2005
@@ -232,9 +232,6 @@
                         debugger = null;
                     }
                 }
-                if (debugger != null) {
-                    
-                }
             }
         }
         if (debugger != null) {
@@ -259,7 +256,11 @@
                 }
                 inputStream.close();
                 baos.close();
-                debugger.send(new String(baos.toString("utf-8")));
+                StringBuffer buf = new StringBuffer("<sitemap src=\"");
+                buf.append(source).append("\">\n");
+                buf.append(new String(baos.toString("utf-8")));
+                buf.append("\n</sitemap>\n");
+                debugger.send(buffer.toString());
             } catch (Exception ignore ) {
                 // we ignore this for now
             } finally {



Mime
View raw message