You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2008/08/25 16:54:44 UTC

svn commit: r688742 - /db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java

Author: rhillegas
Date: Mon Aug 25 07:54:43 2008
New Revision: 688742

URL: http://svn.apache.org/viewvc?rev=688742&view=rev
Log:
DERBY-3820: The revised releases notes generator was picking up attachments which weren't release notes--this fixes that problem.

Modified:
    db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java

Modified: db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java?rev=688742&r1=688741&r2=688742&view=diff
==============================================================================
--- db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java (original)
+++ db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java Mon Aug 25 07:54:43 2008
@@ -771,6 +771,10 @@
             idx = end;
 
             String  attachmentAddress = jira.substring( start, end );
+
+            // skip attachments that aren't release notes
+            if ( !attachmentAddress.endsWith( RELEASE_NOTE_NAME ) ) { continue; }
+
             int         versionNumberStart = ATTACHMENT_START.length();
             int         versionNumberEnd = attachmentAddress.indexOf( ATTACHMENT_VERSION_END, versionNumberStart );
             String  versionString = attachmentAddress.substring( versionNumberStart, versionNumberEnd );