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 2013/01/17 10:24:30 UTC

svn commit: r1434599 - /db/derby/code/trunk/tools/release/build.xml

Author: kristwaa
Date: Thu Jan 17 09:24:29 2013
New Revision: 1434599

URL: http://svn.apache.org/viewvc?rev=1434599&view=rev
Log:
DERBY-6043: Make JQL default query mode for 'ant genrelnotes'

Made the switch to JQL, and cleaned up some ant code.
Note that you can still specify jira.filter.id explicitly if you wish to.

Patch file: derby-6043-1a-make_jql_default.diff

Modified:
    db/derby/code/trunk/tools/release/build.xml

Modified: db/derby/code/trunk/tools/release/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/tools/release/build.xml?rev=1434599&r1=1434598&r2=1434599&view=diff
==============================================================================
--- db/derby/code/trunk/tools/release/build.xml (original)
+++ db/derby/code/trunk/tools/release/build.xml Thu Jan 17 09:24:29 2013
@@ -117,7 +117,7 @@
 -->
   <target name="genrelnotes"
       depends="missing-properties, maven-exec-windows, maven-exec-unix"
-      description="Generates the release notes. Takes the following properties: jira.user, jira.password, jira.filter.id, release.version, relnotes.src.reports">
+      description="Generates the release notes. Takes the following properties: jira.user, jira.password, release.version, relnotes.src.reports, jira.filter.id (optional), reportDisqualifications (optional)">
 
         <!-- Build the JIRA SOAP client -->
 	<exec executable="${mvn.exec}"
@@ -137,13 +137,10 @@
             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">
+        <!-- Set default for jira.filter.id (0 to use JQL). -->
+        <condition property="jira.filter.id" value="0">
           <not>
-              <isset property="${reportDisqualifications_val}" />
+              <isset property="${jira.filter.id}" />
           </not>
         </condition>
 
@@ -154,7 +151,7 @@
             releaseVersion="${release.version}"
             filterId="${jira.filter.id}"
             outputFile="${relnotes.src.buglist}"
-            reportDisqualifications="${reportDisqualifications_val}"
+            reportDisqualifications="${reportDisqualifications}"
         />
             
      <generateReleaseNotes
@@ -173,13 +170,13 @@
         <echo message="Make sure the following properties are set:"/>
         <echo message="  jira.user             = ${jira.user}"/>
         <echo message="  jira.password         = ${jira.password}"/>
-        <echo message="  jira.filter.id        = ${jira.filter.id}"/>
-        <echo message="                          (digits only, 0 for JQL)"/>
         <echo message="  release.version       = ${release.version}"/>
         <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="  jira.filter.id          = ${jira.filter.id}"/>
+        <echo message="                            (digits only, 0 for JQL)"/>
         <echo message="  reportDisqualifications = ${reportDisqualifications}"/>
         <echo message="                            (true|*false*)"/>
         <fail message="Build aborted due to missing system properties."/>
@@ -193,7 +190,6 @@
                 <isset property="jira.user"/>
                 <isset property="jira.password"/>
                 <isset property="release.version"/>
-                <isset property="jira.filter.id"/>
                 <isset property="relnotes.src.reports"/>
             </and>
         </condition>