From c3254df34bc9309d09c32dcb4f935a21ed4156f1 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 29 Oct 2012 22:20:04 +0000 Subject: [PATCH] add favico when browsing repositories git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403559 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/archiva/webdav/ArchivaDavSession.java | 5 +++-- .../java/org/apache/archiva/webdav/util/IndexWriter.java | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavSession.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavSession.java index be23e9501..f0521e78c 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavSession.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavSession.java @@ -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 lockTokens = new HashSet(); + private final Set lockTokens = new HashSet(); 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 ) diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java index f4e21ae49..e99461543 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java @@ -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( "" ); + writer.println( "" ); writer.println( "" ); writer.println( "" ); writer.println( "

Collection: /" + logicalResource + "

" ); -- 2.39.5