Author: ltheussl Date: Fri Jan 13 11:10:21 2006 New Revision: 368824 URL: http://svn.apache.org/viewcvs?rev=368824&view=rev Log: PR: MPJIRA-17 Plugin uses deprecated API to retrieve JIRA issues. Rename properties that were deprecated in JIRA 3.3. Now requires at least JIRA 3.3.
Added: maven/maven-1/plugins/trunk/jira/xdocs/index.xml (with props) Modified: maven/maven-1/plugins/trunk/jira/plugin.jelly maven/maven-1/plugins/trunk/jira/src/main/org/apache/maven/jira/JiraDownloader.java maven/maven-1/plugins/trunk/jira/xdocs/changes.xml Modified: maven/maven-1/plugins/trunk/jira/plugin.jelly URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jira/plugin.jelly?rev=368824&r1=368823&r2=368824&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/jira/plugin.jelly (original) +++ maven/maven-1/plugins/trunk/jira/plugin.jelly Fri Jan 13 11:10:21 2006 @@ -64,10 +64,10 @@ project="${pom}" output="${maven.build.dir}/jira/jira-results.xml" nbEntries="${maven.jira.nbentries}" - statusIds="${maven.jira.status}" + status="${maven.jira.status}" filter="${maven.jira.filter}" - resolutionIds="${maven.jira.resolution}" - priorityIds="${maven.jira.priority}" + resolution="${maven.jira.resolution}" + priority="${maven.jira.priority}" webUser="${maven.jira.webUser}" webPassword="${maven.jira.webPassword}" jiraUser="${maven.jira.jiraUser}" Modified: maven/maven-1/plugins/trunk/jira/src/main/org/apache/maven/jira/JiraDownloader.java URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jira/src/main/org/apache/maven/jira/JiraDownloader.java?rev=368824&r1=368823&r2=368824&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/jira/src/main/org/apache/maven/jira/JiraDownloader.java (original) +++ maven/maven-1/plugins/trunk/jira/src/main/org/apache/maven/jira/JiraDownloader.java Fri Jan 13 11:10:21 2006 @@ -98,13 +98,13 @@ private String filter; /** Ids of status to show, as comma separated string. */ - private String statusIds; + private String status; /** Ids of resolution to show, as comma separated string. */ - private String resolutionIds; + private String resolution; /** Ids of priority to show, as comma separated string. */ - private String priorityIds; + private String priority; /** The component to show. */ private String component; @@ -147,9 +147,9 @@ StringBuffer localFilter = new StringBuffer(); // get the Status Ids - if ( statusIds != null ) + if ( status != null ) { - String[] stats = statusIds.split( "," ); + String[] stats = status.split( "," ); for ( int i = 0; i < stats.length; i++ ) { @@ -157,15 +157,15 @@ if ( statusParam != null ) { - localFilter.append( "&statusIds=" + statusParam ); + localFilter.append( "&status=" + statusParam ); } } } // get the Priority Ids - if ( priorityIds != null ) + if ( priority != null ) { - String[] prios = priorityIds.split( "," ); + String[] prios = priority.split( "," ); for ( int i = 0; i < prios.length; i++ ) { @@ -173,15 +173,15 @@ if ( priorityParam != null ) { - localFilter.append( "&priorityIds=" + priorityParam ); + localFilter.append( "&priority=" + priorityParam ); } } } - if ( resolutionIds != null ) + if ( resolution != null ) { // get the Resolution Ids - String[] resos = resolutionIds.split( "," ); + String[] resos = resolution.split( "," ); for ( int i = 0; i < resos.length; i++ ) { @@ -189,7 +189,7 @@ if ( resoParam != null ) { - localFilter.append( "&resolutionIds=" + resoParam ); + localFilter.append( "&resolution=" + resoParam ); } } } @@ -614,36 +614,36 @@ } /** - * Sets the statusIds. + * Sets the status. * - * @param thisStatusIds + * @param thisStatus * The id(s) of the status to show, as comma separated string */ - public void setStatusIds( final String thisStatusIds ) + public void setStatus( final String thisStatus ) { - statusIds = thisStatusIds; + status = thisStatus; } /** - * Sets the priorityIds. + * Sets the priority. * - * @param thisPriorityIds + * @param thisPriority * The id(s) of the priority to show, as comma separated string */ - public void setPriorityIds( final String thisPriorityIds ) + public void setPriority( final String thisPriority ) { - priorityIds = thisPriorityIds; + priority = thisPriority; } /** - * Sets the resolutionIds. + * Sets the resolution. * - * @param thisResolutionIds + * @param thisResolution * The id(s) of the resolution to show, as comma separated string */ - public void setResolutionIds( final String thisResolutionIds ) + public void setResolution( final String thisResolution ) { - resolutionIds = thisResolutionIds; + resolution = thisResolution; } /** Modified: maven/maven-1/plugins/trunk/jira/xdocs/changes.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jira/xdocs/changes.xml?rev=368824&r1=368823&r2=368824&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/jira/xdocs/changes.xml (original) +++ maven/maven-1/plugins/trunk/jira/xdocs/changes.xml Fri Jan 13 11:10:21 2006 @@ -24,6 +24,7 @@ </properties> <body> <release version="1.3-SNAPSHOT" date="in SVN"> + <action dev="ltheussl" type="fix" issue="MPJIRA-17">Plugin uses deprecated API to retrieve JIRA issues. Now requires at least JIRA 3.3.</action> <action dev="ltheussl" type="add">Add a jira-roadmap report.</action> <action dev="ltheussl" type="update">Layout changes: mimic default JIRA appearance, also show votes.</action> <action dev="aheritier" type="fix">Icons are corrupted (images are filtered during the copy).</action> Added: maven/maven-1/plugins/trunk/jira/xdocs/index.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jira/xdocs/index.xml?rev=368824&view=auto ============================================================================== --- maven/maven-1/plugins/trunk/jira/xdocs/index.xml (added) +++ maven/maven-1/plugins/trunk/jira/xdocs/index.xml Fri Jan 13 11:10:21 2006 @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<!-- +/* + * Copyright 2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + --> +<document> + <properties> + <title>Maven JIRA Plug-in</title> + </properties> + <body> + <section name="Maven JIRA Plug-in"> + <p> + This plugin downloads issues from Jira and creates a report. + </p> + <p> + <strong>Note:</strong> From version 1.3 on, this plugin needs + at least JIRA 3.3 to work properly. + </p> + </section> + </body> +</document> Propchange: maven/maven-1/plugins/trunk/jira/xdocs/index.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/maven-1/plugins/trunk/jira/xdocs/index.xml ------------------------------------------------------------------------------ svn:keywords = "Author Date Id Revision"