]> source.dussan.org Git - archiva.git/commitdiff
add favico when browsing repositories
authorOlivier Lamy <olamy@apache.org>
Mon, 29 Oct 2012 22:20:04 +0000 (22:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 29 Oct 2012 22:20:04 +0000 (22:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403559 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavSession.java
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java

index be23e95010e4e0971d1f7c5eca1403a2c3e620e5..f0521e78cee576c233d435ce67c73171f1e65ff2 100644 (file)
@@ -22,11 +22,12 @@ package org.apache.archiva.webdav;
 import org.apache.jackrabbit.webdav.DavSession;
 
 import java.util.HashSet;
+import java.util.Set;
 
 public class ArchivaDavSession
     implements DavSession
 {
-    private final HashSet<String> lockTokens = new HashSet<String>();
+    private final Set<String> lockTokens = new HashSet<String>();
 
     public void addLockToken( String token )
     {
@@ -35,7 +36,7 @@ public class ArchivaDavSession
 
     public String[] getLockTokens()
     {
-        return (String[]) lockTokens.toArray( new String[lockTokens.size()] );
+        return lockTokens.toArray( new String[lockTokens.size()] );
     }
 
     public void removeLockToken( String token )
index f4e21ae49d25b58fd11ba30dc8cb38165211b24e..e994615432b054bdca6c278ae84dc02f456aed79 100644 (file)
@@ -103,6 +103,7 @@ public class IndexWriter
         writer.println( "th td:nth-child(2){width:150px;}" );
         writer.println( "th td:nth-child(3){width:150px;}" );
         writer.println( "</style>" );
+        writer.println( "<link rel=\"shortcut icon\" href=\"../../favicon.ico\"/>" );
         writer.println( "</head>" );
         writer.println( "<body>" );
         writer.println( "<h3>Collection: /" + logicalResource + "</h3>" );