db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r688742 - /db/derby/code/trunk/java/build/org/apache/derbyBuild/ReleaseNotesGenerator.java
Date Mon, 25 Aug 2008 14:54:44 GMT
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
);



Mime
View raw message