archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1169552 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java
Date Sun, 11 Sep 2011 22:26:13 GMT
Author: olamy
Date: Sun Sep 11 22:26:12 2011
New Revision: 1169552

URL: http://svn.apache.org/viewvc?rev=1169552&view=rev
Log:
 fix pom snippet generation

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java?rev=1169552&r1=1169551&r2=1169552&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/tags/CopyPasteSnippetTag.java
Sun Sep 11 22:26:12 2011
@@ -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( "<project>\n" );
         snippet.append( "  ...\n" );



Mime
View raw message