From 7359332b422c8ad4bbc8d3255531e582375ce3a9 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 25 Oct 2011 21:16:58 +0000 Subject: [PATCH] [MRM-1538] Managed Repositories > Show Snippet ought to include a pluginRepositories section. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1188916 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/tags/CopyPasteSnippetTag.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 6f2467359..ba2afa9dc 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 @@ -171,6 +171,30 @@ public class CopyPasteSnippetTag snippet.append( " \n" ); snippet.append( " \n" ); snippet.append( " \n" ); + snippet.append( " \n" ); + snippet.append( " \n" ); + snippet.append( " " ).append( repo.getId() ).append( "\n" ); + snippet.append( " " ).append( repo.getName() ).append( "\n" ); + + snippet.append( " " ); + snippet.append( ContextUtils.getBaseURL( pageContext, "repository" ) ); + snippet.append( "/" ).append( repo.getId() ).append( "/" ); + + snippet.append( "\n" ); + + if ( !"default".equals( repo.getLayout() ) ) + { + snippet.append( " " ).append( repo.getLayout() ).append( "\n" ); + } + + snippet.append( " \n" ); + snippet.append( " " ).append( Boolean.valueOf( repo.isReleases() ) ).append( "\n" ); + snippet.append( " \n" ); + snippet.append( " \n" ); + snippet.append( " " ).append( Boolean.valueOf( repo.isSnapshots() ) ).append( "\n" ); + snippet.append( " \n" ); + snippet.append( " \n" ); + snippet.append( " \n" ); snippet.append( " ...\n" ); snippet.append( "\n" );