mantisconnect-cvs Mailing List for MantisConnect
Brought to you by:
vboctor
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(20) |
Oct
(16) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
(7) |
Mar
(7) |
Apr
|
May
(19) |
Jun
(22) |
Jul
(1) |
Aug
(2) |
Sep
(63) |
Oct
(1) |
Nov
|
Dec
(4) |
2006 |
Jan
|
Feb
(11) |
Mar
(26) |
Apr
(22) |
May
(13) |
Jun
|
Jul
|
Aug
(34) |
Sep
(15) |
Oct
(28) |
Nov
(7) |
Dec
|
2007 |
Jan
(14) |
Feb
|
Mar
(23) |
Apr
(3) |
May
(3) |
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(3) |
Nov
(1) |
Dec
(4) |
2008 |
Jan
(11) |
Feb
(34) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(7) |
2011 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <vb...@us...> - 2011-01-15 08:36:48
|
Revision: 211 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=211&view=rev Author: vboctor Date: 2011-01-15 08:36:41 +0000 (Sat, 15 Jan 2011) Log Message: ----------- Fixed some StyleCop issues in Issue.cs - more to come later. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/mantisconnect/Issue.cs Modified: mantisconnect/trunk/clients/dotnet/mantisconnect/Issue.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/mantisconnect/Issue.cs 2010-12-05 20:48:04 UTC (rev 210) +++ mantisconnect/trunk/clients/dotnet/mantisconnect/Issue.cs 2011-01-15 08:36:41 UTC (rev 211) @@ -1,13 +1,19 @@ -#region Copyright \xA9 2004-2005 Victor Boctor -// +//----------------------------------------------------------------------- +// <copyright file="Issue.cs" company="Microsoft Corporation"> +// Copyright (C) 2004-2011 All Rights Reserved +// </copyright> +// <summary> // MantisConnect is copyrighted to Victor Boctor // // This program is distributed under the terms and conditions of the GPL // See LICENSE file for details. // // For commercial applications to link with or modify MantisConnect, they require the -// purchase of a MantisConnect commerical license. -// +// purchase of a MantisConnect commercial license. +// </summary> +//----------------------------------------------------------------------- + +#region Copyright \xA9 2004-2005 Victor Boctor #endregion using System; @@ -23,49 +29,49 @@ /// which is stored in different tables in Mantis database. /// </remarks> [Serializable] - public sealed class Issue - { + public sealed class Issue + { /// <summary> /// Initializes a new instance of the <see cref="Issue"/> class. /// </summary> - public Issue() - { - } + public Issue() + { + } /// <summary> /// Initializes a new instance of the <see cref="Issue"/> class. /// </summary> /// <param name="issueData">Issue data from Webservice proxy.</param> - internal Issue( MantisConnectWebservice.IssueData issueData ) + internal Issue(MantisConnectWebservice.IssueData issueData) { - this.Id = Convert.ToInt32( issueData.id ); - this.Project = new ObjectRef( issueData.project ); - this.Category = new ObjectRef( issueData.category ); + this.Id = Convert.ToInt32(issueData.id); + this.Project = new ObjectRef(issueData.project); + this.Category = new ObjectRef(issueData.category); this.Summary = issueData.summary; - this.Description = StringUtils.WebserviceMultilineToNative( issueData.description ); - this.StepsToReproduce = issueData.steps_to_reproduce == null ? String.Empty : StringUtils.WebserviceMultilineToNative( issueData.steps_to_reproduce ); - this.AdditionalInformation = issueData.additional_information == null ? String.Empty : StringUtils.WebserviceMultilineToNative( issueData.additional_information ); - this.AssignedTo = issueData.handler == null ? null : new User( issueData.handler ); - this.ReportedBy = new User( issueData.reporter ); + this.Description = StringUtils.WebserviceMultilineToNative(issueData.description); + this.StepsToReproduce = issueData.steps_to_reproduce == null ? String.Empty : StringUtils.WebserviceMultilineToNative(issueData.steps_to_reproduce); + this.AdditionalInformation = issueData.additional_information == null ? String.Empty : StringUtils.WebserviceMultilineToNative(issueData.additional_information); + this.AssignedTo = issueData.handler == null ? null : new User(issueData.handler); + this.ReportedBy = new User(issueData.reporter); this.ProductVersion = issueData.version == null ? String.Empty : issueData.version; this.ProductBuild = issueData.build == null ? String.Empty : issueData.build; this.Os = issueData.os == null ? String.Empty : issueData.os; this.OsBuild = issueData.os_build == null ? String.Empty : issueData.os_build; this.Platform = issueData.platform == null ? String.Empty : issueData.platform; this.FixedInVersion = issueData.fixed_in_version == null ? String.Empty : issueData.fixed_in_version; - this.SponsorshipTotal = Convert.ToInt32( issueData.sponsorship_total ); - this.Reproducibility = new ObjectRef( issueData.reproducibility ); - this.Resolution = new ObjectRef( issueData.resolution ); - this.Eta = new ObjectRef( issueData.eta ); - this.Status = new ObjectRef( issueData.status ); - this.Priority = new ObjectRef( issueData.priority ); - this.Severity = new ObjectRef( issueData.severity ); - this.Projection = new ObjectRef( issueData.projection ); - this.ViewState = new ObjectRef( issueData.view_state ); + this.SponsorshipTotal = Convert.ToInt32(issueData.sponsorship_total); + this.Reproducibility = new ObjectRef(issueData.reproducibility); + this.Resolution = new ObjectRef(issueData.resolution); + this.Eta = new ObjectRef(issueData.eta); + this.Status = new ObjectRef(issueData.status); + this.Priority = new ObjectRef(issueData.priority); + this.Severity = new ObjectRef(issueData.severity); + this.Projection = new ObjectRef(issueData.projection); + this.ViewState = new ObjectRef(issueData.view_state); - this.Notes = IssueNote.ConvertArray( issueData.notes ); - this.Attachments = Attachment.ConvertArray( issueData.attachments ); - this.Relationships = IssueRelationship.ConvertArray( issueData.relationships ); + this.Notes = IssueNote.ConvertArray(issueData.notes); + this.Attachments = Attachment.ConvertArray(issueData.attachments); + this.Relationships = IssueRelationship.ConvertArray(issueData.relationships); } /// <summary> @@ -79,9 +85,9 @@ issueData.id = this.Id.ToString(); issueData.category = this.Category.Name; issueData.summary = this.Summary; - issueData.description = StringUtils.NativeMultilineToWebservice( this.Description ); - issueData.additional_information = StringUtils.NativeMultilineToWebservice( this.AdditionalInformation ); - issueData.steps_to_reproduce = StringUtils.NativeMultilineToWebservice( this.StepsToReproduce ); + issueData.description = StringUtils.NativeMultilineToWebservice(this.Description); + issueData.additional_information = StringUtils.NativeMultilineToWebservice(this.AdditionalInformation); + issueData.steps_to_reproduce = StringUtils.NativeMultilineToWebservice(this.StepsToReproduce); issueData.build = this.ProductBuild; issueData.version = this.ProductVersion; issueData.os = this.Os; @@ -103,7 +109,7 @@ issueData.date_submitted = this.dateSubmitted; issueData.last_updated = this.lastUpdated; - issueData.notes = IssueNote.ConvertArrayToWebservice( this.Notes ); + issueData.notes = IssueNote.ConvertArrayToWebservice(this.Notes); // TODO: Attachments // TODO: Relationships @@ -116,21 +122,23 @@ /// </summary> /// <param name="issuesData">Issues data in webservice proxy type.</param> /// <returns>The array converted to this type.</returns> - internal static Issue[] ConvertArray( MantisConnectWebservice.IssueData[] issuesData ) + internal static Issue[] ConvertArray(MantisConnectWebservice.IssueData[] issuesData) { - if ( issuesData == null ) + if (issuesData == null) return null; Issue[] issues = new Issue[issuesData.Length]; - for ( int i = 0; i < issuesData.Length; ++i ) - issues[i] = new Issue( issuesData[i] ); + for (int i = 0; i < issuesData.Length; ++i) + { + issues[i] = new Issue(issuesData[i]); + } return issues; } /// <summary> - /// Issue Id + /// Gets or sets the issue id. /// </summary> /// <value>A value greater than or equal to 0.</value> public int Id @@ -140,7 +148,7 @@ } /// <summary> - /// Project to which this issue belongs. Null means un-assigned yet. + /// Gets or sets the project to which this issue belongs. Null means un-assigned yet. /// </summary> /// <value>A value greater than 0.</value> public ObjectRef Project @@ -150,7 +158,7 @@ } /// <summary> - /// Name of category to which the issue belongs. This field is mandatory. + /// Gets or sets the name of category to which the issue belongs. This field is mandatory. /// </summary> public ObjectRef Category { @@ -159,7 +167,7 @@ } /// <summary> - /// Summary of the issue. This field is mandatory. + /// Gets or sets the summary of the issue. This field is mandatory. /// </summary> public string Summary { @@ -168,7 +176,7 @@ } /// <summary> - /// Description of the issue. This field is mandatory. + /// Gets or sets the description of the issue. This field is mandatory. /// </summary> public string Description { @@ -177,7 +185,7 @@ } /// <summary> - /// Steps to reproduce the issue. + /// Gets or sets the steps to reproduce the issue. /// </summary> public string StepsToReproduce { @@ -186,7 +194,7 @@ } /// <summary> - /// Additional information about the issue. + /// Gets or sets the additional information about the issue. /// </summary> public string AdditionalInformation { @@ -195,7 +203,7 @@ } /// <summary> - /// Id of user handling the issue. + /// Gets or sets the id of user handling the issue. /// </summary> /// <value>User id >= 0</value> public User AssignedTo @@ -205,7 +213,7 @@ } /// <summary> - /// Id of user who reported the issue. + /// Gets or sets the id of user who reported the issue. /// </summary> /// <value>User id > 0</value> public User ReportedBy @@ -215,7 +223,7 @@ } /// <summary> - /// Product version + /// Gets or sets the product version /// </summary> public string ProductVersion { @@ -224,7 +232,7 @@ } /// <summary> - /// Product build + /// Gets or sets the product build /// </summary> public string ProductBuild { @@ -233,7 +241,7 @@ } /// <summary> - /// Operating System + /// Gets or sets the Operating System /// </summary> public string Os { @@ -242,7 +250,7 @@ } /// <summary> - /// Operating System Build + /// Gets or sets the Operating System Build /// </summary> public string OsBuild { @@ -251,7 +259,7 @@ } /// <summary> - /// Platform (eg: i386) + /// Gets or sets the Platform (eg: i386) /// </summary> public string Platform { @@ -260,7 +268,7 @@ } /// <summary> - /// Fixed in version field. + /// Gets or sets the fixed in version field. /// </summary> /// <value> /// Has to be the name of a version that is defined for the project to @@ -273,7 +281,7 @@ } /// <summary> - /// Total sponsorships for this issue. + /// Gets or sets the Total sponsorships for this issue. /// </summary> /// <remarks> /// This field is usually populated when information is retrieved about an issue. @@ -285,7 +293,7 @@ } /// <summary> - /// Issue Reproducibility (eg: always, random, not tried, N/A, ...etc) + /// Gets or sets the Issue Reproducibility (eg: always, random, not tried, N/A, ...etc) /// </summary> /// <remarks> /// This matches the ids defined in the reproducibility enumeration in Mantis configuration @@ -298,7 +306,7 @@ } /// <summary> - /// Issue Resolution (eg: fixed, duplicate, not an issue) + /// Gets or sets the Issue Resolution (eg: fixed, duplicate, not an issue) /// </summary> /// <remarks> /// This matches the ids defined in the resolution enumeration in Mantis configuration @@ -311,7 +319,7 @@ } /// <summary> - /// Estimated Time of Arrival + /// Gets or sets the Estimated Time of Arrival /// </summary> /// <remarks> /// This matches the ids defined in the eta enumeration in Mantis configuration @@ -324,7 +332,7 @@ } /// <summary> - /// Issue status + /// Gets or sets the issue status /// </summary> /// <remarks> /// This matches the ids defined in the status enumeration in Mantis configuration @@ -337,7 +345,7 @@ } /// <summary> - /// Issue Priority + /// Gets or sets the Issue Priority /// </summary> /// <remarks> /// This matches the ids defined in the priority enumeration in Mantis configuration @@ -350,7 +358,7 @@ } /// <summary> - /// Issue Severity + /// Gets or sets the Issue Severity /// </summary> /// <remarks> /// This matches the ids defined in the severity enumeration in Mantis configuration @@ -363,7 +371,7 @@ } /// <summary> - /// Projection for the scope of the work associated with resolving the issue. + /// Gets or sets the Projection for the scope of the work associated with resolving the issue. /// </summary> public ObjectRef Projection { @@ -372,7 +380,7 @@ } /// <summary> - /// View state of the issue (eg: private vs. public) + /// Gets or sets the view state of the issue (eg: private vs. public) /// </summary> public ObjectRef ViewState { @@ -381,7 +389,7 @@ } /// <summary> - /// Timestamp when issue was submitted. + /// Gets or sets the timestamp when issue was submitted. /// </summary> public DateTime DateSubmitted { @@ -390,7 +398,7 @@ } /// <summary> - /// Timestamp when issue was last updated. + /// Gets or sets the timestamp when issue was last updated. /// </summary> public DateTime LastUpdated { @@ -436,35 +444,35 @@ { StringBuilder sb = new StringBuilder(); - sb.AppendFormat( "Id = '{0}'\n", id ); - sb.AppendFormat( "Category = '{0}'\n", category == null ? "null" : category.ToString() ); - sb.AppendFormat( "Summary = '{0}'\n", summary ); - sb.AppendFormat( "Description = '{0}'\n", description ); - sb.AppendFormat( "Product Version = '{0}'\n", this.ProductVersion ); - sb.AppendFormat( "Product Build = '{0}'\n", this.ProductBuild ); - sb.AppendFormat( "Steps to Reproduce = '{0}'\n", this.stepsToReproduce ); - sb.AppendFormat( "Additional Info = '{0}'\n", this.AdditionalInformation ); + sb.AppendFormat("Id = '{0}'\n", id); + sb.AppendFormat("Category = '{0}'\n", category == null ? "null" : category.ToString()); + sb.AppendFormat("Summary = '{0}'\n", summary); + sb.AppendFormat("Description = '{0}'\n", description); + sb.AppendFormat("Product Version = '{0}'\n", this.ProductVersion); + sb.AppendFormat("Product Build = '{0}'\n", this.ProductBuild); + sb.AppendFormat("Steps to Reproduce = '{0}'\n", this.stepsToReproduce); + sb.AppendFormat("Additional Info = '{0}'\n", this.AdditionalInformation); - sb.AppendFormat( "Project = {0}\n", project == null ? "null" : project.ToString() ); - sb.AppendFormat( "Reported By = {0}\n", ReportedBy == null ? "null" : ReportedBy.ToString() ); - sb.AppendFormat( "Assigned To = {0}\n", AssignedTo == null ? "null" : AssignedTo.ToString() ); - sb.AppendFormat( "Reproducibility = {0}\n", reproducibility == null ? "null" : reproducibility.ToString() ); - sb.AppendFormat( "Status = {0}\n", status == null ? "null" : status.ToString() ); - sb.AppendFormat( "Priority = {0}\n", priority == null ? "null" : priority.ToString() ); - sb.AppendFormat( "Severity = {0}\n", severity == null ? "null" : severity.ToString() ); - sb.AppendFormat( "Resolution = {0}\n", resolution == null ? "null" : resolution.ToString() ); - sb.AppendFormat( "Projection = {0}\n", projection == null ? "null" : projection.ToString() ); - sb.AppendFormat( "Eta = {0}\n", eta == null ? "null" : eta.ToString() ); - sb.AppendFormat( "View State = {0}\n", viewState == null ? "null" : viewState.ToString() ); + sb.AppendFormat("Project = {0}\n", project == null ? "null" : project.ToString()); + sb.AppendFormat("Reported By = {0}\n", ReportedBy == null ? "null" : ReportedBy.ToString()); + sb.AppendFormat("Assigned To = {0}\n", AssignedTo == null ? "null" : AssignedTo.ToString()); + sb.AppendFormat("Reproducibility = {0}\n", reproducibility == null ? "null" : reproducibility.ToString()); + sb.AppendFormat("Status = {0}\n", status == null ? "null" : status.ToString()); + sb.AppendFormat("Priority = {0}\n", priority == null ? "null" : priority.ToString()); + sb.AppendFormat("Severity = {0}\n", severity == null ? "null" : severity.ToString()); + sb.AppendFormat("Resolution = {0}\n", resolution == null ? "null" : resolution.ToString()); + sb.AppendFormat("Projection = {0}\n", projection == null ? "null" : projection.ToString()); + sb.AppendFormat("Eta = {0}\n", eta == null ? "null" : eta.ToString()); + sb.AppendFormat("View State = {0}\n", viewState == null ? "null" : viewState.ToString()); - sb.AppendFormat( "Sponsorship Total = '{0}'\n", sponsorshipTotal ); - sb.AppendFormat( "Fixed in Version = '{0}'\n", this.FixedInVersion ); - sb.AppendFormat( "OS = '{0}'\n", this.Os ); - sb.AppendFormat( "OS Build = '{0}'\n", this.OsBuild ); - sb.AppendFormat( "Platform = '{0}'\n", this.Platform ); + sb.AppendFormat("Sponsorship Total = '{0}'\n", sponsorshipTotal); + sb.AppendFormat("Fixed in Version = '{0}'\n", this.FixedInVersion); + sb.AppendFormat("OS = '{0}'\n", this.Os); + sb.AppendFormat("OS Build = '{0}'\n", this.OsBuild); + sb.AppendFormat("Platform = '{0}'\n", this.Platform); - sb.AppendFormat( "Date Submitted = '{0}'\n", this.DateSubmitted ); - sb.AppendFormat( "Last Updated = '{0}'\n", this.LastUpdated ); + sb.AppendFormat("Date Submitted = '{0}'\n", this.DateSubmitted); + sb.AppendFormat("Last Updated = '{0}'\n", this.LastUpdated); return sb.ToString(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:48:10
|
Revision: 210 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=210&view=rev Author: planser Date: 2010-12-05 20:48:04 +0000 (Sun, 05 Dec 2010) Log Message: ----------- changed version number to 1.1.1.2-SVN Modified Paths: -------------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2010-12-05 20:46:34 UTC (rev 209) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2010-12-05 20:48:04 UTC (rev 210) @@ -2,7 +2,7 @@ <project name="MantisConnect-Client" default="dist" basedir="."> <property name="dist.target" location="dist"/> - <property name="dist.version" value="1.1.1.1"/> + <property name="dist.version" value="1.1.1.2-SVN"/> <property name="dist.name" value="mantisconnect-client-api-${dist.version}"/> <property name="dist.dir" location="${dist.target}/${dist.name}"/> <property name="dist.src.dir" location="${dist.dir}/src"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:46:40
|
Revision: 209 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=209&view=rev Author: planser Date: 2010-12-05 20:46:34 +0000 (Sun, 05 Dec 2010) Log Message: ----------- fixed typo Added Paths: ----------- mantisconnect/tags/clients/java/client-api/REL_1_1_1_1/ Removed Paths: ------------- mantisconnect/tags/clients/java/client-api/RES_1_1_1_1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:45:12
|
Revision: 208 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=208&view=rev Author: planser Date: 2010-12-05 20:45:06 +0000 (Sun, 05 Dec 2010) Log Message: ----------- Added Paths: ----------- mantisconnect/tags/clients/java/client-api/RES_1_1_1_1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:43:20
|
Revision: 207 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=207&view=rev Author: planser Date: 2010-12-05 20:43:14 +0000 (Sun, 05 Dec 2010) Log Message: ----------- changed version number to 1.1.1.1 Modified Paths: -------------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2010-12-05 20:40:57 UTC (rev 206) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2010-12-05 20:43:14 UTC (rev 207) @@ -2,7 +2,7 @@ <project name="MantisConnect-Client" default="dist" basedir="."> <property name="dist.target" location="dist"/> - <property name="dist.version" value="1.1.1.1-SVN"/> + <property name="dist.version" value="1.1.1.1"/> <property name="dist.name" value="mantisconnect-client-api-${dist.version}"/> <property name="dist.dir" location="${dist.target}/${dist.name}"/> <property name="dist.src.dir" location="${dist.dir}/src"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:41:04
|
Revision: 206 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=206&view=rev Author: planser Date: 2010-12-05 20:40:57 +0000 (Sun, 05 Dec 2010) Log Message: ----------- - defined configurations settings for proxy Modified Paths: -------------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/README.txt mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/axis/Proxy.java Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/README.txt =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/README.txt 2010-12-05 20:32:56 UTC (rev 205) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/README.txt 2010-12-05 20:40:57 UTC (rev 206) @@ -104,7 +104,7 @@ [...] -Proxy.setProxy("localhost", 8080); +Proxy.configure("localhost", 8080); IMCSession session = new MCSession(url, user, pwd); [...] Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/axis/Proxy.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/axis/Proxy.java 2010-12-05 20:32:56 UTC (rev 205) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/axis/Proxy.java 2010-12-05 20:40:57 UTC (rev 206) @@ -1,72 +1,114 @@ -/* - * Copyright 2008 Peter Lanser. - * - * MantisConnect is copyrighted to Victor Boctor. - * - * This library is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation, either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this program. - * If not, see http://www.gnu.org/licenses/. - */ -package org.mantisbt.connect.axis; - -import org.apache.axis.components.net.DefaultHTTPTransportClientProperties; - -/** - * <p> - * A class which acts as a HTTP proxy for Axis. - * </p> - * <p> - * To configure a HTTP proxy use the static method - * <code>setProxy(String, int).</code> - * </p> - * - * @author Peter Lanser, pl...@us... - */ -public class Proxy extends DefaultHTTPTransportClientProperties { - - static { - System.setProperty("org.apache.axis.components.net.TransportClientProperties", - "org.mantisbt.connect.axis.Proxy"); - } - - private static String proxyHost; - - private static String proxyPort; - - public String getProxyHost() { - if (proxyHost != null) { - return proxyHost; - } else { - return super.getProxyHost(); - } - } - - public String getProxyPort() { - if (proxyPort != null) { - return String.valueOf(proxyPort); - } else { - return super.getProxyPort(); - } - } - - public static void setProxy(String proxyHost, int proxyPort) { - if (proxyHost == null || proxyPort == 0) { - Proxy.proxyHost = null; - Proxy.proxyPort = null; - } else { - Proxy.proxyHost = proxyHost; - Proxy.proxyPort = String.valueOf(proxyPort); - } - } - -} +/* + * Copyright 2008 Peter Lanser. + * + * MantisConnect is copyrighted to Victor Boctor. + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program. + * If not, see http://www.gnu.org/licenses/. + */ +package org.mantisbt.connect.axis; + +import org.apache.axis.components.net.DefaultHTTPTransportClientProperties; + +/** + * <p> + * A class which acts as a HTTP proxy for Axis. + * </p> + * <p> + * To configure a HTTP proxy use one of the static configure methods. + * </p> + * + * @author Peter Lanser, pl...@us... + */ +public class Proxy extends DefaultHTTPTransportClientProperties { + + static { + System.setProperty("org.apache.axis.components.net.TransportClientProperties", + "org.mantisbt.connect.axis.Proxy"); + } + + private static String host; + private static String port; + private static String user; + private static String password; + private static String nonProxyHosts; + + public String getProxyHost() { + if (Proxy.host != null) { + return Proxy.host; + } else { + return super.getProxyHost(); + } + } + + public String getProxyPort() { + if (Proxy.port != null) { + return Proxy.port; + } else { + return super.getProxyPort(); + } + } + + public String getProxyUser() { + if (Proxy.user != null) { + return Proxy.user; + } else { + return super.getProxyUser(); + } + } + + public String getProxyPassword() { + if (Proxy.password != null) { + return Proxy.password; + } else { + return super.getProxyPassword(); + } + } + + public String getNonProxyHosts() { + if (Proxy.nonProxyHosts != null) { + return Proxy.nonProxyHosts; + } else { + return super.getNonProxyHosts(); + } + } + + public static void configure(String host, int port) { + configure(host, port, null, null, null); + } + + public static void configure(String host, int port, String nonProxyHosts) { + configure(host, port, null, null, nonProxyHosts); + } + + public static void configure(String host, int port, String user, String password) { + configure(host, port, user, password, null); + } + + public static void configure(String host, int port, String user, String password, String nonProxyHosts) { + Proxy.host = host; + Proxy.port = String.valueOf(port); + Proxy.user = user; + Proxy.password = password; + Proxy.nonProxyHosts = nonProxyHosts; + } + + /** + * @deprecated Use <tt>configure(String host, int port)</tt> instead. + */ + public static void setProxy(String host, int port) { + configure(host, port); + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2010-12-05 20:33:02
|
Revision: 205 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=205&view=rev Author: planser Date: 2010-12-05 20:32:56 +0000 (Sun, 05 Dec 2010) Log Message: ----------- defined configurations settings for proxy Modified Paths: -------------- mantisconnect/trunk/clients/java/client-api/README.txt mantisconnect/trunk/clients/java/client-api/src/main/org/mantisbt/connect/axis/Proxy.java Modified: mantisconnect/trunk/clients/java/client-api/README.txt =================================================================== --- mantisconnect/trunk/clients/java/client-api/README.txt 2010-12-02 08:12:31 UTC (rev 204) +++ mantisconnect/trunk/clients/java/client-api/README.txt 2010-12-05 20:32:56 UTC (rev 205) @@ -39,10 +39,10 @@ This is version 1.1.2.0 which means that it's compatible with webservices versioned 1.1 respectively 1.1.x (first two parts). -It is the first version of the Client API (1.0 - the second two parts). +It is the second version of the Client API (2.0 - the second two parts). The next bugfix release for the MantisConnect Java Client API would be named -1.1.1.1. +1.1.2.1. 3. Building the source distribution =================================== @@ -104,7 +104,7 @@ [...] -Proxy.setProxy("localhost", 8080); +Proxy.configure("localhost", 8080); IMCSession session = new MCSession(url, user, pwd); [...] Modified: mantisconnect/trunk/clients/java/client-api/src/main/org/mantisbt/connect/axis/Proxy.java =================================================================== --- mantisconnect/trunk/clients/java/client-api/src/main/org/mantisbt/connect/axis/Proxy.java 2010-12-02 08:12:31 UTC (rev 204) +++ mantisconnect/trunk/clients/java/client-api/src/main/org/mantisbt/connect/axis/Proxy.java 2010-12-05 20:32:56 UTC (rev 205) @@ -26,8 +26,7 @@ * A class which acts as a HTTP proxy for Axis. * </p> * <p> - * To configure a HTTP proxy use the static method - * <code>setProxy(String, int).</code> + * To configure a HTTP proxy use one of the static configure methods. * </p> * * @author Peter Lanser, pl...@us... @@ -39,34 +38,77 @@ "org.mantisbt.connect.axis.Proxy"); } - private static String proxyHost; + private static String host; + private static String port; + private static String user; + private static String password; + private static String nonProxyHosts; - private static String proxyPort; - public String getProxyHost() { - if (proxyHost != null) { - return proxyHost; + if (Proxy.host != null) { + return Proxy.host; } else { return super.getProxyHost(); } } public String getProxyPort() { - if (proxyPort != null) { - return String.valueOf(proxyPort); + if (Proxy.port != null) { + return Proxy.port; } else { return super.getProxyPort(); } } - - public static void setProxy(String proxyHost, int proxyPort) { - if (proxyHost == null || proxyPort == 0) { - Proxy.proxyHost = null; - Proxy.proxyPort = null; + + public String getProxyUser() { + if (Proxy.user != null) { + return Proxy.user; } else { - Proxy.proxyHost = proxyHost; - Proxy.proxyPort = String.valueOf(proxyPort); + return super.getProxyUser(); } } + + public String getProxyPassword() { + if (Proxy.password != null) { + return Proxy.password; + } else { + return super.getProxyPassword(); + } + } + + public String getNonProxyHosts() { + if (Proxy.nonProxyHosts != null) { + return Proxy.nonProxyHosts; + } else { + return super.getNonProxyHosts(); + } + } + + public static void configure(String host, int port) { + configure(host, port, null, null, null); + } + + public static void configure(String host, int port, String nonProxyHosts) { + configure(host, port, null, null, nonProxyHosts); + } + + public static void configure(String host, int port, String user, String password) { + configure(host, port, user, password, null); + } + + public static void configure(String host, int port, String user, String password, String nonProxyHosts) { + Proxy.host = host; + Proxy.port = String.valueOf(port); + Proxy.user = user; + Proxy.password = password; + Proxy.nonProxyHosts = nonProxyHosts; + } + /** + * @deprecated Use <tt>configure(String host, int port)</tt> instead. + */ + public static void setProxy(String host, int port) { + configure(host, port); + } + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vb...@us...> - 2010-12-02 08:05:56
|
Revision: 203 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=203&view=rev Author: vboctor Date: 2010-12-02 08:05:50 +0000 (Thu, 02 Dec 2010) Log Message: ----------- Changed StringUtils to a static class rather than a sealed class with a private constructor. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs Modified: mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs 2009-10-10 00:52:08 UTC (rev 202) +++ mantisconnect/trunk/clients/dotnet/mantisconnect/StringUtils.cs 2010-12-02 08:05:50 UTC (rev 203) @@ -17,16 +17,9 @@ /// <summary> /// A class that includes a set of string utility methods. /// </summary> - public sealed class StringUtils + public static class StringUtils { /// <summary> - /// No need to create inistances of a utility class. - /// </summary> - private StringUtils() - { - } - - /// <summary> /// Converts a multiline string from webservice format to native format that /// is used by the local OS and its controls. /// </summary> @@ -39,9 +32,9 @@ /// </remarks> /// <param name="webserviceMultiline">The string in webservice format.</param> /// <returns>The string in native format</returns> - public static string WebserviceMultilineToNative( string webserviceMultiline ) + public static string WebserviceMultilineToNative(string webserviceMultiline) { - return webserviceMultiline.Replace( "\n", Environment.NewLine ); + return webserviceMultiline.Replace("\n", Environment.NewLine); } /// <summary> @@ -55,9 +48,9 @@ /// </remarks> /// <param name="nativeMultiline"></param> /// <returns></returns> - public static string NativeMultilineToWebservice( string nativeMultiline ) + public static string NativeMultilineToWebservice(string nativeMultiline) { - return nativeMultiline.Replace( Environment.NewLine, "\n" ); + return nativeMultiline.Replace(Environment.NewLine, "\n"); } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vb...@us...> - 2009-10-10 00:52:23
|
Revision: 202 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=202&view=rev Author: vboctor Date: 2009-10-10 00:52:08 +0000 (Sat, 10 Oct 2009) Log Message: ----------- IssueGet now returns an empty array rather than null in case of issue note having notes. Added test cases for IssueUpdate with notes without changes, with updates notes, etc. Corresponding fixes went into 1.2.x branch after 1.2.0rc2 to fix the IssueUpdate including notes updates. Updated the test cases to delete the issues created by them. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs mantisconnect/trunk/clients/dotnet/mantisconnect/IssueNote.cs Modified: mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs 2009-10-06 06:43:28 UTC (rev 201) +++ mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs 2009-10-10 00:52:08 UTC (rev 202) @@ -54,14 +54,21 @@ int issueId = Session.Request.IssueAdd( issue ); - Issue issueToUpdate = Session.Request.IssueGet(issueId); - issueToUpdate.Summary = newSummary; - issueToUpdate.Description = newDescription; - Session.Request.IssueUpdate(issueToUpdate); + try + { + Issue issueToUpdate = Session.Request.IssueGet(issueId); + issueToUpdate.Summary = newSummary; + issueToUpdate.Description = newDescription; + Session.Request.IssueUpdate(issueToUpdate); - Issue updatedIssue = Session.Request.IssueGet(issueId); - Assert.AreEqual(newSummary, updatedIssue.Summary); - Assert.AreEqual(newDescription, updatedIssue.Description); + Issue updatedIssue = Session.Request.IssueGet(issueId); + Assert.AreEqual(newSummary, updatedIssue.Summary); + Assert.AreEqual(newDescription, updatedIssue.Description); + } + finally + { + Session.Request.IssueDelete(issueId); + } } [Test] @@ -85,18 +92,25 @@ int issueId = Session.Request.IssueAdd(issue); - Issue issueToUpdate = Session.Request.IssueGet(issueId); - issueToUpdate.Summary = newSummary; - issueToUpdate.Description = newDescription; - issueToUpdate.StepsToReproduce = issueToUpdate.StepsToReproduce + "2"; - issueToUpdate.AdditionalInformation = issueToUpdate.AdditionalInformation + "2"; - Session.Request.IssueUpdate(issueToUpdate); + try + { + Issue issueToUpdate = Session.Request.IssueGet(issueId); + issueToUpdate.Summary = newSummary; + issueToUpdate.Description = newDescription; + issueToUpdate.StepsToReproduce = issueToUpdate.StepsToReproduce + "2"; + issueToUpdate.AdditionalInformation = issueToUpdate.AdditionalInformation + "2"; + Session.Request.IssueUpdate(issueToUpdate); - Issue updatedIssue = Session.Request.IssueGet(issueId); - Assert.AreEqual(newSummary, updatedIssue.Summary); - Assert.AreEqual(newDescription, updatedIssue.Description); - Assert.AreEqual("additional2", updatedIssue.AdditionalInformation); - Assert.AreEqual("steps2", updatedIssue.StepsToReproduce); + Issue updatedIssue = Session.Request.IssueGet(issueId); + Assert.AreEqual(newSummary, updatedIssue.Summary); + Assert.AreEqual(newDescription, updatedIssue.Description); + Assert.AreEqual("additional2", updatedIssue.AdditionalInformation); + Assert.AreEqual("steps2", updatedIssue.StepsToReproduce); + } + finally + { + Session.Request.IssueDelete(issueId); + } } [Test] @@ -117,14 +131,22 @@ issue.Category = new ObjectRef(GetFirstCategory(projectId)); int issueId = Session.Request.IssueAdd(issue); - Issue issueAfterSubmit = Session.Request.IssueGet(issueId); - const string PartialFixComment = "This is a partial fix"; - Session.Request.IssueCheckin(issueId, PartialFixComment, false); - Issue issueAfterFirstCheckin = Session.Request.IssueGet(issueId); - Assert.AreEqual(issueAfterFirstCheckin.Status.Id, issueAfterSubmit.Status.Id); - Assert.AreEqual(issueAfterFirstCheckin.Notes.Length, 1); - Assert.AreEqual(issueAfterFirstCheckin.Notes[0].Text, PartialFixComment); + try + { + Issue issueAfterSubmit = Session.Request.IssueGet(issueId); + + const string PartialFixComment = "This is a partial fix"; + Session.Request.IssueCheckin(issueId, PartialFixComment, false); + Issue issueAfterFirstCheckin = Session.Request.IssueGet(issueId); + Assert.AreEqual(issueAfterFirstCheckin.Status.Id, issueAfterSubmit.Status.Id); + Assert.AreEqual(issueAfterFirstCheckin.Notes.Length, 1); + Assert.AreEqual(issueAfterFirstCheckin.Notes[0].Text, PartialFixComment); + } + finally + { + Session.Request.IssueDelete(issueId); + } } [Test] @@ -145,16 +167,137 @@ issue.Category = new ObjectRef(GetFirstCategory(projectId)); int issueId = Session.Request.IssueAdd(issue); - Issue issueAfterSubmit = Session.Request.IssueGet(issueId); - const string FullFixComment = "This is a full fix which resolves the issue"; - Session.Request.IssueCheckin(issueId, FullFixComment, true); - Issue issueAfterSecondCheckin = Session.Request.IssueGet(issueId); - Assert.AreEqual(issueAfterSecondCheckin.Notes.Length, 1); - Assert.AreEqual(issueAfterSecondCheckin.Notes[0].Text, FullFixComment); + try + { + Issue issueAfterSubmit = Session.Request.IssueGet(issueId); - // The status may or may not change depending on the Mantis configuration, - // hence we are not checking it. + const string FullFixComment = "This is a full fix which resolves the issue"; + Session.Request.IssueCheckin(issueId, FullFixComment, true); + Issue issueAfterSecondCheckin = Session.Request.IssueGet(issueId); + Assert.AreEqual(issueAfterSecondCheckin.Notes.Length, 1); + Assert.AreEqual(issueAfterSecondCheckin.Notes[0].Text, FullFixComment); + + // The status may or may not change depending on the Mantis configuration, + // hence we are not checking it. + } + finally + { + Session.Request.IssueDelete(issueId); + } } + + [Test] + public void IssueUpdateWithNotesNoChanges() + { + Issue issue = this.GetRandomIssue(); + int issueId = Session.Request.IssueAdd(issue); + + try + { + IssueNote note = this.GetRandomNote(); + Session.Request.IssueNoteAdd(issueId, note); + + Issue issueWithNote = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, issueWithNote.Notes.Length); + + Session.Request.IssueUpdate(issueWithNote); + + Issue issueWithNoteAfterUpdate = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, issueWithNoteAfterUpdate.Notes.Length); + Assert.AreEqual(note.Text, issueWithNoteAfterUpdate.Notes[0].Text); + } + finally + { + Session.Request.IssueDelete(issueId); + } + } + + [Test] + public void IssueUpdateToAddNotes() + { + Issue issue = this.GetRandomIssue(); + int issueId = Session.Request.IssueAdd(issue); + + try + { + issue = Session.Request.IssueGet(issueId); + + Assert.AreEqual(0, issue.Notes.Length); + + IssueNote note = this.GetRandomNote(); + issue.Notes = new IssueNote[1]; + issue.Notes[0] = note; + + Session.Request.IssueUpdate(issue); + + Issue issueWithNote = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, issueWithNote.Notes.Length); + Assert.AreEqual(note.Text, issueWithNote.Notes[0].Text); + } + finally + { + Session.Request.IssueDelete(issueId); + } + } + + [Test] + public void IssueUpdateToUpdateNotes() + { + Issue issue = this.GetRandomIssue(); + int issueId = Session.Request.IssueAdd(issue); + + IssueNote originalNote = this.GetRandomNote(); + int originalNoteId = Session.Request.IssueNoteAdd(issueId, originalNote); + + try + { + issue = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, issue.Notes.Length); + Assert.AreEqual(originalNoteId, issue.Notes[0].Id); + Assert.AreEqual(originalNote.Text, issue.Notes[0].Text); + + const string NewNoteText = "new note text"; + + issue.Notes[0].Text = NewNoteText; + + Session.Request.IssueUpdate(issue); + + Issue issueWithUpdatedNote = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, issueWithUpdatedNote.Notes.Length); + Assert.AreEqual(originalNoteId, issueWithUpdatedNote.Notes[0].Id); + Assert.AreEqual(NewNoteText, issueWithUpdatedNote.Notes[0].Text); + } + finally + { + Session.Request.IssueDelete(issueId); + } + } + + private Issue GetRandomIssue() + { + int projectId = FirstProjectId; + + Issue issue = new Issue(); + + issue.Project = new ObjectRef(projectId); + issue.Summary = this.GetRandomSummary(); + issue.Description = this.GetRandomDescription(); + issue.Category = new ObjectRef(this.GetFirstCategory(projectId)); + + return issue; + } + + private IssueNote GetRandomNote() + { + IssueNote note = new IssueNote(); + note.Text = String.Format("NoteText {0}", Guid.NewGuid().ToString()); + return note; + } } } Modified: mantisconnect/trunk/clients/dotnet/mantisconnect/IssueNote.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/mantisconnect/IssueNote.cs 2009-10-06 06:43:28 UTC (rev 201) +++ mantisconnect/trunk/clients/dotnet/mantisconnect/IssueNote.cs 2009-10-10 00:52:08 UTC (rev 202) @@ -70,7 +70,7 @@ internal static IssueNote[] ConvertArray( MantisConnectWebservice.IssueNoteData[] issueNotesData ) { if ( issueNotesData == null ) - return null; + return new IssueNote[0]; IssueNote[] notes = new IssueNote[issueNotesData.Length]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vb...@us...> - 2009-10-06 06:43:36
|
Revision: 201 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=201&view=rev Author: vboctor Date: 2009-10-06 06:43:28 +0000 (Tue, 06 Oct 2009) Log Message: ----------- Add attachments unit tests. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/UnitTests/MantisConnect.UnitTests.csproj Added Paths: ----------- mantisconnect/trunk/clients/dotnet/UnitTests/Attachments.cs Added: mantisconnect/trunk/clients/dotnet/UnitTests/Attachments.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/Attachments.cs (rev 0) +++ mantisconnect/trunk/clients/dotnet/UnitTests/Attachments.cs 2009-10-06 06:43:28 UTC (rev 201) @@ -0,0 +1,160 @@ +#region Copyright © 2004 Victor Boctor +// +// MantisConnect is copyrighted to Victor Boctor +// +// This program is distributed under the terms and conditions of the GPL +// See LICENSE file for details. +// +// For commercial applications to link with or modify MantisConnect, they require the +// purchase of a MantisConnect commerical license. +// +#endregion + +using System; +using System.Net; +using System.Web.Services.Protocols; + +using NUnit.Framework; + +namespace Futureware.MantisConnect.UnitTests +{ + /// <summary> + /// Summary description for Class1. + /// </summary> + [TestFixture] + public sealed class AttachmentTestCases : BaseTestFixture + { + [TestFixtureSetUp] + public void TestFixtureSetup() + { + Connect(); + } + + [TestFixtureTearDown] + public void TestFixtureTearDown() + { + } + + [Test] + public void AddBinaryAttachment() + { + int projectId = FirstProjectId; + + Issue issue = new Issue(); + issue.Project = new ObjectRef(projectId); + issue.Summary = GetRandomSummary(); + issue.Description = GetRandomDescription(); + issue.Category = new ObjectRef(GetFirstCategory(projectId)); + + int issueId = this.SubmitIssue(issue); + + Issue retrievedIssueBeforeAdd = Session.Request.IssueGet(issueId); + Assert.AreEqual(0, retrievedIssueBeforeAdd.Attachments.Length); + + byte[] attachment = CreateBinaryAttachment(1024); + byte[] base64 = Base64Encode(attachment); + + int attachmentId = Session.Request.IssueAttachmentAdd(issueId, "blah.mpg", "video/mpeg", base64); + + byte[] retrievedAttachment = Session.Request.IssueAttachmentGet(attachmentId); + + Assert.IsNotNull(retrievedAttachment); + Assert.AreEqual(attachment.Length, retrievedAttachment.Length); + + for (int i = 0; i < attachment.Length; ++i) + { + Assert.AreEqual(attachment[i], retrievedAttachment[i]); + } + + Issue retrievedIssueAfterAdd = Session.Request.IssueGet(issueId); + + Assert.AreEqual(1, retrievedIssueAfterAdd.Attachments.Length); + + Session.Request.IssueAttachmentDelete(attachmentId); + + Issue retrievedIssueAfterDelete = Session.Request.IssueGet(issueId); + Assert.AreEqual(0, retrievedIssueAfterDelete.Attachments.Length); + + Session.Request.IssueDelete(issueId); + } + + [Test] + public void AddTextAttachment() + { + int projectId = FirstProjectId; + + Issue issue = new Issue(); + issue.Project = new ObjectRef(projectId); + issue.Summary = GetRandomSummary(); + issue.Description = GetRandomDescription(); + issue.Category = new ObjectRef(GetFirstCategory(projectId)); + + int issueId = this.SubmitIssue(issue); + byte[] attachment = CreateTextAttachment(1024); + byte[] base64 = Base64Encode(attachment); + + int attachmentId = Session.Request.IssueAttachmentAdd(issueId, "sample.txt", "text/plain", base64); + + byte[] retrievedAttachment = Session.Request.IssueAttachmentGet(attachmentId); + + Assert.IsNotNull(retrievedAttachment); + Assert.AreEqual(attachment.Length, retrievedAttachment.Length); + + for (int i = 0; i < attachment.Length; ++i) + { + Assert.AreEqual(attachment[i], retrievedAttachment[i]); + } + + Session.Request.IssueDelete(issueId); + } + + private static byte[] Base64Encode(byte[] attachment) + { + string base64String = Convert.ToBase64String(attachment); + return System.Text.UTF8Encoding.ASCII.GetBytes(base64String); + } + + private static byte[] CreateTextAttachment(int size) + { + byte[] bytes = new byte[size]; + + for (int i = 0; i < size; ++i) + { + bytes[i] = (byte)(i % 32 + 65); + } + + return bytes; + } + + private static byte[] CreateBinaryAttachment(int size) + { + byte[] bytes = new byte[size]; + + for (int i = 0; i < size; ++i) + { + bytes[i] = (byte)(i % 255); + } + + return bytes; + } + + private int SubmitIssue(Issue issue) + { + int issueId = Session.Request.IssueAdd(issue); + if (issueId > 0) + { + Assert.IsTrue(Session.Request.IssueExists(issueId)); + Assert.AreEqual(issueId, Session.Request.IssueGetLastId(issue.Project.Id)); + Assert.AreEqual(issueId, Session.Request.IssueGetIdFromSummary(issue.Summary)); + } + + return issueId; + } + + private void DeleteIssue(int issueId) + { + Session.Request.IssueDelete(issueId); + Assert.IsFalse(Session.Request.IssueExists(issueId)); + } + } +} Modified: mantisconnect/trunk/clients/dotnet/UnitTests/MantisConnect.UnitTests.csproj =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/MantisConnect.UnitTests.csproj 2009-10-05 06:45:31 UTC (rev 200) +++ mantisconnect/trunk/clients/dotnet/UnitTests/MantisConnect.UnitTests.csproj 2009-10-06 06:43:28 UTC (rev 201) @@ -1,7 +1,7 @@ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <ProjectType>Local</ProjectType> - <ProductVersion>8.0.50727</ProductVersion> + <ProductVersion>9.0.30729</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{007994C8-29E4-4C9C-AF10-9DA4FBBB83E8}</ProjectGuid> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> @@ -27,6 +27,21 @@ <UpgradeBackupLocation> </UpgradeBackupLocation> <OldToolsVersion>2.0</OldToolsVersion> + <PublishUrl>publish\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <ApplicationRevision>0</ApplicationRevision> + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> + <IsWebBootstrapper>false</IsWebBootstrapper> + <UseApplicationTrust>false</UseApplicationTrust> + <BootstrapperEnabled>true</BootstrapperEnabled> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <OutputPath>bin\Debug\</OutputPath> @@ -107,6 +122,7 @@ <Compile Include="AssemblyInfo.cs"> <SubType>Code</SubType> </Compile> + <Compile Include="Attachments.cs" /> <Compile Include="BaseTestFixture.cs"> <SubType>Code</SubType> </Compile> @@ -141,6 +157,33 @@ <SubType>Code</SubType> </Compile> </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>false</Install> + </BootstrapperPackage> + </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup> <PreBuildEvent> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vb...@us...> - 2009-10-05 06:45:46
|
Revision: 200 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=200&view=rev Author: vboctor Date: 2009-10-05 06:45:31 +0000 (Mon, 05 Oct 2009) Log Message: ----------- Test case to test bug #10845 in the MantisBT official bug tracker. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/UnitTests/SubmitIssues.cs mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs Modified: mantisconnect/trunk/clients/dotnet/UnitTests/SubmitIssues.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/SubmitIssues.cs 2009-10-05 06:27:04 UTC (rev 199) +++ mantisconnect/trunk/clients/dotnet/UnitTests/SubmitIssues.cs 2009-10-05 06:45:31 UTC (rev 200) @@ -124,6 +124,8 @@ [Test] public void SubmitIssueAndCheckIt() { + const string StepsToRepro = "steps"; + const string AdditionalInfo = "additional"; int projectId = FirstProjectId; Issue issue = new Issue(); @@ -131,6 +133,8 @@ issue.Summary = GetRandomSummary(); issue.Description = GetRandomDescription(); issue.Category = new ObjectRef( GetFirstCategory( projectId ) ); + issue.StepsToReproduce = StepsToRepro; + issue.AdditionalInformation = AdditionalInfo; int issueId = Session.Request.IssueAdd( issue ); @@ -149,9 +153,9 @@ Assert.IsTrue( issueRet.Reproducibility.Id != 0 ); Assert.IsTrue( issueRet.Projection.Id != 0 ); Assert.IsTrue( issueRet.Eta.Id != 0 ); - Assert.IsTrue( issueRet.AdditionalInformation.Length == 0 ); - Assert.IsTrue( issueRet.StepsToReproduce.Length == 0 ); - Assert.IsTrue( issueRet.Platform.Length == 0 ); + Assert.AreEqual(StepsToRepro, issueRet.StepsToReproduce); + Assert.AreEqual(AdditionalInfo, issueRet.AdditionalInformation); + Assert.IsTrue(issueRet.Platform.Length == 0); Assert.IsTrue( issueRet.Os.Length == 0 ); Assert.IsTrue( issueRet.OsBuild.Length == 0 ); Assert.IsTrue( issueRet.FixedInVersion.Length == 0 ); Modified: mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs 2009-10-05 06:27:04 UTC (rev 199) +++ mantisconnect/trunk/clients/dotnet/UnitTests/UpdateIssues.cs 2009-10-05 06:45:31 UTC (rev 200) @@ -65,6 +65,41 @@ } [Test] + public void UpdateIssueStepsAndAdditional() + { + int projectId = FirstProjectId; + + string originalSummary = GetRandomSummary(); + string newSummary = GetRandomSummary(); + + string originalDescription = GetRandomDescription(); + string newDescription = GetRandomDescription(); + + Issue issue = new Issue(); + issue.Project = new ObjectRef(projectId); + issue.Summary = originalSummary; + issue.Description = originalDescription; + issue.Category = new ObjectRef(GetFirstCategory(projectId)); + issue.AdditionalInformation = "additional"; + issue.StepsToReproduce = "steps"; + + int issueId = Session.Request.IssueAdd(issue); + + Issue issueToUpdate = Session.Request.IssueGet(issueId); + issueToUpdate.Summary = newSummary; + issueToUpdate.Description = newDescription; + issueToUpdate.StepsToReproduce = issueToUpdate.StepsToReproduce + "2"; + issueToUpdate.AdditionalInformation = issueToUpdate.AdditionalInformation + "2"; + Session.Request.IssueUpdate(issueToUpdate); + + Issue updatedIssue = Session.Request.IssueGet(issueId); + Assert.AreEqual(newSummary, updatedIssue.Summary); + Assert.AreEqual(newDescription, updatedIssue.Description); + Assert.AreEqual("additional2", updatedIssue.AdditionalInformation); + Assert.AreEqual("steps2", updatedIssue.StepsToReproduce); + } + + [Test] public void IssueCheckinNotFixed() { int projectId = FirstProjectId; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vb...@us...> - 2009-10-05 06:27:16
|
Revision: 199 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=199&view=rev Author: vboctor Date: 2009-10-05 06:27:04 +0000 (Mon, 05 Oct 2009) Log Message: ----------- Fixes to get unit tests passing. Modified Paths: -------------- mantisconnect/trunk/clients/dotnet/UnitTests/BaseTestFixture.cs mantisconnect/trunk/clients/dotnet/mantisconnect/Attachment.cs Modified: mantisconnect/trunk/clients/dotnet/UnitTests/BaseTestFixture.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/UnitTests/BaseTestFixture.cs 2009-10-05 04:13:06 UTC (rev 198) +++ mantisconnect/trunk/clients/dotnet/UnitTests/BaseTestFixture.cs 2009-10-05 06:27:04 UTC (rev 199) @@ -34,7 +34,7 @@ protected string Url { - get { return "http://localhost:8008/mantisbt/api/soap/mantisconnect.php"; } + get { return "http://127.0.0.1/mantisbt/api/soap/mantisconnect.php"; } } protected void Connect() Modified: mantisconnect/trunk/clients/dotnet/mantisconnect/Attachment.cs =================================================================== --- mantisconnect/trunk/clients/dotnet/mantisconnect/Attachment.cs 2009-10-05 04:13:06 UTC (rev 198) +++ mantisconnect/trunk/clients/dotnet/mantisconnect/Attachment.cs 2009-10-05 06:27:04 UTC (rev 199) @@ -18,8 +18,8 @@ /// A class that manages the information about an attachment. The class does not manage /// the attachment itself. /// </summary> - [Serializable] - public class Attachment + [Serializable] + public class Attachment { /// <summary> /// Constructor @@ -43,6 +43,11 @@ /// <returns>Array of Attachment instances.</returns> internal static Attachment[] ConvertArray( MantisConnectWebservice.AttachmentData[] attachmentData ) { + if (attachmentData == null) + { + return new Attachment[0]; + } + Attachment[] attachments = new Attachment[attachmentData.Length]; for ( int i = 0; i < attachmentData.Length; ++i ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-07-14 07:38:03
|
Revision: 197 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=197&view=rev Author: planser Date: 2008-07-14 00:37:55 -0700 (Mon, 14 Jul 2008) Log Message: ----------- Added possibility to paste attachments from clipboard Modified Paths: -------------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/DefaultSubmitter.java mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages.properties mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages_de.properties mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/AttachmentsPart.java mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/GeneralPart.java mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/IssueSubmitFrame.java Added Paths: ----------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/icons/paste-16.png mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ByteArrayIssueAttachment.java mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ILocalIssueAttachment.java mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/LocalFileIssueAttachment.java Added: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/icons/paste-16.png =================================================================== (Binary files differ) Property changes on: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/icons/paste-16.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ByteArrayIssueAttachment.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ByteArrayIssueAttachment.java (rev 0) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ByteArrayIssueAttachment.java 2008-07-14 07:37:55 UTC (rev 197) @@ -0,0 +1,72 @@ +/* + * Copyright 2008 Peter Lanser. + * + * MantisConnect is copyrighted to Victor Boctor. + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program. + * If not, see http://www.gnu.org/licenses/. + */ +package org.mantisbt.connect.ui; + +import java.io.IOException; +import java.util.Date; + +import org.apache.axis.types.URI; + +/** + * @author Peter Lanser, pl...@us... + */ +public class ByteArrayIssueAttachment implements ILocalIssueAttachment { + + private byte[] data; + + private String filename; + + private String contentType; + + public ByteArrayIssueAttachment(byte[] data, String filename, String contentType) { + this.data = data; + this.filename = filename; + this.contentType = contentType; + } + + public byte[] getData() throws IOException { + return data; + } + + public String getContentType() { + return contentType; + } + + public Date getDateSubmitted() { + return null; + } + + public URI getDownloadUri() { + return null; + } + + public String getFilename() { + return filename; + } + + public long getId() { + return 0; + } + + public long getSize() { + return data.length; + } + +} Property changes on: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ByteArrayIssueAttachment.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/DefaultSubmitter.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/DefaultSubmitter.java 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/DefaultSubmitter.java 2008-07-14 07:37:55 UTC (rev 197) @@ -70,13 +70,29 @@ return addAttachment(session, issueId, data, filename); } catch (IOException e) { throw new MCException(e); - } + } } public long submitAttachment(IMCSession session, long issueId, IIssueAttachment attachment) throws MCException { - return submitAttachment(session, issueId, new File(attachment.getFilename())); + if (attachment instanceof ILocalIssueAttachment) { + try { + byte[] data = ((ILocalIssueAttachment) attachment).getData(); + String filename = null; + if (doCompress(attachment.getFilename())) { + filename = getCompressedFilename(attachment.getFilename()); + data = compress(data, attachment.getFilename()); + } else { + filename = attachment.getFilename(); + } + return addAttachment(session, issueId, data, filename); + } catch (IOException e) { + throw new MCException(e); + } + } else { + return submitAttachment(session, issueId, new File(attachment.getFilename())); + } } - + protected long addAttachment(IMCSession session, long issueId, byte[] data, String filename) throws MCException { return session.addIssueAttachment(issueId, filename, Utilities @@ -94,17 +110,26 @@ } protected String getCompressedFilename(File file) { - String filename; - filename = file.getName() + ".zip"; - return filename; + return getCompressedFilename(file.getName()); } + + protected String getCompressedFilename(String filename) { + return filename + ".zip"; + } public boolean doCompress(File file) { return (!isCompressed(file) && compressAttachments); } + + public boolean doCompress(String filename) { + return (!isCompressed(filename) && compressAttachments); + } protected boolean isCompressed(File file) { - String filename = file.getName(); + return isCompressed(file.getName()); + } + + protected boolean isCompressed(String filename) { int lastSeparator = filename.lastIndexOf('.'); if (lastSeparator > 0 && lastSeparator < filename.length()) { String type = filename.substring(lastSeparator + 1).toLowerCase(); Added: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ILocalIssueAttachment.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ILocalIssueAttachment.java (rev 0) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ILocalIssueAttachment.java 2008-07-14 07:37:55 UTC (rev 197) @@ -0,0 +1,33 @@ +/* + * Copyright 2008 Peter Lanser. + * + * MantisConnect is copyrighted to Victor Boctor. + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program. + * If not, see http://www.gnu.org/licenses/. + */ +package org.mantisbt.connect.ui; + +import java.io.IOException; + +import org.mantisbt.connect.model.IIssueAttachment; + +/** + * @author Peter Lanser, pl...@us... + */ +public interface ILocalIssueAttachment extends IIssueAttachment { + + public byte[] getData() throws IOException; + +} Property changes on: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/ILocalIssueAttachment.java ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/LocalFileIssueAttachment.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/LocalFileIssueAttachment.java (rev 0) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/LocalFileIssueAttachment.java 2008-07-14 07:37:55 UTC (rev 197) @@ -0,0 +1,68 @@ +/* + * Copyright 2008 Peter Lanser. + * + * MantisConnect is copyrighted to Victor Boctor. + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program. + * If not, see http://www.gnu.org/licenses/. + */ +package org.mantisbt.connect.ui; + +import java.io.File; +import java.io.IOException; +import java.util.Date; + +import org.apache.axis.types.URI; +import org.mantisbt.connect.Utilities; + +/** + * @author Peter Lanser, pl...@us... + */ +public class LocalFileIssueAttachment implements ILocalIssueAttachment { + + private File file; + + public LocalFileIssueAttachment(File file) { + this.file = file; + } + + public byte[] getData() throws IOException { + return Utilities.readFile(file); + } + + public String getContentType() { + return Utilities.getMimeType(file); + } + + public Date getDateSubmitted() { + return null; + } + + public URI getDownloadUri() { + return null; + } + + public String getFilename() { + return file.getName(); + } + + public long getId() { + return 0; + } + + public long getSize() { + return file.length(); + } + +} Property changes on: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/LocalFileIssueAttachment.java ___________________________________________________________________ Name: svn:mime-type + text/plain Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages.properties =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages.properties 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages.properties 2008-07-14 07:37:55 UTC (rev 197) @@ -42,7 +42,13 @@ AttachmentsPart.Title=Attachments AttachmentsPart.Button.Add=Add AttachmentsPart.Button.Remove=Remove +AttachmentsPart.Button.Clipboard=Paste AttachmentsPart.Message.WillBeCompressed=(will be compressed) +AttachmentsPart.Message.Clipboard.Text=The contents from the clipboard will be treated as text.\nPlease provide an appropriate filename for the attachment. +AttachmentsPart.Message.Clipboard.Image=The contents from the clipboard will be treated as an image.\nPlease provide an appropriate filename for the attachment. +AttachmentsPart.Message.NoValidData=Cannot paste contents from clipboard.\nOnly text an images can be pasted. +AttachmentsPart.Message.InvalidName=The provided name is not valid. +AttachmentsPart.Message.AttachmentExists=An attachment with this name already exists. IssueSubmitPanel.Message.IssueAdded=Issue was added successfully. IssueSubmitPanel.Message.LoadingInitialData=Loading initial data Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages_de.properties =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages_de.properties 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/messages_de.properties 2008-07-14 07:37:55 UTC (rev 197) @@ -41,7 +41,13 @@ AttachmentsPart.Title=Anlagen AttachmentsPart.Button.Add=Hinzuf\xFCgen AttachmentsPart.Button.Remove=Entfernen +AttachmentsPart.Button.Clipboard=Einf\xFCgen AttachmentsPart.Message.WillBeCompressed=(wird komprimiert) +AttachmentsPart.Message.Clipboard.Text=Der Inhalt der Zwischenablage wird als Text behandelt.\nBitte geben sie einen entsprechenden Dateinamen f\xFCr die Anlage an. +AttachmentsPart.Message.Clipboard.Image=Der Inhalt der Zwischenablage wird als Bild behandelt.\nBitte geben sie einen entsprechenden Dateinamen f\xFCr die Anlage an. +AttachmentsPart.Message.NoValidData=Der Inhalt der Zwischenablage kann nicht eingef\xFCgt werden.\nEs muss sich um Text oder um ein Bild handeln. +AttachmentsPart.Message.InvalidName=Der angegebene Name ist ung\xFCltig. +AttachmentsPart.Message.AttachmentExists=Es existiert bereits eine Anlage mit diesem Namen. IssueSubmitPanel.Message.IssueAdded=Das Problem wurde erfolgreich hinzugef\xFCgt. IssueSubmitPanel.Message.LoadingInitialData=Lade initiale Daten Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/AttachmentsPart.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/AttachmentsPart.java 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/AttachmentsPart.java 2008-07-14 07:37:55 UTC (rev 197) @@ -23,24 +23,34 @@ import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; +import java.awt.Toolkit; +import java.awt.datatransfer.Clipboard; +import java.awt.datatransfer.DataFlavor; +import java.awt.datatransfer.Transferable; import java.awt.event.ActionEvent; +import java.awt.image.RenderedImage; +import java.io.ByteArrayOutputStream; import java.io.File; import java.util.ArrayList; import java.util.List; +import javax.imageio.ImageIO; import javax.swing.AbstractAction; import javax.swing.DefaultListCellRenderer; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JFileChooser; import javax.swing.JList; +import javax.swing.JOptionPane; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; +import org.mantisbt.connect.Utilities; import org.mantisbt.connect.model.IIssue; import org.mantisbt.connect.model.IIssueAttachment; -import org.mantisbt.connect.model.IssueAttachment; +import org.mantisbt.connect.ui.ByteArrayIssueAttachment; import org.mantisbt.connect.ui.ISubmitter; +import org.mantisbt.connect.ui.LocalFileIssueAttachment; import org.mantisbt.connect.ui.Messages; /** @@ -55,7 +65,7 @@ protected JList attachments; private ISubmitter submitter; - + public AttachmentsPart(Component parent, ISubmitter submitter) { super(parent); this.submitter = submitter; @@ -68,20 +78,16 @@ this.setLayout(gb); // list c.fill = GridBagConstraints.BOTH; - c.gridx = 0; - c.gridy = 0; - c.gridheight = 2; - c.weightx = 1; - c.weighty = 1; + c.gridx = 0; c.gridy = 0; + c.gridheight = 3; + c.weightx = 1; c.weighty = 1; attachments = makeList(this, gb, c, new AttachmentRenderer()); // add button c.anchor = GridBagConstraints.NORTH; c.fill = GridBagConstraints.HORIZONTAL; - c.gridx = 1; - c.gridy = 0; + c.gridx = 1; c.gridy = 0; c.gridheight = 1; - c.weightx = 0; - c.weighty = 0; + c.weightx = 0; c.weighty = 0; makeButton(this, new AddAttachmentAction(), gb, c); // remove button c.gridy = 1; @@ -92,7 +98,9 @@ remove.setEnabled(attachments.getSelectedIndex() >= 0); } }); - + // paste button + c.gridy = 2; + makeButton(this, new AddClipboardContentsAction(), gb, c); } public void commit(IIssue issue) { @@ -131,7 +139,107 @@ protected ISubmitter getSubmitter() { return submitter; } + + protected String getInitialFileName(String prefix, String suffix) { + int counter = 1; + while (attachmentExists(prefix + counter + suffix)) { + counter += 1; + } + return prefix + counter + suffix; + } + + public boolean attachmentExists(String filename) { + DefaultListModel model = (DefaultListModel) attachments.getModel(); + for (int i = 0; i < model.getSize(); i++) { + if (((IIssueAttachment) model.getElementAt(i)).getFilename().equals(filename)) { + return true; + } + } + return false; + } + + public void addAttachment(IIssueAttachment attachment) { + ((DefaultListModel) attachments.getModel()).addElement(attachment); + } + protected boolean isValidFilename(String filename) { + return filename.indexOf('.') > 0; + } + + protected boolean hasSuffix(String filename, String suffix) { + return filename.length() > suffix.length() + && filename.substring(filename.length() - suffix.length()) + .equalsIgnoreCase(suffix); + } + + private class AddClipboardContentsAction extends AbstractAction { + + private static final long serialVersionUID = 4555789380983118942L; + + public AddClipboardContentsAction() { + super( + Messages.getString("AttachmentsPart.Button.Clipboard"), SwingUtilities.loadImageIcon("icons/paste-16.png")); //$NON-NLS-1$ //$NON-NLS-2$ + } + + public void actionPerformed(ActionEvent event) { + Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); + Transferable contents = clipboard.getContents(null); + try { + if (contents != null) { + String message = null; + String initialSelection = null; + String suffix = null; + byte[] data = null; + if (contents.isDataFlavorSupported(DataFlavor.stringFlavor)) { + message = Messages.getString("AttachmentsPart.Message.Clipboard.Text"); //$NON-NLS-1$ + initialSelection = getInitialTextName(); + suffix = ".txt"; + data = ((String) contents.getTransferData(DataFlavor.stringFlavor)).getBytes(); + } else if (contents.isDataFlavorSupported(DataFlavor.imageFlavor)) { + message = Messages.getString("AttachmentsPart.Message.Clipboard.Image"); //$NON-NLS-1$ + initialSelection = getInitialImageName(); + suffix = ".png"; + RenderedImage image = (RenderedImage) contents.getTransferData(DataFlavor.imageFlavor); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ImageIO.write(image, "png", baos); + data = baos.toByteArray(); + } else { + SwingUtilities.showInfo(getOwner(), Messages.getString("AttachmentsPart.Message.NoValidData")); //$NON-NLS-1$ + return; + } + String filename = JOptionPane.showInputDialog(getOwner(), message, initialSelection); + if (filename != null) { + filename = filename.trim(); + if (! hasSuffix(filename, suffix)) { + filename += suffix; + } + if (! isValidFilename(filename)) { + SwingUtilities.showError(getOwner(), Messages.getString("AttachmentsPart.Message.InvalidName")); //$NON-NLS-1$ + return; + } + if (attachmentExists(filename)) { + SwingUtilities.showError(getOwner(), Messages.getString("AttachmentsPart.Message.AttachmentExists")); //$NON-NLS-1$ + } else if (filename != null) { + ByteArrayIssueAttachment attachment = new ByteArrayIssueAttachment(data, filename, Utilities.getMimeType(filename)); + addAttachment(attachment); + } + } + } + } catch (Exception e) { + SwingUtilities.showError(getOwner(), e.getMessage()); + } + } + + private String getInitialImageName() { + return getInitialFileName("Image", ".png"); + } + + private String getInitialTextName() { + return getInitialFileName("Text", ".txt"); + } + + } + private class AddAttachmentAction extends AbstractAction { private static final long serialVersionUID = -969508350501534323L; @@ -144,11 +252,11 @@ public void actionPerformed(ActionEvent arg0) { JFileChooser chooser = getFileChooser(); if (chooser.showOpenDialog(getOwner()) == JFileChooser.APPROVE_OPTION) { - DefaultListModel model = (DefaultListModel) attachments.getModel(); - IssueAttachment attachment = new IssueAttachment(); - attachment.setFilename(chooser.getSelectedFile().toString()); - if (!model.contains(attachment)) { - ((DefaultListModel) attachments.getModel()).addElement(attachment); + if (! attachmentExists(chooser.getSelectedFile().getName())) { + LocalFileIssueAttachment attachment = new LocalFileIssueAttachment(chooser.getSelectedFile()); + addAttachment(attachment); + } else { + SwingUtilities.showError(getOwner(), Messages.getString("AttachmentsPart.Message.AttachmentExists")); //$NON-NLS-1$ } } } Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/GeneralPart.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/GeneralPart.java 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/GeneralPart.java 2008-07-14 07:37:55 UTC (rev 197) @@ -47,6 +47,8 @@ public class GeneralPart extends AbstractIssueUiPart { private static final long serialVersionUID = 3180009603418066347L; + + private static String NO_VERSION = ""; protected JComboBox project; @@ -228,7 +230,11 @@ public void commit(IIssue issue) { issue.setProject((IMCAttribute) project.getSelectedItem()); issue.setCategory((String) category.getSelectedItem()); - issue.setVersion((String) version.getSelectedItem()); + if (version.getSelectedIndex() == 0) { + issue.setVersion(null); + } else { + issue.setVersion((String) version.getSelectedItem()); + } issue.setReproducibility((IMCAttribute) reproducibility.getSelectedItem()); issue.setSeverity((IMCAttribute) severity.getSelectedItem()); issue.setPriority((IMCAttribute) priority.getSelectedItem()); @@ -335,6 +341,7 @@ IProjectVersion[] versions = getSession().getReleasedVersions( selection.getId()); if (versions != null) { + version.addItem(NO_VERSION); for (int i = 0; i < versions.length; i++) { version.addItem(versions[i].getName()); } Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/IssueSubmitFrame.java =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/IssueSubmitFrame.java 2008-05-31 15:29:23 UTC (rev 196) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/src/main/org/mantisbt/connect/ui/swing/IssueSubmitFrame.java 2008-07-14 07:37:55 UTC (rev 197) @@ -25,6 +25,8 @@ import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; import javax.swing.AbstractAction; import javax.swing.Action; @@ -206,6 +208,11 @@ frame = new IssueSubmitFrame(); } frame.setVisible(true); + frame.addWindowListener(new WindowAdapter() { + public void windowClosed(WindowEvent e) { + System.exit(0); + } + }); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-05-31 15:30:07
|
Revision: 196 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=196&view=rev Author: planser Date: 2008-05-31 08:29:23 -0700 (Sat, 31 May 2008) Log Message: ----------- Updating version info Modified Paths: -------------- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml Modified: mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml =================================================================== --- mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2008-02-01 17:36:06 UTC (rev 195) +++ mantisconnect/branches/clients/java/client-api/REL_BRANCH_1_1_1_0/build.xml 2008-05-31 15:29:23 UTC (rev 196) @@ -2,7 +2,7 @@ <project name="MantisConnect-Client" default="dist" basedir="."> <property name="dist.target" location="dist"/> - <property name="dist.version" value="1.1.1.0"/> + <property name="dist.version" value="1.1.1.1-SVN"/> <property name="dist.name" value="mantisconnect-client-api-${dist.version}"/> <property name="dist.dir" location="${dist.target}/${dist.name}"/> <property name="dist.src.dir" location="${dist.dir}/src"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:36:25
|
Revision: 195 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=195&view=rev Author: planser Date: 2008-02-01 09:36:06 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Release 1.1.1.0 Added Paths: ----------- mantisconnect/tags/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_1_1_1_0/ Copied: mantisconnect/tags/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_1_1_1_0 (from rev 194, mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:34:48
|
Revision: 194 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=194&view=rev Author: planser Date: 2008-02-01 09:34:46 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Prepare for release 1.1.1.0 Added Paths: ----------- mantisconnect/tags/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:33:32
|
Revision: 193 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=193&view=rev Author: planser Date: 2008-02-01 09:33:27 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Added "feature" to the resulting zip file. Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml 2008-02-01 17:32:03 UTC (rev 192) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml 2008-02-01 17:33:27 UTC (rev 193) @@ -57,7 +57,7 @@ </fileset> </copy> <mkdir dir="${dist.dir}"/> - <zip basedir="${dist.temp.dir}" destfile="${dist.dir}/org.mantisbt.connect.eclipse_${feature.version}.zip"/> + <zip basedir="${dist.temp.dir}" destfile="${dist.dir}/org.mantisbt.connect.eclipse-feature_${feature.version}.zip"/> <delete dir="${dist.temp.dir}"/> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:32:08
|
Revision: 192 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=192&view=rev Author: planser Date: 2008-02-01 09:32:03 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Added "feature" to the resulting zip file. Modified Paths: -------------- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml Modified: mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml =================================================================== --- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml 2008-02-01 17:22:26 UTC (rev 191) +++ mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml 2008-02-01 17:32:03 UTC (rev 192) @@ -57,7 +57,7 @@ </fileset> </copy> <mkdir dir="${dist.dir}"/> - <zip basedir="${dist.temp.dir}" destfile="${dist.dir}/org.mantisbt.connect.eclipse_${feature.version}.zip"/> + <zip basedir="${dist.temp.dir}" destfile="${dist.dir}/org.mantisbt.connect.eclipse-feature_${feature.version}.zip"/> <delete dir="${dist.temp.dir}"/> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:22:29
|
Revision: 191 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=191&view=rev Author: planser Date: 2008-02-01 09:22:26 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Prepare for release 1.1.1.0 Modified Paths: -------------- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/feature.xml Modified: mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml =================================================================== --- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml 2008-02-01 17:20:59 UTC (rev 190) +++ mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/build.xml 2008-02-01 17:22:26 UTC (rev 191) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <project name="org.mantisbt.connect.eclipse_feature" default="build.feature" basedir="."> - <property name="feature.version" value="1.1.2.0-SVN"/> + <property name="feature.version" value="1.1.1.0"/> <target name="init"> <property file="feature.properties"/> Modified: mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/feature.xml =================================================================== --- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/feature.xml 2008-02-01 17:20:59 UTC (rev 190) +++ mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/feature.xml 2008-02-01 17:22:26 UTC (rev 191) @@ -2,7 +2,7 @@ <feature id="org.mantisbt.connect.eclipse" label="MantisConnect" - version="1.1.2.0-SVN" + version="1.1.1.0" provider-name="Peter Lanser"> <description url="http://www.futureware.biz/mantisconnect"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:21:05
|
Revision: 190 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=190&view=rev Author: planser Date: 2008-02-01 09:20:59 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Prepare for release 1.1.1.0 Added Paths: ----------- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0/ Copied: mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/REL_BRANCH_1_1_1_0 (from rev 189, mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:19:50
|
Revision: 189 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=189&view=rev Author: planser Date: 2008-02-01 09:19:47 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Updated version info Modified Paths: -------------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml 2008-02-01 17:19:01 UTC (rev 188) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml 2008-02-01 17:19:47 UTC (rev 189) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <project name="org.mantisbt.connect.eclipse_feature" default="build.feature" basedir="."> - <property name="feature.version" value="1.1.1.0-SVN"/> + <property name="feature.version" value="1.1.2.0-SVN"/> <target name="init"> <property file="feature.properties"/> Modified: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml 2008-02-01 17:19:01 UTC (rev 188) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml 2008-02-01 17:19:47 UTC (rev 189) @@ -2,7 +2,7 @@ <feature id="org.mantisbt.connect.eclipse" label="MantisConnect" - version="1.1.1.0-SVN" + version="1.1.2.0-SVN" provider-name="Peter Lanser"> <description url="http://www.futureware.biz/mantisconnect"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:19:06
|
Revision: 188 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=188&view=rev Author: planser Date: 2008-02-01 09:19:01 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Prepare for release 1.1.1.0 Added Paths: ----------- mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:17:32
|
Revision: 187 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=187&view=rev Author: planser Date: 2008-02-01 09:17:10 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/.project mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/NOTICE.txt mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.properties mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/license.html Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/.project =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/.project (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/.project 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.mantisbt.connect.eclipse-feature</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.pde.FeatureBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.FeatureNature</nature> + </natures> +</projectDescription> Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/.project ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/NOTICE.txt =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/NOTICE.txt (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/NOTICE.txt 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,7 @@ +===================================================================== +== NOTICE file corresponding to section 4 d of the Apache License, == +== Version 2.0 == +===================================================================== + +This product includes software developed by +the Apache Software Foundation (http://www.apache.org). \ No newline at end of file Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/NOTICE.txt ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.properties =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.properties (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.properties 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,3 @@ +bin.includes = feature.xml,\ + license.html +custom = true Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="org.mantisbt.connect.eclipse_feature" default="build.feature" basedir="."> + + <property name="feature.version" value="1.1.1.0-SVN"/> + + <target name="init"> + <property file="feature.properties"/> + <property name="dist.dir" value="${basedir}/dist"/> + <property name="dist.temp.dir" value="${basedir}/dist.temp"/> + <property name="plugins.dist.temp.dir" value="${dist.temp.dir}/plugins"/> + <property name="feature.dist.temp.dir" value="${dist.temp.dir}/features/org.mantisbt.connect.eclipse_${feature.version}"/> + + <property name="core.plugin.dir" value="../org.mantisbt.connect.eclipse/"/> + <property name="core.plugin.buildfile" value="${core.plugin.dir}/build.xml"/> + <property name="core.plugin.temp" value="${basedir}/temp/org.mantisbt.connect.eclipse"/> + <property name="core.plugin.build.temp" value="${basedir}/build.temp/org.mantisbt.connect.eclipse"/> + + <property name="tt.plugin.dir" value="../at.twotoned.testplugin/"/> + <property name="tt.plugin.buildfile" value="${tt.plugin.dir}/build.xml"/> + <property name="tt.plugin.temp" value="${basedir}/temp/at.twotoned.testplugin"/> + <property name="tt.plugin.build.temp" value="${basedir}/build.temp/at.twotoned.testplugin"/> + </target> + + <target name="build.core.plugin" depends="init"> + <ant antfile="${core.plugin.buildfile}" target="clean" dir="${core.plugin.dir}"> + <property name="build.result.folder" value="${core.plugin.build.temp}"/> + <property name="temp.folder" value="${core.plugin.temp}"/> + </ant> + <ant antfile="${core.plugin.buildfile}" target="build.jars" dir="${core.plugin.dir}"> + <property name="build.result.folder" value="${core.plugin.build.temp}"/> + <property name="temp.folder" value="${core.plugin.temp}"/> + </ant> + <ant antfile="${core.plugin.buildfile}" target="build.sources" dir="${core.plugin.dir}"> + <property name="build.result.folder" value="${core.plugin.build.temp}"/> + <property name="temp.folder" value="${core.plugin.temp}"/> + </ant> + <ant antfile="${core.plugin.buildfile}" target="gather.bin.parts" dir="${core.plugin.dir}"> + <property name="build.result.folder" value="${core.plugin.build.temp}"/> + <property name="destination.temp.folder" value="${plugins.dist.temp.dir}"/> + <property name="temp.folder" value="${core.plugin.temp}"/> + </ant> + <ant antfile="${core.plugin.buildfile}" target="gather.sources" dir="${core.plugin.dir}"> + <property name="build.result.folder" value="${core.plugin.build.temp}"/> + <property name="destination.temp.folder" value="${plugins.dist.temp.dir}"/> + <property name="temp.folder" value="${core.plugin.temp}"/> + </ant> + <delete dir="${core.plugin.build.temp}"/> + <delete dir="${core.plugin.temp}"/> + </target> + + <target name="build.feature" depends="init, build.core.plugin"> + <mkdir dir="${feature.dist.temp.dir}"/> + <copy todir="${feature.dist.temp.dir}"> + <fileset dir="${basedir}"> + <include name="feature.xml"/> + <include name="license.html"/> + </fileset> + </copy> + <mkdir dir="${dist.dir}"/> + <zip basedir="${dist.temp.dir}" destfile="${dist.dir}/org.mantisbt.connect.eclipse_${feature.version}.zip"/> + <delete dir="${dist.temp.dir}"/> + </target> + +</project> Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/build.xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,312 @@ +<?xml version="1.0" encoding="UTF-8"?> +<feature + id="org.mantisbt.connect.eclipse" + label="MantisConnect" + version="1.1.1.0-SVN" + provider-name="Peter Lanser"> + + <description url="http://www.futureware.biz/mantisconnect"> + An Eclipse plugin which can be used to list, add and edit issues +of a Mantis site. + </description> + + <copyright> + Copyright 2008 Peter Lanser. +MantisConnect is copyrighted to Victor Boctor. + </copyright> + + <license url="license.html"> + Eclipse Public License - v 1.0 +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS +ECLIPSE +PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION +OF +THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. +1. DEFINITIONS +"Contribution" means: +a) in the case of the initial Contributor, the initial code and +documentation distributed under this Agreement, and +b) in the case of each subsequent Contributor: +i) changes to the Program, and +ii) additions to the Program; +where such changes and/or additions to the Program originate +from and +are distributed by that particular Contributor. A Contribution +' +originates' from a Contributor if it was added to the Program +by such +Contributor itself or anyone acting on such Contributor's behalf. +Contributions do not include additions to the Program which: +(i) are +separate modules of software distributed in conjunction with +the Program +under their own license agreement, and (ii) are not derivative +works of +the Program. +"Contributor" means any person or entity that distributes the +Program. +"Licensed Patents " mean patent claims licensable by a Contributor +which +are necessarily infringed by the use or sale of its Contribution +alone +or when combined with the Program. +"Program" means the Contributions distributed in accordance with +this +Agreement. +"Recipient" means anyone who receives the Program under this +Agreement, +including all Contributors. +2. GRANT OF RIGHTS +a) Subject to the terms of this Agreement, each Contributor hereby +grants Recipient a non-exclusive, worldwide, royalty-free copyright +license to reproduce, prepare derivative works of, publicly display, +publicly perform, distribute and sublicense the Contribution +of such +Contributor, if any, and such derivative works, in source code +and +object code form. +b) Subject to the terms of this Agreement, each Contributor hereby +grants Recipient a non-exclusive, worldwide, royalty-free patent +license +under Licensed Patents to make, use, sell, offer to sell, import +and +otherwise transfer the Contribution of such Contributor, if any, +in +source code and object code form. This patent license shall apply +to the +combination of the Contribution and the Program if, at the time +the +Contribution is added by the Contributor, such addition of the +Contribution causes such combination to be covered by the Licensed +Patents. The patent license shall not apply to any other combinations +which include the Contribution. No hardware per se is licensed +hereunder. +c) Recipient understands that although each Contributor grants +the +licenses to its Contributions set forth herein, no assurances +are +provided by any Contributor that the Program does not infringe +the +patent or other intellectual property rights of any other entity. +Each +Contributor disclaims any liability to Recipient for claims brought +by +any other entity based on infringement of intellectual property +rights +or otherwise. As a condition to exercising the rights and licenses +granted hereunder, each Recipient hereby assumes sole responsibility +to +secure any other intellectual property rights needed, if any. +For +example, if a third party patent license is required to allow +Recipient +to distribute the Program, it is Recipient's responsibility to +acquire +that license before distributing the Program. +d) Each Contributor represents that to its knowledge it has sufficient +copyright rights in its Contribution, if any, to grant the copyright +license set forth in this Agreement. +3. REQUIREMENTS +A Contributor may choose to distribute the Program in object +code form +under its own license agreement, provided that: +a) it complies with the terms and conditions of this Agreement; +and +b) its license agreement: +i) effectively disclaims on behalf of all Contributors all warranties +and conditions, express and implied, including warranties or +conditions +of title and non-infringement, and implied warranties or conditions +of +merchantability and fitness for a particular purpose; +ii) effectively excludes on behalf of all Contributors all liability +for +damages, including direct, indirect, special, incidental and +consequential damages, such as lost profits; +iii) states that any provisions which differ from this Agreement +are +offered by that Contributor alone and not by any other party; +and +iv) states that source code for the Program is available from +such +Contributor, and informs licensees how to obtain it in a reasonable +manner on or through a medium customarily used for software exchange. +When the Program is made available in source code form: +a) it must be made available under this Agreement; and +b) a copy of this Agreement must be included with each copy of +the +Program. +Contributors may not remove or alter any copyright notices contained +within the Program. +Each Contributor must identify itself as the originator of its +Contribution, if any, in a manner that reasonably allows subsequent +Recipients to identify the originator of the Contribution. +4. COMMERCIAL DISTRIBUTION +Commercial distributors of software may accept certain responsibilities +with respect to end users, business partners and the like. While +this +license is intended to facilitate the commercial use of the Program, +the +Contributor who includes the Program in a commercial product +offering +should do so in a manner which does not create potential liability +for +other Contributors. Therefore, if a Contributor includes the +Program in +a commercial product offering, such Contributor ("Commercial +Contributor +") hereby agrees to defend and indemnify every other Contributor +(" +Indemnified Contributor") against any losses, damages and costs +( +collectively "Losses") arising from claims, lawsuits and other +legal +actions brought by a third party against the Indemnified Contributor +to +the extent caused by the acts or omissions of such Commercial +Contributor in connection with its distribution of the Program +in a +commercial product offering. The obligations in this section +do not +apply to any claims or Losses relating to any actual or alleged +intellectual property infringement. In order to qualify, an Indemnified +Contributor must: a) promptly notify the Commercial Contributor +in +writing of such claim, and b) allow the Commercial Contributor +to +control, and cooperate with the Commercial Contributor in, the +defense +and any related settlement negotiations. The Indemnified Contributor +may +participate in any such claim at its own expense. +For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have +to +defend claims against the other Contributors related to those +performance claims and warranties, and if a court requires any +other +Contributor to pay any damages as a result, the Commercial Contributor +must pay those damages. +5. NO WARRANTY +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM +IS PROVIDED +ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, +EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY +WARRANTIES +OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR +FITNESS FOR +A PARTICULAR PURPOSE. Each Recipient is solely responsible for +determining the appropriateness of using and distributing the +Program +and assumes all risks associated with its exercise of rights +under this +Agreement , including but not limited to the risks and costs +of program +errors, compliance with applicable laws, damage to or loss of +data, +programs or equipment, and unavailability or interruption of +operations. +6. DISCLAIMER OF LIABILITY +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT +NOR +ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING +WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY +OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR +DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED +HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +7. GENERAL +If any provision of this Agreement is invalid or unenforceable +under +applicable law, it shall not affect the validity or enforceability +of +the remainder of the terms of this Agreement, and without further +action +by the parties hereto, such provision shall be reformed to the +minimum +extent necessary to make such provision valid and enforceable. +If Recipient institutes patent litigation against any entity +(including +a cross-claim or counterclaim in a lawsuit) alleging that the +Program +itself (excluding combinations of the Program with other software +or +hardware) infringes such Recipient's patent(s), then such Recipient's +rights granted under Section 2(b) shall terminate as of the date +such +litigation is filed. +All Recipient's rights under this Agreement shall terminate if +it fails +to comply with any of the material terms or conditions of this +Agreement +and does not cure such failure in a reasonable period of time +after +becoming aware of such noncompliance. If all Recipient's rights +under +this Agreement terminate, Recipient agrees to cease use and distribution +of the Program as soon as reasonably practicable. However, Recipient's +obligations under this Agreement and any licenses granted by +Recipient +relating to the Program shall continue and survive. +Everyone is permitted to copy and distribute copies of this Agreement, +but in order to avoid inconsistency the Agreement is copyrighted +and may +only be modified in the following manner. The Agreement Steward +reserves +the right to publish new versions (including revisions) of this +Agreement from time to time. No one other than the Agreement +Steward has +the right to modify this Agreement. The Eclipse Foundation is +the +initial Agreement Steward. The Eclipse Foundation may assign +the +responsibility to serve as the Agreement Steward to a suitable +separate +entity. Each new version of the Agreement will be given a distinguishing +version number. The Program (including Contributions) may always +be +distributed subject to the version of the Agreement under which +it was +received. In addition, after a new version of the Agreement is +published +, Contributor may elect to distribute the Program (including +its +Contributions) under the new version. Except as expressly stated +in +Sections 2(a) and 2(b) above, Recipient receives no rights or +licenses +to the intellectual property of any Contributor under this Agreement, +whether expressly, by implication, estoppel or otherwise. All +rights in +the Program not expressly granted under this Agreement are reserved. +This Agreement is governed by the laws of the State of New York +and the +intellectual property laws of the United States of America. No +party to +this Agreement will bring a legal action under this Agreement +more than +one year after the cause of action arose. Each party waives its +rights +to a jury trial in any resulting litigation. + </license> + + <requires> + <import plugin="org.eclipse.ui"/> + <import plugin="org.eclipse.core.runtime"/> + <import plugin="org.eclipse.ui.forms"/> + </requires> + + <plugin + id="org.mantisbt.connect.eclipse" + download-size="0" + install-size="0" + version="0.0.0"/> + +</feature> Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/feature.xml ___________________________________________________________________ Name: svn:mime-type + text/plain Added: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/license.html =================================================================== --- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/license.html (rev 0) +++ mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/license.html 2008-02-01 17:17:10 UTC (rev 187) @@ -0,0 +1,328 @@ +<html xmlns:o="urn:schemas-microsoft-com:office:office" +xmlns:w="urn:schemas-microsoft-com:office:word" +xmlns="http://www.w3.org/TR/REC-html40"> + +<head> +<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> +<meta name=ProgId content=Word.Document> +<meta name=Generator content="Microsoft Word 9"> +<meta name=Originator content="Microsoft Word 9"> +<link rel=File-List +href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"> +<title>Eclipse Public License - Version 1.0</title> +<!--[if gte mso 9]><xml> + <o:DocumentProperties> + <o:Revision>2</o:Revision> + <o:TotalTime>3</o:TotalTime> + <o:Created>2004-03-05T23:03:00Z</o:Created> + <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved> + <o:Pages>4</o:Pages> + <o:Words>1626</o:Words> + <o:Characters>9270</o:Characters> + <o:Lines>77</o:Lines> + <o:Paragraphs>18</o:Paragraphs> + <o:CharactersWithSpaces>11384</o:CharactersWithSpaces> + <o:Version>9.4402</o:Version> + </o:DocumentProperties> +</xml><![endif]--><!--[if gte mso 9]><xml> + <w:WordDocument> + <w:TrackRevisions/> + </w:WordDocument> +</xml><![endif]--> +<style> +<!-- + /* Font Definitions */ +@font-face + {font-family:Tahoma; + panose-1:2 11 6 4 3 5 4 4 2 4; + mso-font-charset:0; + mso-generic-font-family:swiss; + mso-font-pitch:variable; + mso-font-signature:553679495 -2147483648 8 0 66047 0;} + /* Style Definitions */ +p.MsoNormal, li.MsoNormal, div.MsoNormal + {mso-style-parent:""; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:12.0pt; + font-family:"Times New Roman"; + mso-fareast-font-family:"Times New Roman";} +p + {margin-right:0in; + mso-margin-top-alt:auto; + mso-margin-bottom-alt:auto; + margin-left:0in; + mso-pagination:widow-orphan; + font-size:12.0pt; + font-family:"Times New Roman"; + mso-fareast-font-family:"Times New Roman";} +p.BalloonText, li.BalloonText, div.BalloonText + {mso-style-name:"Balloon Text"; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:8.0pt; + font-family:Tahoma; + mso-fareast-font-family:"Times New Roman";} +@page Section1 + {size:8.5in 11.0in; + margin:1.0in 1.25in 1.0in 1.25in; + mso-header-margin:.5in; + mso-footer-margin:.5in; + mso-paper-source:0;} +div.Section1 + {page:Section1;} +--> +</style> +</head> + +<body lang=EN-US style='tab-interval:.5in'> + +<div class=Section1> + +<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b> +</p> + +<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER +THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, +REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE +OF THIS AGREEMENT.</span> </p> + +<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p> + +<p><span style='font-size:10.0pt'>"Contribution" means:</span> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +in the case of the initial Contributor, the initial code and documentation +distributed under this Agreement, and<br clear=left> +b) in the case of each subsequent Contributor:</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i) +changes to the Program, and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii) +additions to the Program;</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where +such changes and/or additions to the Program originate from and are distributed +by that particular Contributor. A Contribution 'originates' from a Contributor +if it was added to the Program by such Contributor itself or anyone acting on +such Contributor's behalf. Contributions do not include additions to the +Program which: (i) are separate modules of software distributed in conjunction +with the Program under their own license agreement, and (ii) are not derivative +works of the Program. </span></p> + +<p><span style='font-size:10.0pt'>"Contributor" means any person or +entity that distributes the Program.</span> </p> + +<p><span style='font-size:10.0pt'>"Licensed Patents " mean patent +claims licensable by a Contributor which are necessarily infringed by the use +or sale of its Contribution alone or when combined with the Program. </span></p> + +<p><span style='font-size:10.0pt'>"Program" means the Contributions +distributed in accordance with this Agreement.</span> </p> + +<p><span style='font-size:10.0pt'>"Recipient" means anyone who +receives the Program under this Agreement, including all Contributors.</span> </p> + +<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +Subject to the terms of this Agreement, each Contributor hereby grants Recipient +a non-exclusive, worldwide, royalty-free copyright license to<span +style='color:red'> </span>reproduce, prepare derivative works of, publicly +display, publicly perform, distribute and sublicense the Contribution of such +Contributor, if any, and such derivative works, in source code and object code +form.</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) +Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free +patent license under Licensed Patents to make, use, sell, offer to sell, import +and otherwise transfer the Contribution of such Contributor, if any, in source +code and object code form. This patent license shall apply to the combination +of the Contribution and the Program if, at the time the Contribution is added +by the Contributor, such addition of the Contribution causes such combination +to be covered by the Licensed Patents. The patent license shall not apply to +any other combinations which include the Contribution. No hardware per se is +licensed hereunder. </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c) +Recipient understands that although each Contributor grants the licenses to its +Contributions set forth herein, no assurances are provided by any Contributor +that the Program does not infringe the patent or other intellectual property +rights of any other entity. Each Contributor disclaims any liability to Recipient +for claims brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights and +licenses granted hereunder, each Recipient hereby assumes sole responsibility +to secure any other intellectual property rights needed, if any. For example, +if a third party patent license is required to allow Recipient to distribute +the Program, it is Recipient's responsibility to acquire that license before +distributing the Program.</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d) +Each Contributor represents that to its knowledge it has sufficient copyright +rights in its Contribution, if any, to grant the copyright license set forth in +this Agreement. </span></p> + +<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p> + +<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the +Program in object code form under its own license agreement, provided that:</span> +</p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +it complies with the terms and conditions of this Agreement; and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) +its license agreement:</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i) +effectively disclaims on behalf of all Contributors all warranties and +conditions, express and implied, including warranties or conditions of title +and non-infringement, and implied warranties or conditions of merchantability +and fitness for a particular purpose; </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii) +effectively excludes on behalf of all Contributors all liability for damages, +including direct, indirect, special, incidental and consequential damages, such +as lost profits; </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii) +states that any provisions which differ from this Agreement are offered by that +Contributor alone and not by any other party; and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv) +states that source code for the Program is available from such Contributor, and +informs licensees how to obtain it in a reasonable manner on or through a +medium customarily used for software exchange.<span style='color:blue'> </span></span></p> + +<p><span style='font-size:10.0pt'>When the Program is made available in source +code form:</span> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +it must be made available under this Agreement; and </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a +copy of this Agreement must be included with each copy of the Program. </span></p> + +<p><span style='font-size:10.0pt'>Contributors may not remove or alter any +copyright notices contained within the Program. </span></p> + +<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the +originator of its Contribution, if any, in a manner that reasonably allows +subsequent Recipients to identify the originator of the Contribution. </span></p> + +<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p> + +<p><span style='font-size:10.0pt'>Commercial distributors of software may +accept certain responsibilities with respect to end users, business partners +and the like. While this license is intended to facilitate the commercial use +of the Program, the Contributor who includes the Program in a commercial +product offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes the +Program in a commercial product offering, such Contributor ("Commercial +Contributor") hereby agrees to defend and indemnify every other +Contributor ("Indemnified Contributor") against any losses, damages and +costs (collectively "Losses") arising from claims, lawsuits and other +legal actions brought by a third party against the Indemnified Contributor to +the extent caused by the acts or omissions of such Commercial Contributor in +connection with its distribution of the Program in a commercial product +offering. The obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In order +to qualify, an Indemnified Contributor must: a) promptly notify the Commercial +Contributor in writing of such claim, and b) allow the Commercial Contributor +to control, and cooperate with the Commercial Contributor in, the defense and +any related settlement negotiations. The Indemnified Contributor may participate +in any such claim at its own expense.</span> </p> + +<p><span style='font-size:10.0pt'>For example, a Contributor might include the +Program in a commercial product offering, Product X. That Contributor is then a +Commercial Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance claims and +warranties are such Commercial Contributor's responsibility alone. Under this +section, the Commercial Contributor would have to defend claims against the +other Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages.</span> </p> + +<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p> + +<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, +WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and distributing the +Program and assumes all risks associated with its exercise of rights under this +Agreement , including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs or +equipment, and unavailability or interruption of operations. </span></p> + +<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p> + +<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF +THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES.</span> </p> + +<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p> + +<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid +or unenforceable under applicable law, it shall not affect the validity or +enforceability of the remainder of the terms of this Agreement, and without +further action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable.</span> </p> + +<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) +alleging that the Program itself (excluding combinations of the Program with +other software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of the date +such litigation is filed. </span></p> + +<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement +shall terminate if it fails to comply with any of the material terms or +conditions of this Agreement and does not cure such failure in a reasonable +period of time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use and +distribution of the Program as soon as reasonably practicable. However, +Recipient's obligations under this Agreement and any licenses granted by +Recipient relating to the Program shall continue and survive. </span></p> + +<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute +copies of this Agreement, but in order to avoid inconsistency the Agreement is +copyrighted and may only be modified in the following manner. The Agreement +Steward reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement Steward has +the right to modify this Agreement. The Eclipse Foundation is the initial +Agreement Steward. The Eclipse Foundation may assign the responsibility to +serve as the Agreement Steward to a suitable separate entity. Each new version +of the Agreement will be given a distinguishing version number. The Program +(including Contributions) may always be distributed subject to the version of +the Agreement under which it was received. In addition, after a new version of +the Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly stated +in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to +the intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the Program not +expressly granted under this Agreement are reserved.</span> </p> + +<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the +State of New York and the intellectual property laws of the United States of +America. No party to this Agreement will bring a legal action under this +Agreement more than one year after the cause of action arose. Each party waives +its rights to a jury trial in any resulting litigation.</span> </p> + +<p class=MsoNormal><![if !supportEmptyParas]> <![endif]><o:p></o:p></p> + +</div> + +</body> + +</html> \ No newline at end of file Property changes on: mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/license.html ___________________________________________________________________ Name: svn:mime-type + text/plain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:16:50
|
Revision: 186 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=186&view=rev Author: planser Date: 2008-02-01 09:16:46 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Share project 'org.mantisbt.connect.eclipse-feature' into 'https://mantisconnect.svn.sourceforge.net/svnroot/mantisconnect' Added Paths: ----------- mantisconnect/trunk/clients/java/eclipse/org.mantisbt.connect.eclipse-feature/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pl...@us...> - 2008-02-01 17:12:28
|
Revision: 185 http://mantisconnect.svn.sourceforge.net/mantisconnect/?rev=185&view=rev Author: planser Date: 2008-02-01 09:12:22 -0800 (Fri, 01 Feb 2008) Log Message: ----------- Added Paths: ----------- mantisconnect/tags/clients/java/eclipse/org.mantisbt.connect.eclipse/REL_1_1_1_0/ Copied: mantisconnect/tags/clients/java/eclipse/org.mantisbt.connect.eclipse/REL_1_1_1_0 (from rev 184, mantisconnect/branches/clients/java/eclipse/org.mantisbt.connect.eclipse/REL_BRANCH_1_1_1_0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |