ccnetcontrib-developer Mailing List for CCNetContrib
Brought to you by:
exortech,
mikeroberts
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(86) |
Feb
|
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Owen R. <exo...@us...> - 2005-08-24 03:51:03
|
Update of /cvsroot/ccnetcontrib/msbuild/src/MSBuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18516/src/MSBuild Modified Files: XmlLogger.cs Log Message: fixing datetime parsing error -- invariant culture was not specified Index: XmlLogger.cs =================================================================== RCS file: /cvsroot/ccnetcontrib/msbuild/src/MSBuild/XmlLogger.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XmlLogger.cs 15 Aug 2005 16:56:58 -0000 1.1 --- XmlLogger.cs 24 Aug 2005 03:50:56 -0000 1.2 *************** *** 1,3 **** ! #region Using directives using System; --- 1,3 ---- ! #region Using directives using System; *************** *** 171,175 **** if (currentElement.Name == XmlLoggerElements.Build || Verbosity == LoggerVerbosity.Diagnostic) { ! DateTime startTime = DateTime.Parse(currentElement.GetAttribute(XmlLoggerAttributes.StartTime)); SetAttribute(currentElement, timeStamp - startTime, XmlLoggerAttributes.ElapsedTime); } --- 171,175 ---- if (currentElement.Name == XmlLoggerElements.Build || Verbosity == LoggerVerbosity.Diagnostic) { ! DateTime startTime = DateTime.Parse(currentElement.GetAttribute(XmlLoggerAttributes.StartTime), DateTimeFormatInfo.InvariantInfo); SetAttribute(currentElement, timeStamp - startTime, XmlLoggerAttributes.ElapsedTime); } |
From: Mike R. <mik...@us...> - 2005-08-15 16:57:13
|
Update of /cvsroot/ccnetcontrib/msbuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7657 Added Files: .cvsignore Log Message: Initial XMLLogger checkin --- NEW FILE: .cvsignore --- .project |
From: Mike R. <mik...@us...> - 2005-08-15 16:57:13
|
Update of /cvsroot/ccnetcontrib/msbuild/src/MSBuild/Properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7657/src/MSBuild/Properties Added Files: AssemblyInfo.cs Log Message: Initial XMLLogger checkin --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("ThoughtWorks.CruiseControl.MSBuild")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("ThoughtWorks")] [assembly: AssemblyProduct("Kobush.Build")] [assembly: AssemblyCopyright("Copyright © ThoughtWorks and SoftwareMind 2005")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM componenets. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("8b54f492-231b-4927-91d0-17a3644d2be0")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] |
From: Mike R. <mik...@us...> - 2005-08-15 16:57:10
|
Update of /cvsroot/ccnetcontrib/msbuild/src/MSBuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7657/src/MSBuild Added Files: MSBuild.csproj XmlLogger.cs Log Message: Initial XMLLogger checkin --- NEW FILE: MSBuild.csproj --- (This appears to be a binary file; contents omitted.) --- NEW FILE: XmlLogger.cs --- (This appears to be a binary file; contents omitted.) |
From: Mike R. <mik...@us...> - 2005-08-15 16:57:08
|
Update of /cvsroot/ccnetcontrib/msbuild/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7657/src Added Files: ThoughtWorks.CruiseControl.MSBuild.sln Log Message: Initial XMLLogger checkin --- NEW FILE: ThoughtWorks.CruiseControl.MSBuild.sln --- (This appears to be a binary file; contents omitted.) |
From: Mike R. <mik...@us...> - 2005-08-15 16:54:06
|
Update of /cvsroot/ccnetcontrib/msbuild/src/MSBuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7038/src/MSBuild Log Message: Directory /cvsroot/ccnetcontrib/msbuild/src/MSBuild added to the repository |
From: Mike R. <mik...@us...> - 2005-08-15 16:54:06
|
Update of /cvsroot/ccnetcontrib/msbuild/src/MSBuild/Properties In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7038/src/MSBuild/Properties Log Message: Directory /cvsroot/ccnetcontrib/msbuild/src/MSBuild/Properties added to the repository |
From: Mike R. <mik...@us...> - 2005-08-15 16:53:40
|
Update of /cvsroot/ccnetcontrib/msbuild/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6971/src Log Message: Directory /cvsroot/ccnetcontrib/msbuild/src added to the repository |
From: Mike R. <mik...@us...> - 2005-08-15 16:52:07
|
Update of /cvsroot/ccnetcontrib/msbuild In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6595/msbuild Log Message: Directory /cvsroot/ccnetcontrib/msbuild added to the repository |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:42
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/src Modified Files: CCNetContribNoEnvironmentDependencies.sln AllCCNetContrib.sln Log Message: Stephen Tunney's MSN Publisher Index: CCNetContribNoEnvironmentDependencies.sln =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/src/CCNetContribNoEnvironmentDependencies.sln,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CCNetContribNoEnvironmentDependencies.sln 6 Jan 2005 04:02:45 -0000 1.1 --- CCNetContribNoEnvironmentDependencies.sln 11 Mar 2005 03:10:29 -0000 1.2 *************** *** 8,11 **** --- 8,15 ---- EndProjectSection EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSNPublisher", "MSNPublisher\MSNPublisher.csproj", "{8D8C5C2B-D25A-4298-8847-8E2B9828A791}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject Global GlobalSection(SolutionConfiguration) = preSolution *************** *** 27,30 **** --- 31,40 ---- {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Release.ActiveCfg = Release|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Release.Build.0 = Release|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Build.ActiveCfg = Build|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Build.Build.0 = Build|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Debug.ActiveCfg = Debug|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Debug.Build.0 = Debug|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Release.ActiveCfg = Release|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution Index: AllCCNetContrib.sln =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/src/AllCCNetContrib.sln,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AllCCNetContrib.sln 6 Jan 2005 04:44:13 -0000 1.1 --- AllCCNetContrib.sln 11 Mar 2005 03:10:29 -0000 1.2 *************** *** 16,19 **** --- 16,23 ---- EndProjectSection EndProject + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSNPublisher", "MSNPublisher\MSNPublisher.csproj", "{8D8C5C2B-D25A-4298-8847-8E2B9828A791}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + EndProject Global GlobalSection(SolutionConfiguration) = preSolution *************** *** 47,50 **** --- 51,60 ---- {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.ActiveCfg = Release|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.Build.0 = Release|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Build.ActiveCfg = Build|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Build.Build.0 = Build|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Debug.ActiveCfg = Debug|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Debug.Build.0 = Debug|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Release.ActiveCfg = Release|.NET + {8D8C5C2B-D25A-4298-8847-8E2B9828A791}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:41
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/X10Publisher.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/src/X10Publisher.Tests Modified Files: X10PublisherTest.cs Log Message: Stephen Tunney's MSN Publisher Index: X10PublisherTest.cs =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/src/X10Publisher.Tests/X10PublisherTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** X10PublisherTest.cs 6 Jan 2005 04:02:45 -0000 1.1 --- X10PublisherTest.cs 11 Mar 2005 03:10:30 -0000 1.2 *************** *** 60,69 **** // Test Build Failure IntegrationResult result = CreateIntegrationResult(IntegrationStatus.Failure, true); ! x10Publisher.PublishIntegrationResults(null, result); Assert.IsFalse(x10Publisher.HasSucceeded); // Test Build Success result = CreateIntegrationResult(IntegrationStatus.Success, true); ! x10Publisher.PublishIntegrationResults(null, result); Assert.IsTrue(x10Publisher.HasSucceeded); } --- 60,69 ---- // Test Build Failure IntegrationResult result = CreateIntegrationResult(IntegrationStatus.Failure, true); ! x10Publisher.PublishIntegrationResults(result); Assert.IsFalse(x10Publisher.HasSucceeded); // Test Build Success result = CreateIntegrationResult(IntegrationStatus.Success, true); ! x10Publisher.PublishIntegrationResults(result); Assert.IsTrue(x10Publisher.HasSucceeded); } |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:39
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/X10Publisher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/src/X10Publisher Modified Files: X10Publisher.cs Log Message: Stephen Tunney's MSN Publisher Index: X10Publisher.cs =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/src/X10Publisher/X10Publisher.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** X10Publisher.cs 6 Jan 2005 04:02:44 -0000 1.1 --- X10Publisher.cs 11 Mar 2005 03:10:29 -0000 1.2 *************** *** 74,78 **** } ! public override void PublishIntegrationResults(IProject project, IIntegrationResult result) { if (result.Status.Equals(IntegrationStatus.Success) && !hasSucceeded) --- 74,78 ---- } ! public override void PublishIntegrationResults(IIntegrationResult result) { if (result.Status.Equals(IntegrationStatus.Success) && !hasSucceeded) |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:39
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/lib Modified Files: NetReflector.dll ThoughtWorks.CruiseControl.Remote.dll ThoughtWorks.CruiseControl.Core.dll Log Message: Stephen Tunney's MSN Publisher Index: ThoughtWorks.CruiseControl.Remote.dll =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/lib/ThoughtWorks.CruiseControl.Remote.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsi2QMeZ and /tmp/cvs2FHD78 differ Index: ThoughtWorks.CruiseControl.Core.dll =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/lib/ThoughtWorks.CruiseControl.Core.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsF3At5k and /tmp/cvsuGqSlv differ Index: NetReflector.dll =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/lib/NetReflector.dll,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsXUkK2O and /tmp/cvs8gJIwZ differ |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:38
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/lib/MSNPublisher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/lib/MSNPublisher Added Files: DotMSN.dll SendMSN.dll Log Message: Stephen Tunney's MSN Publisher --- NEW FILE: DotMSN.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: SendMSN.dll --- (This appears to be a binary file; contents omitted.) |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:38
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/MSNPublisher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32524/src/MSNPublisher Added Files: MSNPublisher.cs MSNPublisher.csproj MSNUser.cs AssemblyInfo.cs .cvsignore Log Message: Stephen Tunney's MSN Publisher --- NEW FILE: .cvsignore --- bin obj MSNPublisher.csproj.user --- NEW FILE: MSNUser.cs --- /// /// Written By Stephen R. Tunney <s_t...@ya...> /// Dec. 1, 2004 /// using System; using Exortech.NetReflector; namespace ThoughtWorks.CruiseControl.Contrib.MSNPublisher { /// <summary> /// MSNUser is a representation of the /// users that would subsbribe to /// msn messenger notifications. /// </summary> /// <example> /// This XSD node belongs under the msn node in the ccnet.xsd. /// /// <xs:element name="msnusers"> /// <xs:complexType> /// <xs:sequence> /// <xs:element maxOccurs="unbounded" name="msnuser"> /// <xs:complexType> /// <xs:attribute name="name" type="xs:string" use="required" /> /// <xs:attribute name="email" type="xs:string" use="required" /> /// </xs:complexType> /// </xs:element> /// </xs:sequence> /// </xs:complexType> /// </xs:element> /// </example> [ReflectorType("msnuser")] public class MSNUser { private string _email; private string _name; /// <summary> /// Default Constructor. /// </summary> public MSNUser() {} /// <summary> /// Constructor. /// </summary> /// <param name="email"> /// The email address of the user. /// </param> /// <param name="name"> /// The name of the user. /// </param> public MSNUser( string email, string name ) { _email = email; _name = name; } /// <summary> /// Gets or sets the email address /// of the user. /// </summary> [ReflectorProperty("email")] public string Email { get{ return( _email ); } set{ _email = value; } } /// <summary> /// Gets or sets the name of /// the user. /// </summary> [ReflectorProperty("name")] public string Name { get{ return( _name ); } set{ _name = value; } } public override bool Equals(Object o) { if (o == null || o.GetType() != this.GetType()) { return false; } MSNUser m = (MSNUser)o; return Name == m.Name && Email == m.Email; } public override int GetHashCode() { return String.Concat(Name, Email).GetHashCode(); } public override string ToString() { return String.Format( "MSNUser: [name: {0}, email: {1}]", _name, _email ); } } } --- NEW FILE: MSNPublisher.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{8D8C5C2B-D25A-4298-8847-8E2B9828A791}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "ccnet.msnpublisher.plugin" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "ThoughtWorks.CruiseControl.Contrib.MSNPublisher" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Build" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "..\..\build\MSNPublisher\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Remote" AssemblyName = "ThoughtWorks.CruiseControl.Remote" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Remote.dll" /> <Reference Name = "NetReflector" AssemblyName = "NetReflector" HintPath = "..\..\lib\NetReflector.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Core" AssemblyName = "ThoughtWorks.CruiseControl.Core" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Core.dll" /> <Reference Name = "SendMSN" AssemblyName = "SendMSN" HintPath = "..\..\lib\MSNPublisher\SendMSN.dll" /> <Reference Name = "DotMSN" AssemblyName = "DotMSN" HintPath = "..\..\lib\MSNPublisher\DotMSN.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "MSNPublisher.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "MSNUser.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: MSNPublisher.cs --- /// /// Written By Stephen R. Tunney <s_t...@ya...> /// Dec. 1, 2004 /// using System; using System.Collections; using Exortech.NetReflector; using ThoughtWorks.CruiseControl.Core; using ThoughtWorks.CruiseControl.Core.Publishers; using ThoughtWorks.CruiseControl.Remote; namespace ThoughtWorks.CruiseControl.Contrib.MSNPublisher { /// <summary> /// Summary description for MSNPublisher. /// </summary> /// <example> /// <xs:element name="msn" minOccurs="0" maxOccurs="1"> /// <xs:complexType> /// <xs:sequence> /// <xs:element name="screenname" type="xs:string" minOccurs="1" maxOccurs="1" /> /// <xs:element name="login" type="xs:string" minOccurs="1" maxOccurs="1" /> /// <xs:element name="password" type="xs:string" minOccurs="1" maxOccurs="1" /> /// <xs:element name="connecttimeout" type="xs:int" minOccurs="1" maxOccurs="1" /> /// <xs:element name="conversationtimeout" type="xs:int" minOccurs="1" maxOccurs="1" /> /// <!-- msnusers node belogs here <see cref="MSNUser"/> --> /// </xs:sequence> /// </xs:complexType> /// </xs:element> /// </example> [ReflectorType("msn")] public class MSNPublisher : PublisherBase { private string _screenName; private string _login; private string _password; private Int32 _connectTimeout; private Int32 _conversationTimeout; private Hashtable _users = new Hashtable(); public MSNPublisher() {} public MSNPublisher( string screenName, string login, string password, Int32 connectTimeout, Int32 conversationTimeout ) { _screenName = screenName; _login = login; _password = password; _connectTimeout = connectTimeout; _conversationTimeout = conversationTimeout; } [ReflectorProperty("screenname")] public string ScreenName { get{ return( _screenName ); } set{ _screenName = value; } } [ReflectorProperty("login")] public string Login { get{ return( _login ); } set{ _login = value; } } [ReflectorProperty("password")] public string Password { get{ return( _password ); } set{ _password = value; } } [ReflectorProperty("connecttimeout")] public Int32 ConnectTimeout { get{ return( _connectTimeout ); } set{ _connectTimeout = value; } } [ReflectorProperty("conversationtimeout")] public Int32 ConversationTimeout { get{ return( _conversationTimeout ); } set{ _conversationTimeout = value; } } [ReflectorHash( "msnusers", "name" )] public Hashtable MSNUsers { get{ return( _users ); } set{ _users = value; } } public MSNUser GetMSNUser( string username ) { if( null == username ) return( null ); return( (MSNUser)_users[username] ); } internal virtual void SendMessage( string message ) { SendMSN.SendMSN messenger = null; try { SendMSN.MSNConfiguration config = new SendMSN.MSNConfiguration( _connectTimeout, _conversationTimeout ); SendMSN.MSNCredentials who = new SendMSN.MSNCredentials( _screenName, _login, _password ); messenger = new SendMSN.SendMSN( who, config ); string[] recipients = CreateNotifyList(); messenger.SendMessage( message, recipients ); } catch( Exception ) { throw; } finally { if( null != messenger ) { messenger.Finish(); } } } public override void PublishIntegrationResults(IIntegrationResult result) { switch( result.Status ) { case IntegrationStatus.Unknown: break; default: IMessageBuilder messageBuilder = new HtmlLinkMessageBuilder( false ); string message = messageBuilder.BuildMessage( result, result.ProjectUrl ); SendMessage( message ); break; }; } internal string[] CreateNotifyList() { ArrayList userList = new ArrayList(); foreach( MSNUser user in MSNUsers.Values ) { userList.Add( user.Email ); } return (string[])userList.ToArray( typeof(string) ); } private bool BuildStateChanged(IIntegrationResult result) { return result.LastIntegrationStatus != result.Status; } } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.*")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] |
From: Mike R. <mik...@us...> - 2005-03-11 03:10:01
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/MSNPublisher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32467/src/MSNPublisher Log Message: Directory /cvsroot/ccnetcontrib/ccnetcontrib/src/MSNPublisher added to the repository |
From: Mike R. <mik...@us...> - 2005-03-11 03:09:59
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/lib/MSNPublisher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32467/lib/MSNPublisher Log Message: Directory /cvsroot/ccnetcontrib/ccnetcontrib/lib/MSNPublisher added to the repository |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:22
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474 Modified Files: ccnetcontrib.build Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. Index: ccnetcontrib.build =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/ccnetcontrib.build,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ccnetcontrib.build 6 Jan 2005 04:02:43 -0000 1.1 --- ccnetcontrib.build 6 Jan 2005 04:44:13 -0000 1.2 *************** *** 1,5 **** <?xml version="1.0"?> ! <project name="ccnet" default="test"> <!-- PROPERTIES --> --- 1,5 ---- <?xml version="1.0"?> ! <project name="ccnetcontrib" default="test"> <!-- PROPERTIES --> *************** *** 21,35 **** </target> ! <target name="compile" description="compiles everything to be released"> <mkdir dir="build" verbose="${verbosity}"/> <solution configuration="build" solutionfile="src\CCNetContribNoEnvironmentDependencies.sln" /> </target> ! <target name="test" depends="compile, test.unit" /> ! <target name="test.unit" description="runs unit tests"> <exec program="${nunit-console.exe}" workingdir="build\X10Publisher.Tests" commandline="ThoughtWorks.CruiseControl.Contrib.X10Publisher.Tests.dll /xml:../ThoughtWorks.CruiseControl.Contrib.X10Publisher.Tests.dll-results.xml /nologo"/> </target> <target name="dist"> <!-- --- 21,53 ---- </target> ! <target name="compile" depends="compile.noenvironmentdependendencies" description="Default Compile target" /> ! ! <target name="compile.noenvironmentdependendencies"> <mkdir dir="build" verbose="${verbosity}"/> <solution configuration="build" solutionfile="src\CCNetContribNoEnvironmentDependencies.sln" /> </target> ! <target name="compile.vssplugin"> ! <mkdir dir="build" verbose="${verbosity}"/> ! <solution configuration="build" solutionfile="src\VSSPlugin.sln" /> ! </target> ! <target name="compile.all"> ! <mkdir dir="build" verbose="${verbosity}"/> ! <solution configuration="build" solutionfile="src\AllCCNetContrib.sln" /> ! </target> ! ! <target name="test" depends="compile, test.unit.noenvironmentdependendencies" description="Default Test target" /> ! ! <target name="test.unit.noenvironmentdependendencies"> <exec program="${nunit-console.exe}" workingdir="build\X10Publisher.Tests" commandline="ThoughtWorks.CruiseControl.Contrib.X10Publisher.Tests.dll /xml:../ThoughtWorks.CruiseControl.Contrib.X10Publisher.Tests.dll-results.xml /nologo"/> </target> + <target name="test.unit.vssplugin"> + <exec program="${nunit-console.exe}" workingdir="build\VSSPlugin.Tests" commandline="ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Tests.dll /xml:../ThoughtWorks.CruiseControl.Contrib.X10Publisher.Tests.dll-results.xml /nologo"/> + </target> + + <target name="test.all" depends="test.unit.noenvironmentdependendencies, test.unit.vssplugin" /> + <target name="dist"> <!-- |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:22
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/src Modified Files: .cvsignore Added Files: AllCCNetContrib.sln VSSPlugin.sln Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. Index: .cvsignore =================================================================== RCS file: /cvsroot/ccnetcontrib/ccnetcontrib/src/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 6 Jan 2005 04:02:45 -0000 1.1 --- .cvsignore 6 Jan 2005 04:44:13 -0000 1.2 *************** *** 2,4 **** *.resharperoptions _ReSharper.* - .project \ No newline at end of file --- 2,3 ---- --- NEW FILE: VSSPlugin.sln --- Microsoft Visual Studio Solution File, Format Version 8.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSSPlugin.Test", "VSSPlugin.Test\VSSPlugin.Test.csproj", "{DFC1B086-DB8F-45F5-A734-E2C43DA409C0}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSSPlugin", "VSSPlugin\VSSPlugin.csproj", "{F1F13F30-E452-42B4-9BCE-0A228FEE8C65}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Debug.ActiveCfg = Debug|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Debug.Build.0 = Debug|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.ActiveCfg = Release|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.Build.0 = Release|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Debug.ActiveCfg = Debug|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Debug.Build.0 = Debug|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Release.ActiveCfg = Release|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal --- NEW FILE: AllCCNetContrib.sln --- Microsoft Visual Studio Solution File, Format Version 8.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "X10Publisher", "X10Publisher\X10Publisher.csproj", "{790750BA-7FE8-402E-9D9F-9E50A6F760CD}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "X10Publisher.Tests", "X10Publisher.Tests\X10Publisher.Tests.csproj", "{424AFD5C-854C-459C-9134-FFBA5C19DE79}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSSPlugin", "VSSPlugin\VSSPlugin.csproj", "{F1F13F30-E452-42B4-9BCE-0A228FEE8C65}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSSPlugin.Test", "VSSPlugin.Test\VSSPlugin.Test.csproj", "{DFC1B086-DB8F-45F5-A734-E2C43DA409C0}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Build = Build Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Build.ActiveCfg = Build|.NET {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Build.Build.0 = Build|.NET {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Debug.ActiveCfg = Debug|.NET {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Debug.Build.0 = Debug|.NET {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Release.ActiveCfg = Release|.NET {790750BA-7FE8-402E-9D9F-9E50A6F760CD}.Release.Build.0 = Release|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Build.ActiveCfg = Build|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Build.Build.0 = Build|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Debug.ActiveCfg = Debug|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Debug.Build.0 = Debug|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Release.ActiveCfg = Release|.NET {424AFD5C-854C-459C-9134-FFBA5C19DE79}.Release.Build.0 = Release|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Build.ActiveCfg = Build|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Build.Build.0 = Build|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Debug.ActiveCfg = Debug|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Debug.Build.0 = Debug|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Release.ActiveCfg = Release|.NET {F1F13F30-E452-42B4-9BCE-0A228FEE8C65}.Release.Build.0 = Release|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Build.ActiveCfg = Build|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Build.Build.0 = Build|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Debug.ActiveCfg = Debug|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Debug.Build.0 = Debug|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.ActiveCfg = Release|.NET {DFC1B086-DB8F-45F5-A734-E2C43DA409C0}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(SolutionItems) = postSolution ..\ccnetcontrib.build = ..\ccnetcontrib.build EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:22
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/VSSPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/src/VSSPlugin Added Files: LabelProjectVisitor.cs VSSSourceControl.cs AssemblyInfo.cs ModificationList.cs CollectItemModifiedInDateRange.cs CommonAssemblyInfo.cs VSSPlugin.csproj IVssItemVisitor.cs CollectItemByLabelVisitor.cs .cvsignore Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- NEW FILE: .cvsignore --- bin obj VSSPlugin.csproj.user --- NEW FILE: CommonAssemblyInfo.cs --- using System.Reflection; //------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Runtime Version: 1.1.4322.2032 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> //------------------------------------------------------------------------------ [assembly: AssemblyVersionAttribute("0")] [assembly: AssemblyCopyrightAttribute("Copyright © 2004 ThoughtWorks Inc.")] [assembly: AssemblyCompanyAttribute("ThoughtWorks")] [assembly: AssemblyProductAttribute("CruiseControl.NET")] --- NEW FILE: LabelProjectVisitor.cs --- using SourceSafeTypeLib; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { public class LabelProjectVisitor : IVssItemVisitor { private readonly string label; public LabelProjectVisitor(string label) { this.label = label; } public void Visit(IVSSItem item) { if (IsProject(item)) item.Label(label, "CCNet label"); } private bool IsProject(IVSSItem item) { return item.Type == (int) VSSItemType.VSSITEM_PROJECT; } } } --- NEW FILE: ModificationList.cs --- using System; using System.Collections; using SourceSafeTypeLib; using ThoughtWorks.CruiseControl.Core; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { public class ModificationList { private ArrayList modifications = new ArrayList(); public void Add(IVSSVersion version, IVSSItem item) { modifications.Add(CreateModification(version, item)); } private Modification CreateModification(IVSSVersion version, IVSSItem item) { Modification mod = new Modification(); mod.ModifiedTime = version.Date; mod.Comment = version.Comment; mod.FileName = item.Name; mod.FolderName = item.Parent.Name; mod.Type = version.Action; mod.UserName = version.Username; return mod; } public Modification[] Modifications { get { return (Modification[]) modifications.ToArray(typeof (Modification)); } } } } --- NEW FILE: CollectItemByLabelVisitor.cs --- using SourceSafeTypeLib; using ThoughtWorks.CruiseControl.Core; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { public class CollectItemByLabelVisitor : IVssItemVisitor { private readonly string expectedLabel; private ModificationList modifications = new ModificationList(); public CollectItemByLabelVisitor(string expectedLabel) { this.expectedLabel = expectedLabel; } /// <summary> /// Labels are applied at a project level but are attached to all files. However, the labelled version for the file references /// the project item. /// </summary> /// <param name="item"></param> public void Visit(IVSSItem item) { if (item.Deleted) return; bool found = false; IVSSVersions versions = item.get_Versions(0); foreach (IVSSVersion version in versions) { if (!found && version.Label == expectedLabel) { modifications.Add(version, item); found = true; } } } public Modification[] Modifications { get { return modifications.Modifications; } } } } --- NEW FILE: VSSSourceControl.cs --- using System; using System.Runtime.InteropServices; using Exortech.NetReflector; using SourceSafeTypeLib; using ThoughtWorks.CruiseControl.Core; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { [ReflectorType("vssplugin")] public class VSSSourceControl : ISourceControl { [ReflectorProperty("project")] public string Project; [ReflectorProperty("srcSafeIni", Required=false)] public string SrcSafeIni; [ReflectorProperty("username", Required=false)] public string Username; [ReflectorProperty("password", Required=false)] public string Password; [ReflectorProperty("labelComment", Required=false)] public string LabelComment = "CCNet label"; [ReflectorProperty("autoGetSource", Required=false)] public bool AutoGetSource = true; public void Run(IIntegrationResult result) { result.Modifications = GetModifications(result.StartTime, DateTime.Now); } public bool ShouldRun(IIntegrationResult result) { return result.Working; } public Modification[] GetModifications(DateTime from, DateTime to) { CollectItemModifiedInDateRange visitor = new CollectItemModifiedInDateRange(from, to); VisitAllItems(GetRootProject(), visitor); return visitor.Modifications; } public Modification[] GetModifications(string label) { CollectItemByLabelVisitor visitor = new CollectItemByLabelVisitor(label); VisitAllItems(GetRootProject(), visitor); return visitor.Modifications; } /// <summary> /// A label is automatically applied recursively to all files and subprojects. /// </summary> /// <param name="label">The label to apply to the project.</param> /// <param name="timeStamp">This parameter is unused as VSS only creates a new label when it is applied to the latest version of the project.</param> public void LabelSourceControl(string label, DateTime timeStamp) { IVSSItem project = GetRootProject(); project.Label(label, LabelComment); } private void VisitAllItems(IVSSItem root, IVssItemVisitor visitor) { visitor.Visit(root); foreach (IVSSItem item in root.get_Items(true)) { visitor.Visit(item); if (IsProject(item)) VisitAllItems(item, visitor); } } private bool IsProject(IVSSItem item) { return item.Type == (int)VSSItemType.VSSITEM_PROJECT; } public void GetSource(IIntegrationResult result) { if (! AutoGetSource) return; IVSSItem project = GetRootProject(); string directory = result.WorkingDirectory; project.Get(ref directory, (int)VSSFlags.VSSFLAG_RECURSYES + (int)VSSFlags.VSSFLAG_REPREPLACE + (int)VSSFlags.VSSFLAG_USERRONO); } private IVSSItem GetRootProject() { VSSDatabase vss = OpenVssDatabase(); try { VSSItem item = vss.get_VSSItem(Project, false); if (! IsProject(item)) throw new CruiseControlException(string.Format("VSS item {0} is a file, not a project.", Project)); return item; } catch (COMException ex) { throw new CruiseControlException(string.Format("Unable to retrieve VSS root project: {0}", Project), ex); } } private VSSDatabase OpenVssDatabase() { try { VSSDatabase vss = new VSSDatabase(); vss.Open(SrcSafeIni, Username, Password); return vss; } catch (COMException ex) { throw new CruiseControlException(string.Format("Unable to connect to VSS database - {0}", ToString()), ex); } } private Modification CreateModification(IVSSVersion version) { Modification mod = new Modification(); mod.ModifiedTime = version.Date; mod.Comment = version.Comment; mod.FileName = version.VSSItem.Name; mod.FolderName = version.VSSItem.Parent.Name; mod.Type = version.Action; mod.UserName = version.Username; return mod; } public void Initialize(IProject project) { throw new NotImplementedException(); } public void Purge(IProject project) { throw new NotImplementedException(); } public override string ToString() { return string.Format("Username: {0} Password: {1} SrcSafeIni: {2}", Username, Password, SrcSafeIni); } } } --- NEW FILE: VSSPlugin.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{F1F13F30-E452-42B4-9BCE-0A228FEE8C65}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "ThoughtWorks.CruiseControl.Contrib.VSSPlugin" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = "" RootNamespace = "ThoughtWorks.CruiseControl.Contrib.VSSPlugin" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "true" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Build" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "true" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "..\..\build\VSSPlugin\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "1" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.dll" /> <Reference Name = "SourceSafeTypeLib" Guid = "{783CD4E0-9D54-11CF-B8EE-00608CC9A71F}" VersionMajor = "5" VersionMinor = "1" Lcid = "0" WrapperTool = "tlbimp" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Remote" AssemblyName = "ThoughtWorks.CruiseControl.Remote" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Remote.dll" /> <Reference Name = "NetReflector" AssemblyName = "NetReflector" HintPath = "..\..\lib\NetReflector.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Core" AssemblyName = "ThoughtWorks.CruiseControl.Core" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Core.dll" /> </References> </Build> <Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "CollectItemByLabelVisitor.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "CollectItemModifiedInDateRange.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "CommonAssemblyInfo.cs" BuildAction = "Compile" /> <File RelPath = "IVssItemVisitor.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "LabelProjectVisitor.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ModificationList.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "VSSSourceControl.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: CollectItemModifiedInDateRange.cs --- using System; using SourceSafeTypeLib; using ThoughtWorks.CruiseControl.Core; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { public class CollectItemModifiedInDateRange : IVssItemVisitor { private readonly DateTime to; private readonly DateTime from; private ModificationList modifications = new ModificationList(); public CollectItemModifiedInDateRange(DateTime from, DateTime to) { this.from = from; this.to = to; } public void Visit(IVSSItem item) { IVSSVersions versions = item.get_Versions(0); foreach (IVSSVersion version in versions) { if ((from < version.Date) && (to >= version.Date)) { modifications.Add(version, item); } } } public Modification[] Modifications { get { return modifications.Modifications; } } } } --- NEW FILE: IVssItemVisitor.cs --- using SourceSafeTypeLib; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin { public interface IVssItemVisitor { void Visit(IVSSItem item); } } --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly : AssemblyTitle("CC.NET Contrib VSS Plugin")] [assembly : AssemblyDescription("")] [assembly : AssemblyConfiguration("")] |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:22
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/src/VSSPlugin.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/src/VSSPlugin.Test Added Files: App.config FunctionalTest.cs CommonAssemblyInfo.cs AssemblyInfo.cs DirectoryDeleter.cs .cvsignore VSSSourceControlTest.cs VSSPlugin.Test.csproj Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- NEW FILE: .cvsignore --- VSSPlugin.Test.csproj.user bin obj --- NEW FILE: DirectoryDeleter.cs --- using System.IO; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Test { public class DirectoryDeleter { public static void Delete(string workingDirectory) { if (Directory.Exists(workingDirectory)) { FileSystemInfo[] fsInfos = new DirectoryInfo(workingDirectory).GetFileSystemInfos(); foreach (FileSystemInfo fsInfo in fsInfos) { fsInfo.Attributes = FileAttributes.Normal; } Directory.Delete(workingDirectory, true); } } } } --- NEW FILE: CommonAssemblyInfo.cs --- using System.Reflection; //------------------------------------------------------------------------------ // <autogenerated> // This code was generated by a tool. // Runtime Version: 1.1.4322.2032 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> //------------------------------------------------------------------------------ [assembly: AssemblyVersionAttribute("0")] [assembly: AssemblyCopyrightAttribute("Copyright © 2004 ThoughtWorks Inc.")] [assembly: AssemblyCompanyAttribute("ThoughtWorks")] [assembly: AssemblyProductAttribute("CruiseControl.NET")] --- NEW FILE: VSSSourceControlTest.cs --- using System; using System.Configuration; using System.Diagnostics; using System.IO; using Exortech.NetReflector; using NUnit.Framework; using ThoughtWorks.CruiseControl.Core; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Test { [TestFixture, Category("Functional TestFixture")] public class VSSSourceControlTest { private VSSSourceControl vss; [SetUp] public void LoadValuesFromConfigFile() { vss = new VSSSourceControl(); vss.SrcSafeIni = ConfigurationSettings.AppSettings["SrcSafeIni"]; vss.Username = ConfigurationSettings.AppSettings["Username"]; vss.Password = ConfigurationSettings.AppSettings["Password"]; vss.Project = ConfigurationSettings.AppSettings["Project"]; } [Test] public void PopulateFromXml() { string xml = @"<vssplugin autoGetSource=""false""> <srcSafeIni>D:\Program Files\Microsoft Visual Studio\VSS\srcsafe.ini</srcSafeIni> <username>bob</username> <password>brown</password> <project>$/Root</project> <labelComment>Foo</labelComment> </vssplugin>"; VSSSourceControl vss = (VSSSourceControl) NetReflector.Read(xml); Assert.AreEqual(@"D:\Program Files\Microsoft Visual Studio\VSS\srcsafe.ini", vss.SrcSafeIni); Assert.AreEqual("bob", vss.Username); Assert.AreEqual("brown", vss.Password); Assert.AreEqual("$/Root", vss.Project); Assert.AreEqual("Foo", vss.LabelComment); Assert.IsFalse(vss.AutoGetSource); } [Test] public void GetAllModifications() { DateTime from = DateTime.MinValue; DateTime to = DateTime.MaxValue; Modification[] modifications = vss.GetModifications(from, to); Assert.IsTrue(modifications.Length > 0, "No modifications returned."); Assert.IsTrue(modifications[0].ModifiedTime > from); Assert.IsTrue(modifications[0].ModifiedTime < to); Assert.IsNotNull(modifications[0].UserName); Assert.IsNotNull(modifications[0].Type); Assert.IsNotNull(modifications[0].FolderName); Assert.IsNotNull(modifications[0].FileName); } [Test, ExpectedException(typeof(CruiseControlException))] public void ShouldThrowCruiseControlExceptionIfSrcSafeIniLocationIsInvalid() { vss.SrcSafeIni = @"D:\Program Files\Microsoft Visual Studio\"; vss.GetModifications(DateTime.Today, DateTime.Now); } [Test, ExpectedException(typeof(CruiseControlException))] public void ShouldThrowCruiseControlExceptionIfProjectRootIsInvalid() { vss.Project = "does-not-exist"; vss.GetModifications(DateTime.Today, DateTime.Now); } [Test, ExpectedException(typeof(CruiseControlException))] public void ShouldThrowCruiseControlExceptionIfItemIsNotAProject() { vss.Project = "$/Refactoring/Rental.cs"; vss.GetModifications(DateTime.Today, DateTime.Now); } [Test] public void RunShouldSetModificationsOnIntegrationResult() { IntegrationResult result = new IntegrationResult(); result.StartTime = DateTime.MinValue; vss.Run(result); Assert.IsTrue(result.Modifications.Length > 0, "No modifications returned."); } [Test] public void ShouldLabelAllItemsUnderRootProject() { vss.LabelSourceControl("hello", DateTime.Now.AddDays(-2)); Modification[] mods = vss.GetModifications("hello"); Assert.IsTrue(mods.Length > 0, "No modifications returned."); } [Test] public void ShouldGetVersionOfSourceAtSpecifiedDate() { string tempPath = Path.Combine(Path.GetTempPath(), "VssPlugin"); DirectoryDeleter.Delete(tempPath); IntegrationResult result = new IntegrationResult(); result.WorkingDirectory = tempPath; vss.GetSource(result); Assert.IsTrue(Directory.Exists(result.WorkingDirectory)); Assert.IsTrue(Directory.GetFiles(result.WorkingDirectory).Length > 0, "Directory does not contain any files."); } [Test] public void ShouldNotGetSourceIfAutoGetSourceIsFalse() { string tempPath = Path.Combine(Path.GetTempPath(), "VssPlugin"); DirectoryDeleter.Delete(tempPath); IntegrationResult result = new IntegrationResult(); result.WorkingDirectory = tempPath; vss.AutoGetSource = false; vss.GetSource(result); Assert.IsFalse(Directory.Exists(tempPath)); } private void WriteOutModifications(Modification[] modifications) { foreach (Modification mod in modifications) { Debug.WriteLine(mod.ToString()); } } } } --- NEW FILE: FunctionalTest.cs --- using System; using System.Configuration; using System.IO; using System.Threading; using NUnit.Framework; using ThoughtWorks.CruiseControl.Core; using ThoughtWorks.CruiseControl.Remote; namespace ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Test { [TestFixture] public class FunctionalTest { [Test] public void RunSingleIntegration() { string workingDirectory = CreateWorkingDirectory(); string configFile = CreateConfigFile(workingDirectory); ICruiseServer server = CruiseServerFactory.CreateLocal(configFile); server.ForceBuild("vss"); Thread.Sleep(100); server.Stop(); Assert.IsTrue(Directory.Exists(workingDirectory)); } private string CreateWorkingDirectory() { string workingDirectory = Path.Combine(Path.GetTempPath(), "vssplugin"); DirectoryDeleter.Delete(workingDirectory); return workingDirectory; } private string CreateConfigFile(string workingDirectory) { string configFile = Path.GetTempFileName(); using (StreamWriter writer = File.CreateText(configFile)) { writer.Write(GetVssPluginXml(workingDirectory)); } return configFile; } private string GetVssPluginXml(string workingDirectory) { string project = ConfigurationSettings.AppSettings["Project"]; return string.Format(@"<cruisecontrol> <project name=""vss"" workingDirectory=""{0}""> <build type=""mockbuildrunner"" /> <sourcecontrol type=""vssplugin"" > <project>{1}</project> </sourcecontrol> </project> </cruisecontrol>", workingDirectory, project); } } } --- NEW FILE: VSSPlugin.Test.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.10.3077" SchemaVersion = "2.0" ProjectGuid = "{DFC1B086-DB8F-45F5-A734-E2C43DA409C0}" > <Build> <Settings ApplicationIcon = "" AssemblyKeyContainerName = "" AssemblyName = "ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Test" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Library" PreBuildEvent = "" PostBuildEvent = 'copy "$(ProjectDir)App.config" "$(TargetPath).config"' RootNamespace = "ThoughtWorks.CruiseControl.Contrib.VSSPlugin.Test" RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" NoStdLib = "false" NoWarn = "" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Build" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "true" NoStdLib = "false" NoWarn = "" Optimize = "false" OutputPath = "..\..\build\VSSPlugin.Test\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "1" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll" /> <Reference Name = "VSSPlugin" Project = "{F1F13F30-E452-42B4-9BCE-0A228FEE8C65}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> <Reference Name = "SourceSafeTypeLib" Guid = "{783CD4E0-9D54-11CF-B8EE-00608CC9A71F}" VersionMajor = "5" VersionMinor = "1" Lcid = "0" WrapperTool = "tlbimp" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Remote" AssemblyName = "ThoughtWorks.CruiseControl.Remote" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Remote.dll" /> <Reference Name = "NetReflector" AssemblyName = "NetReflector" HintPath = "..\..\lib\NetReflector.dll" /> <Reference Name = "nmock" AssemblyName = "nmock" HintPath = "..\..\lib\nmock.dll" /> <Reference Name = "nunit.core" AssemblyName = "nunit.core" HintPath = "..\..\lib\nunit.core.dll" /> <Reference Name = "nunit.framework" AssemblyName = "nunit.framework" HintPath = "..\..\lib\nunit.framework.dll" /> <Reference Name = "ThoughtWorks.CruiseControl.Core" AssemblyName = "ThoughtWorks.CruiseControl.Core" HintPath = "..\..\lib\ThoughtWorks.CruiseControl.Core.dll" /> </References> </Build> <Files> <Include> <File RelPath = "App.config" BuildAction = "None" /> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "CommonAssemblyInfo.cs" BuildAction = "Compile" /> <File RelPath = "DirectoryDeleter.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "FunctionalTest.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "VSSSourceControlTest.cs" SubType = "Code" BuildAction = "Compile" /> </Include> </Files> </CSHARP> </VisualStudioProject> --- NEW FILE: App.config --- <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <!-- <add key="SrcSafeIni" value="C:\Program Files\Microsoft Visual Studio\VSS\srcsafe.ini" /> Not required --> <add key="Username" value="Guest" /> <add key="Password" value="" /> <add key="Project" value="$/Refactoring" /> </appSettings> </configuration> --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly : AssemblyTitle("CC.NET Contrib VSS Plugin Tests")] [assembly : AssemblyDescription("")] [assembly : AssemblyConfiguration("")] |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:21
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/VSSPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/VSSPlugin Removed Files: vssplugin.build VSSPlugin.sln .cvsignore Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- vssplugin.build DELETED --- --- .cvsignore DELETED --- --- VSSPlugin.sln DELETED --- |
Update of /cvsroot/ccnetcontrib/ccnetcontrib/VSSPlugin/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/VSSPlugin/lib Removed Files: NetReflector.dll ThoughtWorks.CruiseControl.Remote.dll nunit.framework.dll ThoughtWorks.CruiseControl.Core.dll nmock.dll Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- nmock.dll DELETED --- --- nunit.framework.dll DELETED --- --- ThoughtWorks.CruiseControl.Remote.dll DELETED --- --- ThoughtWorks.CruiseControl.Core.dll DELETED --- --- NetReflector.dll DELETED --- |
From: Mike R. <mik...@us...> - 2005-01-06 04:44:21
|
Update of /cvsroot/ccnetcontrib/ccnetcontrib/VSSPlugin/VSSPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/VSSPlugin/VSSPlugin Removed Files: CollectItemByLabelVisitor.cs AssemblyInfo.cs CollectItemModifiedInDateRange.cs LabelProjectVisitor.cs VSSPlugin.csproj VSSSourceControl.cs ModificationList.cs IVssItemVisitor.cs .cvsignore Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- .cvsignore DELETED --- --- LabelProjectVisitor.cs DELETED --- --- CollectItemModifiedInDateRange.cs DELETED --- --- CollectItemByLabelVisitor.cs DELETED --- --- VSSSourceControl.cs DELETED --- --- VSSPlugin.csproj DELETED --- --- ModificationList.cs DELETED --- --- IVssItemVisitor.cs DELETED --- --- AssemblyInfo.cs DELETED --- |
Update of /cvsroot/ccnetcontrib/ccnetcontrib/VSSPlugin/VSSPlugin.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32474/VSSPlugin/VSSPlugin.Test Removed Files: App.config VSSPlugin.Test.csproj VSSSourceControlTest.cs FunctionalTest.cs .cvsignore DirectoryDeleter.cs Log Message: Moving VSSPlugin into common src tree, and adding vssplugin specific targets to build script. --- .cvsignore DELETED --- --- DirectoryDeleter.cs DELETED --- --- FunctionalTest.cs DELETED --- --- App.config DELETED --- --- VSSPlugin.Test.csproj DELETED --- --- VSSSourceControlTest.cs DELETED --- |