You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/07/28 11:45:25 UTC
svn commit: r680298 -
/incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java
Author: fmeschbe
Date: Mon Jul 28 02:45:25 2008
New Revision: 680298
URL: http://svn.apache.org/viewvc?rev=680298&view=rev
Log:
Code formatting
Modified:
incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java
Modified: incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java?rev=680298&r1=680297&r2=680298&view=diff
==============================================================================
--- incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java (original)
+++ incubator/sling/trunk/samples/fsresource/src/main/java/org/apache/sling/fsprovider/FsFolderServlet.java Mon Jul 28 02:45:25 2008
@@ -79,7 +79,8 @@
pw.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\"> <html>");
- pw.printf("<head><title>Index of %s</title></head><body>%n", res.getPath());
+ pw.printf("<head><title>Index of %s</title></head><body>%n",
+ res.getPath());
pw.printf("<h1>Index of %s</h1>%n", res.getPath());
pw.println("<pre>");
@@ -94,7 +95,7 @@
// render the children
renderChildren(pw, file);
-
+
pw.println("</pre>");
pw.println("</body></html>");
}
@@ -140,7 +141,7 @@
}
}
}
-
+
// order files by type (folder before files) and name (case insensitive)
private static class FileNameComparator implements Comparator<File> {