Index: plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/plugin.jelly,v
retrieving revision 1.13
diff -u -r1.13 plugin.jelly
--- plugin.jelly	7 Aug 2004 16:00:27 -0000	1.13
+++ plugin.jelly	9 Aug 2004 16:11:55 -0000
@@ -82,6 +82,21 @@
     <j:if test="${versionFound == null}">
       <ant:fail>The release '${versionVariable}' could not be found in change log</ant:fail>
     </j:if>
+
+<!-- if project is under version control, check if the current release
+    has a tag -->
+   <j:if test="${size(pom.versions)!=0}">
+     <j:set var="foundTag" value="false"/>
+     <j:forEach var="version" items="${pom.versions}">
+       <j:if test="${version.id==versionVariable}">
+         <j:set var="foundTag" value="true"/>
+         <j:break/>
+       </j:if>
+     </j:forEach>
+     <j:if test="${!foundTag}">
+       <ant:fail>Release (${versionVariable}) does not have an entry at the POM's versions element.</ant:fail>
+     </j:if>
+   </j:if>
     
   </goal>
 
Index: xdocs/changes.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/announcement/xdocs/changes.xml,v
retrieving revision 1.23
diff -u -r1.23 changes.xml
--- xdocs/changes.xml	7 Aug 2004 16:00:27 -0000	1.23
+++ xdocs/changes.xml	9 Aug 2004 16:11:56 -0000
@@ -25,6 +25,9 @@
   </properties>
   <body>
     <release version="1.3-SNAPSHOT" date="in CVS">
+      <action dev="vmassol" type="add" issue="MPANNOUNCEMENT-14" due-to="Felipe Leme">
+        Changed <code>announcement:check-install</code> to check if the current version has a SCM tag entry.
+      </action>
       <action dev="vmassol" type="add" issue="MPANNOUNCEMENT-13" due-to="Felipe Leme">
         Added new optional <code>maven.announcement.encoding</code> property 
         that defines which charset encoding to use to generate the text announcement

