You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/04/25 20:19:41 UTC

cvs commit: maven-plugins/announcement/xdocs changes.xml properties.xml

dion        2004/04/25 11:19:41

  Modified:    announcement plugin.jelly plugin.properties
               announcement/xdocs changes.xml properties.xml
  Log:
  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.
  
  Revision  Changes    Path
  1.5       +2 -2      maven-plugins/announcement/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven-plugins/announcement/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly	18 Apr 2004 20:59:42 -0000	1.4
  +++ plugin.jelly	25 Apr 2004 18:19:41 -0000	1.5
  @@ -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">
  
  
  
  1.6       +2 -1      maven-plugins/announcement/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  RCS file: /home/cvs/maven-plugins/announcement/plugin.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- plugin.properties	18 Apr 2004 20:59:42 -0000	1.5
  +++ plugin.properties	25 Apr 2004 18:19:41 -0000	1.6
  @@ -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}
  \ No newline at end of file
  +maven.announcement.version = ${pom.version}
  +maven.announcement.file=${maven.build.dir}/announcement.txt
  \ No newline at end of file
  
  
  
  1.8       +3 -0      maven-plugins/announcement/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/announcement/xdocs/changes.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- changes.xml	18 Apr 2004 20:59:42 -0000	1.7
  +++ changes.xml	25 Apr 2004 18:19:41 -0000	1.8
  @@ -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 
  
  
  
  1.5       +10 -0     maven-plugins/announcement/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/announcement/xdocs/properties.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- properties.xml	18 Apr 2004 20:59:42 -0000	1.4
  +++ properties.xml	25 Apr 2004 18:19:41 -0000	1.5
  @@ -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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org