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. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@368824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3aba3644eb
commit
59fb5043e7
@ -64,10 +64,10 @@
|
|||||||
project="${pom}"
|
project="${pom}"
|
||||||
output="${maven.build.dir}/jira/jira-results.xml"
|
output="${maven.build.dir}/jira/jira-results.xml"
|
||||||
nbEntries="${maven.jira.nbentries}"
|
nbEntries="${maven.jira.nbentries}"
|
||||||
statusIds="${maven.jira.status}"
|
status="${maven.jira.status}"
|
||||||
filter="${maven.jira.filter}"
|
filter="${maven.jira.filter}"
|
||||||
resolutionIds="${maven.jira.resolution}"
|
resolution="${maven.jira.resolution}"
|
||||||
priorityIds="${maven.jira.priority}"
|
priority="${maven.jira.priority}"
|
||||||
webUser="${maven.jira.webUser}"
|
webUser="${maven.jira.webUser}"
|
||||||
webPassword="${maven.jira.webPassword}"
|
webPassword="${maven.jira.webPassword}"
|
||||||
jiraUser="${maven.jira.jiraUser}"
|
jiraUser="${maven.jira.jiraUser}"
|
||||||
|
|||||||
@ -98,13 +98,13 @@ public final class JiraDownloader
|
|||||||
private String filter;
|
private String filter;
|
||||||
|
|
||||||
/** Ids of status to show, as comma separated string. */
|
/** Ids of status to show, as comma separated string. */
|
||||||
private String statusIds;
|
private String status;
|
||||||
|
|
||||||
/** Ids of resolution to show, as comma separated string. */
|
/** Ids of resolution to show, as comma separated string. */
|
||||||
private String resolutionIds;
|
private String resolution;
|
||||||
|
|
||||||
/** Ids of priority to show, as comma separated string. */
|
/** Ids of priority to show, as comma separated string. */
|
||||||
private String priorityIds;
|
private String priority;
|
||||||
|
|
||||||
/** The component to show. */
|
/** The component to show. */
|
||||||
private String component;
|
private String component;
|
||||||
@ -147,9 +147,9 @@ public final class JiraDownloader
|
|||||||
StringBuffer localFilter = new StringBuffer();
|
StringBuffer localFilter = new StringBuffer();
|
||||||
|
|
||||||
// get the Status Ids
|
// 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++ )
|
for ( int i = 0; i < stats.length; i++ )
|
||||||
{
|
{
|
||||||
@ -157,15 +157,15 @@ public final class JiraDownloader
|
|||||||
|
|
||||||
if ( statusParam != null )
|
if ( statusParam != null )
|
||||||
{
|
{
|
||||||
localFilter.append( "&statusIds=" + statusParam );
|
localFilter.append( "&status=" + statusParam );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the Priority Ids
|
// 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++ )
|
for ( int i = 0; i < prios.length; i++ )
|
||||||
{
|
{
|
||||||
@ -173,15 +173,15 @@ public final class JiraDownloader
|
|||||||
|
|
||||||
if ( priorityParam != null )
|
if ( priorityParam != null )
|
||||||
{
|
{
|
||||||
localFilter.append( "&priorityIds=" + priorityParam );
|
localFilter.append( "&priority=" + priorityParam );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( resolutionIds != null )
|
if ( resolution != null )
|
||||||
{
|
{
|
||||||
// get the Resolution Ids
|
// get the Resolution Ids
|
||||||
String[] resos = resolutionIds.split( "," );
|
String[] resos = resolution.split( "," );
|
||||||
|
|
||||||
for ( int i = 0; i < resos.length; i++ )
|
for ( int i = 0; i < resos.length; i++ )
|
||||||
{
|
{
|
||||||
@ -189,7 +189,7 @@ public final class JiraDownloader
|
|||||||
|
|
||||||
if ( resoParam != null )
|
if ( resoParam != null )
|
||||||
{
|
{
|
||||||
localFilter.append( "&resolutionIds=" + resoParam );
|
localFilter.append( "&resolution=" + resoParam );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -614,36 +614,36 @@ public final class JiraDownloader
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the statusIds.
|
* Sets the status.
|
||||||
*
|
*
|
||||||
* @param thisStatusIds
|
* @param thisStatus
|
||||||
* The id(s) of the status to show, as comma separated string
|
* 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
|
* 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
|
* 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.3-SNAPSHOT" date="in SVN">
|
<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="add">Add a jira-roadmap report.</action>
|
||||||
<action dev="ltheussl" type="update">Layout changes: mimic default JIRA appearance, also show votes.</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>
|
<action dev="aheritier" type="fix">Icons are corrupted (images are filtered during the copy).</action>
|
||||||
|
|||||||
34
jira/xdocs/index.xml
Normal file
34
jira/xdocs/index.xml
Normal file
@ -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>
|
||||||
Loading…
x
Reference in New Issue
Block a user