a) Specify the output file as maven.announcement.file

b) Default it to ${maven.build.dir}/announcement.txt
c) Add ${maven.announcement.file} to the echo when generating it so
the user knows where to find it.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2004-04-25 18:19:41 +00:00
1 parent bc1eb8a3ac
commit 37d95e7a4f
4 files changed
+17 -3

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@
<ant:fail>The 'maven.announcement.version' property needs to be defined.</ant:fail>
</j:if>
<echo>Generating announcement for release ${maven.announcement.version} ...</echo>
<echo>Generating announcement for release ${maven.announcement.version} in ${maven.announcement.file}...</echo>
<util:file var="inputFile" name="${maven.docs.src}/changes.xml"/>
<x:parse var="doc" xml="${inputFile}"/>
@@ -62,7 +62,7 @@
<j:set var="stylesheetURI"
value="file:${plugin.resources}/announcement.jsl"/>
<j:file
name="${maven.build.dir}/announcement.txt"
name="${maven.announcement.file}"
outputMode="xml"
omitXmlDeclaration="true"
prettyPrint="false">
+2 -1
View File
@@ -20,4 +20,5 @@
# Version for which to create a release note. This property needs to
# be defined in your project. For example:
maven.announcement.version = ${pom.version}
maven.announcement.version = ${pom.version}
maven.announcement.file=${maven.build.dir}/announcement.txt
+3
View File
@@ -25,6 +25,9 @@
</properties>
<body>
<release version="1.1" date="in CVS">
<action dev="dion" type="update">
Added maven.announcement.file property and echo'd it during generation
</action>
<action dev="vmassol" type="add" issue="MPANNOUNCEMENT-2" due-to="Fabrizio Giustina">
Added more information when running the plugin. Also added a check to
verify if the announcement version matches an entry in the
+10
View File
@@ -38,6 +38,16 @@
<code>${pom.version}</code>
</td>
</tr>
<tr>
<td>maven.announcement.file</td>
<td>Yes</td>
<td>
The file name that the announcement is generated into.
</td>
<td>
<code>${maven.build.dir}/announcement.txt</code>
</td>
</tr>
</table>
</section>
</body>