You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/04/23 17:50:15 UTC

svn commit: r650917 - /maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java

Author: bentmann
Date: Wed Apr 23 08:50:11 2008
New Revision: 650917

URL: http://svn.apache.org/viewvc?rev=650917&view=rev
Log:
[MCHANGES-108] Allow to configure changes-report mojo from properties

Modified:
    maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java

Modified: maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java?rev=650917&r1=650916&r2=650917&view=diff
==============================================================================
--- maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java (original)
+++ maven/plugins/trunk/maven-changes-plugin/src/main/java/org/apache/maven/plugin/changes/ChangesMojo.java Wed Apr 23 08:50:11 2008
@@ -19,8 +19,6 @@
  * under the License.
  */
 
-import org.apache.maven.doxia.siterenderer.Renderer;
-import org.apache.maven.project.MavenProject;
 import org.apache.maven.reporting.MavenReportException;
 import org.codehaus.plexus.util.FileUtils;
 
@@ -41,30 +39,29 @@
     extends AbstractChangesReport
 {
     /**
-     * The path of the changes.xml file that will be converted into an html report.
+     * The path of the <code>changes.xml</code> file that will be converted into an HTML report.
      *
-     * @parameter expression="${basedir}/src/changes/changes.xml"
-     * @required
+     * @parameter expression="${changes.xmlPath}" default-value="src/changes/changes.xml"
      */
     private File xmlPath;
 
     /**
      * Template string that is used to discover the URL to use to display an issue report.
-     * There are 2 template tokens you can use. %URL%: this is computed by getting the
-     * &lt;issueManagement&gt;/&lt;url&gt; value from the POM, and removing the last '/'
-     * and everything that comes after it. %ISSUE% : this is the issue number.
+     * There are 2 template tokens you can use. <code>%URL%</code>: this is computed by getting the
+     * <code>&lt;issueManagement&gt;/&lt;url&gt;</code> value from the POM, and removing the last '/'
+     * and everything that comes after it. <code>%ISSUE%</code>: this is the issue number.
      * <p>
      * <strong>Note:</strong> In versions of this plugin prior to 2.0-beta-2 this parameter was called
      * <code>link_template</code>.
      * </p>
      *
-     * @parameter expression="%URL%/ViewIssue.jspa?key=%ISSUE%"
+     * @parameter expression="${changes.issueLinkTemplate}" default-value="%URL%/ViewIssue.jspa?key=%ISSUE%"
      * @since 2.0-beta-2
      */
     private String issueLinkTemplate;
 
     /**
-     * @parameter expression="${project.issueManagement.url}"
+     * @parameter default-value="${project.issueManagement.url}"
      * @readonly
      */
     private String url;