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 kr...@apache.org on 2011/05/30 13:49:38 UTC

svn commit: r1129132 - in /db/derby/code/trunk/tools/release: build.xml jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java

Author: kristwaa
Date: Mon May 30 11:49:38 2011
New Revision: 1129132

URL: http://svn.apache.org/viewvc?rev=1129132&view=rev
Log:
DERBY-5080: Utilize JQL to fetch JIRA issue list for release notes generation

Added knob 'reportDisqualifications' to control whether disqualified issues
are reported or not by the JIRA SOAP tool when invoked through
'ant genrelnotes'. The default is false.

Patch file: derby-5080-3a-report_disqualifications_knob.diff


Modified:
    db/derby/code/trunk/tools/release/build.xml
    db/derby/code/trunk/tools/release/jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java

Modified: db/derby/code/trunk/tools/release/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/tools/release/build.xml?rev=1129132&r1=1129131&r2=1129132&view=diff
==============================================================================
--- db/derby/code/trunk/tools/release/build.xml (original)
+++ db/derby/code/trunk/tools/release/build.xml Mon May 30 11:49:38 2011
@@ -137,6 +137,16 @@
             classpath="${basedir}/tools/release/jirasoap/target/JiraSOAP-LATEST-jar-with-dependencies.jar"
         />
 
+        <!-- See if the user wants disqualified issues to be reported. -->
+        <condition property="reportDisqualifications_val" value="true">
+            <contains string="true" substring="${reportDisqualifications}" />
+        </condition>
+        <condition property="reportDisqualifications_val" value="false">
+          <not>
+              <isset property="${reportDisqualifications_val}" />
+          </not>
+        </condition>
+
         <!-- Execute the JIRA SOAP client -->
         <jirasoapclient
             user="${jira.user}"
@@ -144,6 +154,7 @@
             releaseVersion="${release.version}"
             filterId="${jira.filter.id}"
             outputFile="${relnotes.src.buglist}"
+            reportDisqualifications="${reportDisqualifications_val}"
         />
             
      <generateReleaseNotes
@@ -168,6 +179,9 @@
         <echo message="                          (i.e. 10.7.1.0)"/>
         <echo message="  relnotes.src.reports  = ${relnotes.src.reports}"/>
         <echo message="                          (specify a directory)"/>
+        <echo message="*Optional* properties:"/>
+        <echo message="  reportDisqualifications = ${reportDisqualifications}"/>
+        <echo message="                            (true|*false*)"/>
         <fail message="Build aborted due to missing system properties."/>
   </target>
 

Modified: db/derby/code/trunk/tools/release/jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/tools/release/jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java?rev=1129132&r1=1129131&r2=1129132&view=diff
==============================================================================
--- db/derby/code/trunk/tools/release/jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java (original)
+++ db/derby/code/trunk/tools/release/jirasoap/src/main/java/org/apache/derbyBuild/jirasoap/FilteredIssueListerAntWrapper.java Mon May 30 11:49:38 2011
@@ -65,6 +65,10 @@ public class FilteredIssueListerAntWrapp
         this.output = output;
     }
 
+    public void setReportDisqualifications(String bool) {
+        System.setProperty("reportDisqualifications", bool);
+    }
+
     public void execute()
             throws BuildException {
         try {