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 2009/04/08 21:47:35 UTC
svn commit: r763365 -
/maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java
Author: bentmann
Date: Wed Apr 8 19:47:35 2009
New Revision: 763365
URL: http://svn.apache.org/viewvc?rev=763365&view=rev
Log:
o Polished annotations to use default-value instead of expression for POM value extraction
o Dropped @required for values with default values
Modified:
maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java
Modified: maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java?rev=763365&r1=763364&r2=763365&view=diff
==============================================================================
--- maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java (original)
+++ maven/plugins/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java Wed Apr 8 19:47:35 2009
@@ -109,7 +109,7 @@
* Path to the default MANIFEST file to use. It will be used if <code>useDefaultManifestFile</code> is set to
* <code>true</code>.
*
- * @parameter expression="${project.build.outputDirectory}/META-INF/MANIFEST.MF"
+ * @parameter default-value="${project.build.outputDirectory}/META-INF/MANIFEST.MF"
* @required
* @readonly
* @since 2.1
@@ -158,11 +158,8 @@
/**
* The directory where the generated archive file will be put.
- * Defaults to ${project.build.directory} specified in the pom or
- * inherited from the super pom.
*
- * @parameter expression="${project.build.directory}"
- * @required
+ * @parameter default-value="${project.build.directory}"
*/
protected File outputDirectory;
@@ -170,11 +167,8 @@
* The filename to be used for the generated archive file.
* For the source:jar goal, "-sources" is appended to this filename.
* For the source:test-jar goal, "-test-sources" is appended.
- * Defaults to ${project.build.finalName} specified in the pom
- * or inherited from the super pom.
*
- * @parameter expression="${project.build.finalName}"
- * @required
+ * @parameter default-value="${project.build.finalName}"
*/
protected String finalName;