Report fails if there is no connection element in repository. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@428534 13f79535-47bb-0310-9956-ffa450edef68
82 lines
2.4 KiB
XML
82 lines
2.4 KiB
XML
<?xml version="1.0" encoding="$encoding" ?>
|
|
<!--
|
|
/*
|
|
* Copyright 2001-2006 The Apache Software Foundation.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
-->
|
|
|
|
<document>
|
|
|
|
<properties>
|
|
<title key="template.scm_usage.title"
|
|
bundle="plugin-resources.templates.templates" >
|
|
<message key="template.scm_usage.title"
|
|
bundle="plugin-resources.templates.templates" />
|
|
</title>
|
|
</properties>
|
|
|
|
<body>
|
|
|
|
#set ($repository = $project.repository)
|
|
#if (!$repository)
|
|
|
|
<section key="template.scm_usage.section1.title"
|
|
bundle="plugin-resources.templates.templates"
|
|
name="Repository">
|
|
<p>
|
|
<message key="template.scm_usage.section1.no_repository"
|
|
bundle="plugin-resources.templates.templates" />
|
|
</p>
|
|
</section>
|
|
|
|
#else
|
|
|
|
##
|
|
## Web access URL
|
|
##
|
|
#if ($repository.url && $repository.url != '')
|
|
#set ($url = $escape.getText($repository.url))
|
|
|
|
<section key="template.scm_usage.section2.title"
|
|
bundle="plugin-resources.templates.templates"
|
|
name="Web Access">
|
|
<p>
|
|
<message key="template.scm_usage.section2.description"
|
|
bundle="plugin-resources.templates.templates" />
|
|
</p>
|
|
<source><a href="$url">$url</a></source>
|
|
</section>
|
|
|
|
#end
|
|
|
|
##
|
|
## SCM-specific connections
|
|
##
|
|
#set ($connscm = 'noscm')
|
|
#if ($repository.connection && $repository.connection != '')
|
|
#set ($connscm = $scmUtil.getScmType($repository.connection))
|
|
#end
|
|
#if ($repository.developerConnection && $repository.developerConnection != '')
|
|
#set ($connscm = $scmUtil.getScmType($repository.developerConnection))
|
|
#end
|
|
#parse("scm/${connscm}.xml")
|
|
|
|
#end
|
|
|
|
</body>
|
|
|
|
</document>
|
|
|