Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Labels:None
-
Environment:osx 10.4.5, java 1.4.2_09
-
Testcase included:yes
Description
Here's my setup:
<scm>
<connection>scm:svn:http://apollo.ucalgary.ca:8800/pmgt/trunk</connection>
<developerConnection>scm:svn:http://apollo.ucalgary.ca:8800/pmgt/trunk</developerConnection>
<url>http://apollo.ucalgary.ca/websvncommons/listing.php?repname=pmgt&rev=0&sc=0&path=/trunk</url>
</scm>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.0-beta-2-SNAPSHOT</version>
<reportSets>
<reportSet>
<id>changes</id>
<configuration>
<displayFileDetailUrl>http://apollo.ucalgary.ca/websvncommons/filedetails.php?repname=pmgt&rev=0&sc=0&path=</displayFileDetailUrl>
<type>range</type>
<range>90</range>
</configuration>
<reports>
<report>changelog</report>
<report>file-activity</report>
<report>dev-activity</report>
</reports>
</reportSet>
</reportSets>
</plugin>
With that displayFileDetailUrl, I get links like this in the resultant changelog in my site:
but it should be like this:
Issue Links
- relates to
-
MCHANGELOG-5
Generated links to files in scm are based on the scm url tag in the pom (but should they be??)
-
This patch does 4 things:
1. Makes a few vars protected rather than private so that we can assign initial values to them, so that we can unit test. Is there another way to replicate the maven environment?
2. Contains the patch from
MCHANGELOG-15, which fixes the index out of bounds error.3. Adds specific treatment for svn urls in generateLinks()
4. Fixes another bug where only the first changeset has a proper link. This is caused by calling initReportUrls() for every changeset (which then makes rpt_OneRepoParam into an empty string on the second pass), and is fixed by doing it once per table.
MCHANGELOG-15, which fixes the index out of bounds error. 3. Adds specific treatment for svn urls in generateLinks() 4. Fixes another bug where only the first changeset has a proper link. This is caused by calling initReportUrls() for every changeset (which then makes rpt_OneRepoParam into an empty string on the second pass), and is fixed by doing it once per table.