From: Olivier Lamy Date: Sun, 11 Sep 2011 22:26:12 +0000 (+0000) Subject: fix pom snippet generation X-Git-Tag: archiva-1.4-M1~329 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b9bfbbb74095376950669fef079658bc12317f3;p=archiva.git fix pom snippet generation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1169552 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java index c031b091a..b239d4989 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java @@ -26,6 +26,7 @@ import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.TagSupport; +import org.apache.archiva.admin.repository.managed.ManagedRepository; import org.apache.commons.lang.StringEscapeUtils; import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.archiva.web.util.ContextUtils; @@ -70,9 +71,9 @@ public class CopyPasteSnippetTag buf.append( "Error generating snippet." ); log.error( "Unable to generate snippet for null object." ); } - else if ( object instanceof ManagedRepositoryConfiguration ) + else if ( object instanceof ManagedRepository ) { - ManagedRepositoryConfiguration repo = (ManagedRepositoryConfiguration) object; + ManagedRepository repo = (ManagedRepository) object; if ( TOGGLE.equals( wrapper ) ) { @@ -122,7 +123,7 @@ public class CopyPasteSnippetTag this.wrapper = wrapper; } - private void createSnippet( StringBuilder snippet, ManagedRepositoryConfiguration repo, PageContext pageContext ) + private void createSnippet( StringBuilder snippet, ManagedRepository repo, PageContext pageContext ) { snippet.append( "\n" ); snippet.append( " ...\n" );