Author: ltheussl Date: Tue Jan 17 11:00:24 2006 New Revision: 369865 URL: http://svn.apache.org/viewcvs?rev=369865&view=rev Log: PR: MPCHANGELOG-74 Changelog plugin creates wrong links for Subversion repositories. New property maven.changelog.svn.baseurl.
Modified: maven/maven-1/plugins/trunk/changelog/plugin.properties maven/maven-1/plugins/trunk/changelog/src/plugin-resources/changelog.jsl maven/maven-1/plugins/trunk/changelog/xdocs/changes.xml maven/maven-1/plugins/trunk/changelog/xdocs/properties.xml Modified: maven/maven-1/plugins/trunk/changelog/plugin.properties URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changelog/plugin.properties?rev=369865&r1=369864&r2=369865&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/changelog/plugin.properties (original) +++ maven/maven-1/plugins/trunk/changelog/plugin.properties Tue Jan 17 11:00:24 2006 @@ -21,6 +21,7 @@ # ------------------------------------------------------------------- maven.changelog.basedir=${basedir} +maven.changelog.svn.baseurl=${pom.repository.url} maven.changelog.type = range maven.changelog.range = 30 Modified: maven/maven-1/plugins/trunk/changelog/src/plugin-resources/changelog.jsl URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changelog/src/plugin-resources/changelog.jsl?rev=369865&r1=369864&r2=369865&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/changelog/src/plugin-resources/changelog.jsl (original) +++ maven/maven-1/plugins/trunk/changelog/src/plugin-resources/changelog.jsl Tue Jan 17 11:00:24 2006 @@ -109,6 +109,10 @@ </j:choose> <j:choose> + <j:when test="${pom.repository.connection.startsWith('scm:svn')}"> + <a href="${maven.changelog.svn.baseurl}${name}">${name}</a> + <a href="${maven.changelog.svn.baseurl}${name}?rev=${revision}&content-type=text/vnd.viewcvs-markup">v${revision}</a> + </j:when> <j:when test="${pom.repository.connection.startsWith('scm:perforce')}"> <a href="${repository}${name}?ac=22">${name}</a> <a href="${repository}${name}?ac=64&rev1=${revision}">v${revision}</a> Modified: maven/maven-1/plugins/trunk/changelog/xdocs/changes.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changelog/xdocs/changes.xml?rev=369865&r1=369864&r2=369865&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/changelog/xdocs/changes.xml (original) +++ maven/maven-1/plugins/trunk/changelog/xdocs/changes.xml Tue Jan 17 11:00:24 2006 @@ -25,6 +25,7 @@ </properties> <body> <release version="1.9-SNAPSHOT" date="in SVN"> + <action dev="ltheussl" type="fix" issue="MPCHANGELOG-74">Changelog plugin creates wrong links for Subversion repositories. New property <code>maven.changelog.svn.baseurl</code>.</action> <action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : <ul> <li>ant v1.5.3-1 -> v1.6.5</li> Modified: maven/maven-1/plugins/trunk/changelog/xdocs/properties.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/changelog/xdocs/properties.xml?rev=369865&r1=369864&r2=369865&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/changelog/xdocs/properties.xml (original) +++ maven/maven-1/plugins/trunk/changelog/xdocs/properties.xml Tue Jan 17 11:00:24 2006 @@ -135,6 +135,17 @@ The date format in input stream. It's only used by Starteam changelog and/or when specifying an absolute date. </td> </tr> + <tr> + <td>maven.changelog.svn.baseurl</td> + <td>Yes</td> + <td> + The base address of the svn url. Use it for creating correct links + when the current project is a sub-project in the svn repository. + Only used if <code>repository.connection</code> + starts with <code>scm:svn</code>. + Defaults to <code>${pom.repository.url}</code>. + </td> + </tr> </table> </section> <section name="Other properties">