You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(128) |
Jun
(97) |
Jul
(13) |
Aug
(40) |
Sep
(50) |
Oct
(27) |
Nov
(7) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(18) |
Feb
(47) |
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
(32) |
Aug
|
Sep
(14) |
Oct
(22) |
Nov
|
Dec
|
From: <br...@us...> - 2009-09-05 10:14:18
|
Revision: 562 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=562&view=rev Author: brus07 Date: 2009-09-05 10:14:11 +0000 (Sat, 05 Sep 2009) Log Message: ----------- Update WinForm to work state. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx Removed Paths: ------------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-05 10:14:11 UTC (rev 562) @@ -14,4 +14,10 @@ <ProjectKind>ComponentSources</ProjectKind> </PropertyGroup> <Import Project="Reference.targets" /> + <ItemGroup> + <EmbeddedResource Include="src\csharp\main\Nera\Tester\Gui\Sample\MainForm.resx"> + <SubType>Designer</SubType> + <DependentUpon>MainForm.cs</DependentUpon> + </EmbeddedResource> + </ItemGroup> </Project> \ No newline at end of file Deleted: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-05 10:14:11 UTC (rev 562) @@ -1,38 +0,0 @@ -namespace Nera.Tester.Gui.Sample -{ - partial class MainForm - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Text = "MainForm"; - } - - #endregion - } -} \ No newline at end of file Modified: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-05 06:51:56 UTC (rev 561) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-05 10:14:11 UTC (rev 562) @@ -10,9 +10,79 @@ { public partial class MainForm : Form { + private Label label1; + private Button button1; + private TextBox textBox2; + private TextBox textBox1; + public MainForm() { InitializeComponent(); } + + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox1.Location = new System.Drawing.Point(12, 25); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox1.Size = new System.Drawing.Size(440, 126); + this.textBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(69, 13); + this.label1.TabIndex = 1; + this.label1.Text = "SourceCode:"; + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.button1.Location = new System.Drawing.Point(12, 157); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(440, 23); + this.button1.TabIndex = 2; + this.button1.Text = "Submit"; + this.button1.UseVisualStyleBackColor = true; + // + // textBox2 + // + this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox2.Location = new System.Drawing.Point(12, 186); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBox2.Size = new System.Drawing.Size(440, 68); + this.textBox2.TabIndex = 3; + // + // MainForm + // + this.ClientSize = new System.Drawing.Size(464, 266); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.button1); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.Name = "MainForm"; + this.Text = "MainForm"; + this.ResumeLayout(false); + this.PerformLayout(); + + } } } \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.resx 2009-09-05 10:14:11 UTC (rev 562) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ 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: <br...@us...> - 2009-09-05 06:52:02
|
Revision: 561 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=561&view=rev Author: brus07 Date: 2009-09-05 06:51:56 +0000 (Sat, 05 Sep 2009) Log Message: ----------- Forget to delete old file with last commit. Removed Paths: ------------- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln Deleted: nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln 2009-09-05 06:47:48 UTC (rev 560) +++ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln 2009-09-05 06:51:56 UTC (rev 561) @@ -1,21 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.Build.0 = Debug|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-05 06:47:57
|
Revision: 560 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=560&view=rev Author: brus07 Date: 2009-09-05 06:47:48 +0000 (Sat, 05 Sep 2009) Log Message: ----------- Fixed syntax error. Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln Copied: nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln (from rev 558, nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln) =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui.sample VS 2005.sln 2009-09-05 06:47:48 UTC (rev 560) @@ -0,0 +1,21 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-01 21:21:43
|
Revision: 559 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=559&view=rev Author: brus07 Date: 2009-09-01 21:21:33 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Added new empty main form. Modified Paths: -------------- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj Added Paths: ----------- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs Property Changed: ---------------- nera/projects/nera.tester.gui.sample/trunk/ Property changes on: nera/projects/nera.tester.gui.sample/trunk ___________________________________________________________________ Modified: svn:ignore - *.suo + *.suo build obj Modified: nera/projects/nera.tester.gui.sample/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-01 19:26:14 UTC (rev 558) +++ nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-01 21:21:33 UTC (rev 559) @@ -19,6 +19,8 @@ <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> </ItemGroup> <Choose> Modified: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-01 19:26:14 UTC (rev 558) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-01 21:21:33 UTC (rev 559) @@ -3,7 +3,7 @@ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{EF5E06AD-7D8A-476c-AFDB-9BACFB144615}</ProjectGuid> + <ProjectGuid>{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}</ProjectGuid> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -13,7 +13,5 @@ <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> <ProjectKind>ComponentSources</ProjectKind> </PropertyGroup> - <Import Project="Reference.targets" /> - </Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.Designer.cs 2009-09-01 21:21:33 UTC (rev 559) @@ -0,0 +1,38 @@ +namespace Nera.Tester.Gui.Sample +{ + partial class MainForm + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "MainForm"; + } + + #endregion + } +} \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/MainForm.cs 2009-09-01 21:21:33 UTC (rev 559) @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace Nera.Tester.Gui.Sample +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + } +} \ 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: <br...@us...> - 2009-09-01 19:37:42
|
Revision: 558 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=558&view=rev Author: brus07 Date: 2009-09-01 19:26:14 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Create new project for sample GUI. Added Paths: ----------- nera/projects/nera.tester.gui.sample/ nera/projects/nera.tester.gui.sample/branches/ nera/projects/nera.tester.gui.sample/tags/ nera/projects/nera.tester.gui.sample/trunk/ nera/projects/nera.tester.gui.sample/trunk/Build.dependencies nera/projects/nera.tester.gui.sample/trunk/Build.version nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj nera/projects/nera.tester.gui.sample/trunk/Reference.targets nera/projects/nera.tester.gui.sample/trunk/docs/ nera/projects/nera.tester.gui.sample/trunk/docs/build help.txt nera/projects/nera.tester.gui.sample/trunk/go.bat nera/projects/nera.tester.gui.sample/trunk/lib/ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln nera/projects/nera.tester.gui.sample/trunk/resources/ nera/projects/nera.tester.gui.sample/trunk/src/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/main/Nera/Tester/Gui/Sample/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/tests/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/tests/Nera/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/tests/Nera/Tester/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/tests/Nera/Tester/Gui/ nera/projects/nera.tester.gui.sample/trunk/src/csharp/tests/Nera/Tester/Gui/Sample/ nera/projects/nera.tester.gui.sample/trunk/test_files/ Property changes on: nera/projects/nera.tester.gui.sample/trunk ___________________________________________________________________ Added: svn:ignore + *.suo Added: nera/projects/nera.tester.gui.sample/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Build.dependencies (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Build.dependencies 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <!--Directory structure of the component.--> + <BuildDir>build</BuildDir> + <BuildClassDir>$(BuildDir)\classes</BuildClassDir> + <SrcDir>src</SrcDir> + <TestFilesDir>test_files</TestFilesDir> + <BuildObjDir>obj</BuildObjDir> + <!--Src directory structure.--> + <DotNetSrc>$(SrcDir)\csharp</DotNetSrc> + <DotNetMain>$(DotNetSrc)\main</DotNetMain> + <OutputPath>$(BuildClassDir)</OutputPath> + <OutputType>Library</OutputType> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> + </PropertyGroup> + + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + + <Choose> + <When Condition="$(ProjectKind)=='ComponentSources'"> + <!--Component sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage)</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetMain)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + </When> + <When Condition="$(ProjectKind)=='ComponentTests'"> + <!--Component test sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage).Test</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).Test.xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetSrc)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + <ItemGroup> + <Reference Include="nunit.framework"> + <SpecificVersion>False</SpecificVersion> + <HintPath>$(NUnit)</HintPath> + </Reference> + </ItemGroup> + </When> + </Choose> +</Project> Added: nera/projects/nera.tester.gui.sample/trunk/Build.version =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Build.version (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Build.version 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,12 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<PropertyGroup> + <!-- Component Name and Version Information --> + <ComponentName>Nera.Tester.Gui.Sample</ComponentName> + <ComponentDistFileName>nera.tester.gui.sample</ComponentDistFileName> + <ComponentPackage>Nera.Tester.Gui.Sample</ComponentPackage> + <ComponentVersionMajor>1</ComponentVersionMajor> + <ComponentVersionMinor>0</ComponentVersionMinor> + <ComponentVersionMicro>99</ComponentVersionMicro> + <ComponentVersionBuild>99</ComponentVersionBuild> + </PropertyGroup> +</Project> Added: nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Component Sources.csproj 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,19 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{EF5E06AD-7D8A-476c-AFDB-9BACFB144615}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentSources</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + +</Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Component Tests.csproj 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,19 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{FF0BA05D-5DEB-4b8c-898A-146C2D43B6EA}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentTests</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + +</Project> \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/Reference.targets =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/Reference.targets (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/Reference.targets 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="Build.version" /> + <Import Project="Build.dependencies" Condition="!Exists('Bamboo.Build.Dependencies')" /> + <PropertyGroup> + <GlobalTargetsPath>..\..\..\Targets\Global.targets</GlobalTargetsPath> + <CommonTargetsFile>..\..\..\Targets\Common.targets</CommonTargetsFile> + </PropertyGroup> + <Import Project="$(GlobalTargetsPath)" Condition="Exists($(GlobalTargetsPath))" /> + <Import Project="$(DistributionTargetsFile)" Condition="Exists($(DistributionTargetsFile))" /> + <Import Project="$(CommonTargetsFile)" Condition="Exists($(CommonTargetsFile))" /> +</Project> Added: nera/projects/nera.tester.gui.sample/trunk/docs/build help.txt =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/docs/build help.txt (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/docs/build help.txt 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,11 @@ +For build component: +go.bat "Component Sources.csproj" /t:build + +For build test project: +go.bat "Component Tests.csproj" /t:build + +For clean solution: +go.bat "Component Sources.csproj" /t:CleanSolution + +For testing solution: +go.bat "Component Tests.csproj" /t:test \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/go.bat =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/go.bat (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/go.bat 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1 @@ +%windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe %* \ No newline at end of file Added: nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln =================================================================== --- nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln (rev 0) +++ nera/projects/nera.tester.gui.sample/trunk/nera.tester.gui,sample VS 2005.sln 2009-09-01 19:26:14 UTC (rev 558) @@ -0,0 +1,21 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{EF5E06AD-7D8A-476C-AFDB-9BACFB144615}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EF5E06AD-7D8A-476C-AFDB-9BACFB144615}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF0BA05D-5DEB-4B8C-898A-146C2D43B6EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-01 18:50:35
|
Revision: 557 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=557&view=rev Author: brus07 Date: 2009-09-01 18:50:23 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Change old Data library to new Nera.Tester.Data. Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/Build.dependencies nera/projects/nera.tester.runner/trunk/Component Sources.csproj nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs Added Paths: ----------- nera/projects/nera.tester.runner/trunk/lib/Nera.Tester.Data.dll Removed Paths: ------------- nera/projects/nera.tester.runner/trunk/lib/Data.dll Modified: nera/projects/nera.tester.runner/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.runner/trunk/Build.dependencies 2009-09-01 18:29:54 UTC (rev 556) +++ nera/projects/nera.tester.runner/trunk/Build.dependencies 2009-09-01 18:50:23 UTC (rev 557) @@ -20,9 +20,9 @@ <SpecificVersion>False</SpecificVersion> <HintPath>lib\AcmLibraryExtention.dll</HintPath> </Reference> - <Reference Include="Data, Version=1.0.3482.26403, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Nera.Tester.Data, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Data.dll</HintPath> + <HintPath>lib\Nera.Tester.Data.dll</HintPath> </Reference> <Reference Include="Load, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> Modified: nera/projects/nera.tester.runner/trunk/Component Sources.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/Component Sources.csproj 2009-09-01 18:29:54 UTC (rev 556) +++ nera/projects/nera.tester.runner/trunk/Component Sources.csproj 2009-09-01 18:50:23 UTC (rev 557) @@ -13,9 +13,7 @@ <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> <ProjectKind>ComponentSources</ProjectKind> </PropertyGroup> - <Import Project="Reference.targets" /> - <ItemGroup> <Content Include="resources\AllowedFunc.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> Deleted: nera/projects/nera.tester.runner/trunk/lib/Data.dll =================================================================== (Binary files differ) Added: nera/projects/nera.tester.runner/trunk/lib/Nera.Tester.Data.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/lib/Nera.Tester.Data.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs 2009-09-01 18:29:54 UTC (rev 556) +++ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs 2009-09-01 18:50:23 UTC (rev 557) @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.IO; using AcmContester.Library.LibraryExtention; -using AcmContester.Library.LibraryExtention.Data; +using Nera.Tester.Data; using Main; using Test; Modified: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs 2009-09-01 18:29:54 UTC (rev 556) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs 2009-09-01 18:50:23 UTC (rev 557) @@ -3,7 +3,7 @@ using System.Text; using NUnit.Framework; using System.IO; -using AcmContester.Library.LibraryExtention.Data; +using Nera.Tester.Data; namespace Nera.Tester.Runner.Test { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-01 18:30:08
|
Revision: 556 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=556&view=rev Author: brus07 Date: 2009-09-01 18:29:54 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Added UnitTest files. Added Paths: ----------- nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/ReaderHelper.cs nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/SubmitUnitTests.cs nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/TestsHelper.cs nera/projects/nera.tester.data/trunk/test_files/submit/ nera/projects/nera.tester.data/trunk/test_files/submit/empty.xml Added: nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/ReaderHelper.cs =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/ReaderHelper.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/ReaderHelper.cs 2009-09-01 18:29:54 UTC (rev 556) @@ -0,0 +1,19 @@ +using System; +using NUnit.Framework; +using System.IO; + +namespace Nera.Tester.Data.Test +{ + class ReaderHelper + { + public static string ReadTextFromFile(string fileAddress) + { + string result = ""; + using (StreamReader sr = System.IO.File.OpenText(fileAddress)) + { + result = sr.ReadToEnd(); + } + return result; + } + } +} Added: nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/SubmitUnitTests.cs =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/SubmitUnitTests.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/SubmitUnitTests.cs 2009-09-01 18:29:54 UTC (rev 556) @@ -0,0 +1,25 @@ +using NUnit.Framework; +using System; + +namespace Nera.Tester.Data.Test +{ + [TestFixture] + public class SubmitUnitTests + { + [Test] + public void TestGetHashCode() + { + Submit submit = new Submit(); + submit.id = 123321; + Assert.AreEqual(submit.GetHashCode(), 123321, "The value is incorect"); + } + + [Test] + public void TestToStringEmpty() + { + Submit submit = new Submit(); + string submitEmptyXML = ReaderHelper.ReadTextFromFile(TestsHelper.SubmitEmptyXMLFile); + Assert.AreEqual(submit.ToString(), submitEmptyXML, "The value must be equal"); + } + } +} Added: nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/TestsHelper.cs =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/TestsHelper.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/TestsHelper.cs 2009-09-01 18:29:54 UTC (rev 556) @@ -0,0 +1,10 @@ +using System; +using System.Text; + +namespace Nera.Tester.Data.Test +{ + class TestsHelper + { + internal const string SubmitEmptyXMLFile = "../../test_files/submit/empty.xml"; + } +} Added: nera/projects/nera.tester.data/trunk/test_files/submit/empty.xml =================================================================== --- nera/projects/nera.tester.data/trunk/test_files/submit/empty.xml (rev 0) +++ nera/projects/nera.tester.data/trunk/test_files/submit/empty.xml 2009-09-01 18:29:54 UTC (rev 556) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-16"?> +<submit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <id>0</id> + <problem>0</problem> + <language>0</language> +</submit> \ 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: <br...@us...> - 2009-09-01 17:51:03
|
Revision: 555 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=555&view=rev Author: brus07 Date: 2009-09-01 17:50:53 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Insert existing source files. Added Paths: ----------- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Result.cs nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/ResultIoi.cs nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Submit.cs nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/SubmitIoi.cs nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/TestResIoi.cs Copied: nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Result.cs (from rev 520, ACMServer/trunk/ACMServer/Library/Data/Result.cs) =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Result.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Result.cs 2009-09-01 17:50:53 UTC (rev 555) @@ -0,0 +1,66 @@ +using System.Xml.Serialization; +using AcmContester.AcmLibraryExtention.XML; + +namespace Nera.Tester.Data +{ + [XmlRoot("result")] + public class Result + { + [XmlElement("submit", typeof(Submit))] + public Submit Submit + { + get + { + return submit; + } + set + { + submit = value; + } + } + private Submit submit; + [XmlElement("res", typeof(string))] + public string res; + [XmlElement("result", typeof(int))] + public int result; + [XmlElement("usedTime", typeof(double))] + public double usedTime; + [XmlElement("usedMemory", typeof(int))] + public int usedMemory; + [XmlElement("compOutput", typeof(string))] + public string compOutput; + + readonly string temp; + + public Result() + { + } + + public Result(Submit ssubmit) + { + submit = ssubmit; + } + + public Result(string message) + { + //TODO + temp = message.Substring(0, message.IndexOf('$')); + string s = message.Substring(message.IndexOf('$') + 1); + submit = new Submit(s); + } + + public static Result CreateFromXml(string message) + { + return XmlHelper.GetObject<Result>(message, "result", "data.xsd"); + } + + public override string ToString() + { + return temp; + } + public string ToStringX() + { + return XmlSerializer<Result>.Serialization(this); + } + } +} Copied: nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/ResultIoi.cs (from rev 520, ACMServer/trunk/ACMServer/Library/Data/ResultIoi.cs) =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/ResultIoi.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/ResultIoi.cs 2009-09-01 17:50:53 UTC (rev 555) @@ -0,0 +1,80 @@ +using System.Xml.Serialization; +using AcmContester.AcmLibraryExtention.XML; + +namespace Nera.Tester.Data +{ + [XmlRoot("resultioi")] + public class ResultIoi + { + [XmlElement("submitioi", typeof(SubmitIoi))] + public SubmitIoi Submit + { + get + { + return submit; + } + set + { + submit = value; + } + } + private SubmitIoi submit; + [XmlElement("res", typeof(string))] + public string res; + [XmlElement("result", typeof(int))] + public int result; + [XmlElement("usedTime", typeof(double))] + public double usedTime; + [XmlElement("usedMemory", typeof(int))] + public int usedMemory; + [XmlElement("compOutput",typeof(string))] + public string compOutput; + [XmlElement("testResults", typeof(TestResIoi[]))] + public TestResIoi[] testResults; + + readonly string temp; + + public ResultIoi() + { + } + + public ResultIoi(SubmitIoi ssubmit) + { + submit = ssubmit; + } + + public ResultIoi(string message) + { + //TODO + temp = message.Substring(0, message.IndexOf('$')); + string s = message.Substring(message.IndexOf('$') + 1); + submit = new SubmitIoi(s); + } + + public static ResultIoi CreateFromXml(string message) + { + return XmlHelper.GetObject<ResultIoi>(message, "resultioi", "data.xsd"); + } + + public override string ToString() + { + return temp; + } + public string ToStringX() + { + return XmlSerializer<ResultIoi>.Serialization(this); + } + + public Result ToResult() + { + Result result = new Result(); + result.res = res; + result.result = this.result; + result.usedMemory = usedMemory; + result.usedTime = usedTime; + result.compOutput = compOutput; + result.Submit = this.Submit.submit; + return result; + } + } +} Copied: nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Submit.cs (from rev 520, ACMServer/trunk/ACMServer/Library/Data/Submit.cs) =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Submit.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/Submit.cs 2009-09-01 17:50:53 UTC (rev 555) @@ -0,0 +1,48 @@ +using System; +using AcmContester.AcmLibraryExtention.XML; +using System.Xml.Serialization; + +namespace Nera.Tester.Data +{ + [XmlRoot("submit")] + public class Submit + { + [XmlElement("id", typeof(int))] + public int id; + [XmlElement("problem", typeof(int))] + public int pbolemID; + [XmlElement("sourceCode", typeof(string))] + public string sourceCode; + [XmlElement("language", typeof(int))] + public int language; + + public Submit() + { + } + + public Submit(string message) + { + //TODO: + id = Convert.ToInt32(message.Substring(0,message.IndexOf('$'))); + sourceCode = message.Substring(message.IndexOf('$')+1); + } + + public static Submit CreateFromXml(string message) + { + return XmlHelper.GetObject<Submit>(message, "submit", "data.xsd"); + } + + //HACK: \xE4\xEB\xFF \xF2\xE5\xF1\xF2\xF3 \xF5\xE0\xE9 \xE1\xF3\xE4\xE5 \xF2\xE0\xEA, \xE0\xEB\xE5 \xEC\xE0\xBA \xE1\xF3\xF2\xE8 \xF7\xE5\xF0\xE5\xE7 XML + public override string ToString() + { + //string result = sourceCode; + string result = XmlSerializer<Submit>.Serialization(this); + return result; + } + + public override int GetHashCode() + { + return id; + } + } +} Copied: nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/SubmitIoi.cs (from rev 520, ACMServer/trunk/ACMServer/Library/Data/SubmitIoi.cs) =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/SubmitIoi.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/SubmitIoi.cs 2009-09-01 17:50:53 UTC (rev 555) @@ -0,0 +1,47 @@ +using System; +using AcmContester.AcmLibraryExtention.XML; +using System.Xml.Serialization; + +namespace Nera.Tester.Data +{ + [XmlRoot("submitioi")] + public class SubmitIoi + { + [XmlElement("submit", typeof(Submit))] + public Submit submit; + [XmlElement("name", typeof(string))] + public string name; + [XmlElement("form", typeof(int))] + public int form; + [XmlElement("school", typeof(string))] + public string school; + + public SubmitIoi() + { + } + + public SubmitIoi(string message) + { + //TODO: + throw new Exception(); + } + + public static SubmitIoi CreateFromXml(string message) + { + return XmlHelper.GetObject<SubmitIoi>(message, "submitioi", "data.xsd"); + } + + //HACK: \xE4\xEB\xFF \xF2\xE5\xF1\xF2\xF3 \xF5\xE0\xE9 \xE1\xF3\xE4\xE5 \xF2\xE0\xEA, \xE0\xEB\xE5 \xEC\xE0\xBA \xE1\xF3\xF2\xE8 \xF7\xE5\xF0\xE5\xE7 XML + public override string ToString() + { + //string result = sourceCode; + string result = XmlSerializer<SubmitIoi>.Serialization(this); + return result; + } + + public override int GetHashCode() + { + return submit.GetHashCode(); + } + } +} Copied: nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/TestResIoi.cs (from rev 520, ACMServer/trunk/ACMServer/Library/Data/TestResIoi.cs) =================================================================== --- nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/TestResIoi.cs (rev 0) +++ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/TestResIoi.cs 2009-09-01 17:50:53 UTC (rev 555) @@ -0,0 +1,34 @@ +using System.Xml.Serialization; +using AcmContester.AcmLibraryExtention.XML; + +namespace Nera.Tester.Data +{ + [XmlRoot("testResultIoi")] + public class TestResIoi + { + [XmlElement("id", typeof(int))] + public int id; + [XmlElement("res", typeof(string))] + public string res; + [XmlElement("usedTime", typeof(double))] + public double usedTime; + [XmlElement("usedMemory", typeof(int))] + public int usedMemory; + [XmlElement("input", typeof(string))] + public string input; + [XmlElement("output", typeof(string))] + public string output; + [XmlElement("contestantOutput", typeof(string))] + public string contestantOutput; + [XmlElement("point", typeof(int))] + public int points; + + public TestResIoi() + { + res = ""; + input = ""; + output = ""; + contestantOutput = ""; + } + } +} \ 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: <br...@us...> - 2009-09-01 17:47:33
|
Revision: 554 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=554&view=rev Author: brus07 Date: 2009-09-01 17:47:25 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Auto update solution file. Modified Paths: -------------- nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln Modified: nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln =================================================================== --- nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln 2009-09-01 13:00:45 UTC (rev 553) +++ nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln 2009-09-01 17:47:25 UTC (rev 554) @@ -3,7 +3,7 @@ # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{F25399A7-23F8-41c1-BE01-66EF4A608DFD}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{F25399A7-23F8-41C1-BE01-66EF4A608DFD}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -12,8 +12,8 @@ GlobalSection(ProjectConfigurationPlatforms) = postSolution {30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F25399A7-23F8-41c1-BE01-66EF4A608DFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F25399A7-23F8-41c1-BE01-66EF4A608DFD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F25399A7-23F8-41C1-BE01-66EF4A608DFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F25399A7-23F8-41C1-BE01-66EF4A608DFD}.Debug|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-01 13:00:55
|
Revision: 553 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=553&view=rev Author: brus07 Date: 2009-09-01 13:00:45 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Create clean solution. Added Paths: ----------- nera/projects/nera.tester.data/trunk/Build.dependencies nera/projects/nera.tester.data/trunk/Build.version nera/projects/nera.tester.data/trunk/Component Sources.csproj nera/projects/nera.tester.data/trunk/Component Tests.csproj nera/projects/nera.tester.data/trunk/Reference.targets nera/projects/nera.tester.data/trunk/docs/build help.txt nera/projects/nera.tester.data/trunk/go.bat nera/projects/nera.tester.data/trunk/lib/AcmLibraryExtention.dll nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln Added: nera/projects/nera.tester.data/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.data/trunk/Build.dependencies (rev 0) +++ nera/projects/nera.tester.data/trunk/Build.dependencies 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <!--Directory structure of the component.--> + <BuildDir>build</BuildDir> + <BuildClassDir>$(BuildDir)\classes</BuildClassDir> + <SrcDir>src</SrcDir> + <TestFilesDir>test_files</TestFilesDir> + <BuildObjDir>obj</BuildObjDir> + <!--Src directory structure.--> + <DotNetSrc>$(SrcDir)\csharp</DotNetSrc> + <DotNetMain>$(DotNetSrc)\main</DotNetMain> + <OutputPath>$(BuildClassDir)</OutputPath> + <OutputType>Library</OutputType> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> + </PropertyGroup> + + <ItemGroup> + <Reference Include="AcmLibraryExtention, Version=1.0.3482.26401, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\AcmLibraryExtention.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + + <Choose> + <When Condition="$(ProjectKind)=='ComponentSources'"> + <!--Component sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage)</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetMain)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + </When> + <When Condition="$(ProjectKind)=='ComponentTests'"> + <!--Component test sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage).Test</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).Test.xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetSrc)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + <ItemGroup> + <Reference Include="nunit.framework"> + <SpecificVersion>False</SpecificVersion> + <HintPath>$(NUnit)</HintPath> + </Reference> + </ItemGroup> + </When> + </Choose> +</Project> Added: nera/projects/nera.tester.data/trunk/Build.version =================================================================== --- nera/projects/nera.tester.data/trunk/Build.version (rev 0) +++ nera/projects/nera.tester.data/trunk/Build.version 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,12 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<PropertyGroup> + <!-- Component Name and Version Information --> + <ComponentName>Nera.Tester.Data</ComponentName> + <ComponentDistFileName>nera.tester.data</ComponentDistFileName> + <ComponentPackage>Nera.Tester.Data</ComponentPackage> + <ComponentVersionMajor>1</ComponentVersionMajor> + <ComponentVersionMinor>1</ComponentVersionMinor> + <ComponentVersionMicro>99</ComponentVersionMicro> + <ComponentVersionBuild>99</ComponentVersionBuild> + </PropertyGroup> +</Project> Copied: nera/projects/nera.tester.data/trunk/Component Sources.csproj (from rev 520, ACMServer/trunk/ACMServer/Library/Data/Data.csproj) =================================================================== --- nera/projects/nera.tester.data/trunk/Component Sources.csproj (rev 0) +++ nera/projects/nera.tester.data/trunk/Component Sources.csproj 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,19 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentSources</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + +</Project> \ No newline at end of file Added: nera/projects/nera.tester.data/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.data/trunk/Component Tests.csproj (rev 0) +++ nera/projects/nera.tester.data/trunk/Component Tests.csproj 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,19 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{F25399A7-23F8-41c1-BE01-66EF4A608DFD}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentTests</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + +</Project> \ No newline at end of file Added: nera/projects/nera.tester.data/trunk/Reference.targets =================================================================== --- nera/projects/nera.tester.data/trunk/Reference.targets (rev 0) +++ nera/projects/nera.tester.data/trunk/Reference.targets 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="Build.version" /> + <Import Project="Build.dependencies" Condition="!Exists('Bamboo.Build.Dependencies')" /> + <PropertyGroup> + <GlobalTargetsPath>..\..\..\Targets\Global.targets</GlobalTargetsPath> + <CommonTargetsFile>..\..\..\Targets\Common.targets</CommonTargetsFile> + </PropertyGroup> + <Import Project="$(GlobalTargetsPath)" Condition="Exists($(GlobalTargetsPath))" /> + <Import Project="$(DistributionTargetsFile)" Condition="Exists($(DistributionTargetsFile))" /> + <Import Project="$(CommonTargetsFile)" Condition="Exists($(CommonTargetsFile))" /> +</Project> Added: nera/projects/nera.tester.data/trunk/docs/build help.txt =================================================================== --- nera/projects/nera.tester.data/trunk/docs/build help.txt (rev 0) +++ nera/projects/nera.tester.data/trunk/docs/build help.txt 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,11 @@ +For build component: +go.bat "Component Sources.csproj" /t:build + +For build test project: +go.bat "Component Tests.csproj" /t:build + +For clean solution: +go.bat "Component Sources.csproj" /t:CleanSolution + +For testing solution: +go.bat "Component Tests.csproj" /t:test \ No newline at end of file Added: nera/projects/nera.tester.data/trunk/go.bat =================================================================== --- nera/projects/nera.tester.data/trunk/go.bat (rev 0) +++ nera/projects/nera.tester.data/trunk/go.bat 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1 @@ +%windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe %* \ No newline at end of file Added: nera/projects/nera.tester.data/trunk/lib/AcmLibraryExtention.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.data/trunk/lib/AcmLibraryExtention.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln =================================================================== --- nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln (rev 0) +++ nera/projects/nera.tester.data/trunk/nera.tester.data VS 2005.sln 2009-09-01 13:00:45 UTC (rev 553) @@ -0,0 +1,21 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{F25399A7-23F8-41c1-BE01-66EF4A608DFD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30C0EFA3-36A8-4C6F-8FEC-28F771D4933F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F25399A7-23F8-41c1-BE01-66EF4A608DFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F25399A7-23F8-41c1-BE01-66EF4A608DFD}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-09-01 12:57:46
|
Revision: 552 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=552&view=rev Author: brus07 Date: 2009-09-01 12:57:37 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Create new project nara.tester.data. Initialize folder structure (now empty). Added Paths: ----------- nera/projects/nera.tester.data/ nera/projects/nera.tester.data/branches/ nera/projects/nera.tester.data/tags/ nera/projects/nera.tester.data/trunk/ nera/projects/nera.tester.data/trunk/docs/ nera/projects/nera.tester.data/trunk/lib/ nera/projects/nera.tester.data/trunk/resources/ nera/projects/nera.tester.data/trunk/src/ nera/projects/nera.tester.data/trunk/src/csharp/ nera/projects/nera.tester.data/trunk/src/csharp/main/ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/ nera/projects/nera.tester.data/trunk/src/csharp/main/Nera/Tester/Data/ nera/projects/nera.tester.data/trunk/src/csharp/tests/ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/ nera/projects/nera.tester.data/trunk/src/csharp/tests/Nera/Tester/Data/ nera/projects/nera.tester.data/trunk/test_files/ Property changes on: nera/projects/nera.tester.data/trunk ___________________________________________________________________ Added: svn:ignore + *.suo build obj This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-27 09:38:19
|
Revision: 551 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=551&view=rev Author: brus07 Date: 2009-07-27 09:38:12 +0000 (Mon, 27 Jul 2009) Log Message: ----------- Bug fix: destination address of test files. Now copy test file (Plugin.dll) in MSBuild script file (remove from NUnit code). Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/Component Tests.csproj nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs Modified: nera/projects/nera.tester.runner/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/Component Tests.csproj 2009-07-26 00:16:30 UTC (rev 550) +++ nera/projects/nera.tester.runner/trunk/Component Tests.csproj 2009-07-27 09:38:12 UTC (rev 551) @@ -18,9 +18,11 @@ <ItemGroup> <MySourceFiles Include="$(TestFilesDir)\test1\**\*.*" Exclude="$(TestFilesDir)\test1\**\.svn\**\*.*" /> + <PluginDllFile Include="$(TestFilesDir)\lib\Plugin.dll" /> </ItemGroup> <Target Name="TestSetup" DependsOnTargets="Build"> - <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'$(OutputPath)\%(RecursiveDir)%(Filename)%(Extension)')" /> + <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> + <Copy SourceFiles="@(PluginDllFile)" DestinationFiles="@(PluginDllFile->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> </Target> </Project> \ No newline at end of file Modified: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs 2009-07-26 00:16:30 UTC (rev 550) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs 2009-07-27 09:38:12 UTC (rev 551) @@ -6,31 +6,6 @@ [TestFixture] public class DemoTester { - private const string PluginFileAddres = "../../test_files/lib/Plugin.dll"; - private const string PluginFileName = "Plugin.dll"; - - /// <summary> - /// <para> - /// Sets up the test environment. - /// </para> - /// </summary> - [SetUp] - public void SetUp() - { - System.IO.File.Copy(PluginFileAddres, PluginFileName, true); - } - - /// <summary> - /// <para> - /// Cleans up the test environment. - /// </para> - /// </summary> - [TearDown] - public void TearDown() - { - System.IO.File.Delete(PluginFileName); - } - [Test] public void SubmitTest1() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-26 00:16:44
|
Revision: 550 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=550&view=rev Author: brus07 Date: 2009-07-26 00:16:30 +0000 (Sun, 26 Jul 2009) Log Message: ----------- Added new Task to msbuild script file: Test (for NUnit testing solution). Include used MSBuild.Community.Tasks. But now used absolute my path to main folder (for other, please change Global.targets <MainPath>). Modified Paths: -------------- nera/Targets/Common.targets nera/Targets/Global.targets nera/projects/nera.tester.runner/trunk/Component Tests.csproj nera/projects/nera.tester.runner/trunk/docs/build help.txt Modified: nera/Targets/Common.targets =================================================================== --- nera/Targets/Common.targets 2009-07-25 23:26:26 UTC (rev 549) +++ nera/Targets/Common.targets 2009-07-26 00:16:30 UTC (rev 550) @@ -2,6 +2,11 @@ <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> + <!-- MSBuild Community tasks are used on some of the targets because they provide useful tasks as + Nunit, Zip, etc. + --> + <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/> + <PropertyGroup> <ComponentVersion>$(ComponentVersionMajor).$(ComponentVersionMinor).$(ComponentVersionMicro)</ComponentVersion> <ComponentPath>$(ComponentDistFileName)\$(ComponentVersion)</ComponentPath> @@ -28,8 +33,39 @@ </Choose> <Target Name="CleanSolution"> + <MSBuild Targets="Clean" + Projects="$(MSBuildProjectDirectory)\Component Sources.csproj"/> + <MSBuild Targets="Clean" + Projects="$(MSBuildProjectDirectory)\Component Tests.csproj"/> <RemoveDir Directories="$(BuildDir)"/> <RemoveDir Directories="$(TestLogDir)"/> <RemoveDir Directories="$(BuildObjDir)"/> </Target> + + <Target Name="TestSetup" DependsOnTargets="Build" /> + <Target Name="TestTearDown" DependsOnTargets="Build" /> + + <!-- Run Unit tests --> + <Target Name="Test" + DependsOnTargets="Build" + Condition="$(ProjectKind)=='ComponentTests'"> + + <CallTarget Targets="TestSetup"/> + <MakeDir Directories="$(TestLogDir)" Condition="!Exists('$(TestLogDir)')"/> + <Message Text="NUnit utility was not found. Please check its path in Global.targets file or the definition for "NUnitConsole" property from above in this file." + Condition="!Exists('$(Nunit)')"/> + + <Message Text="Starting NUnit test run ..."/> + <NUnit Assemblies="$(BuildClassDir)\$(ComponentPackage).Test.$(ComponentPackageExtension)" + OutputXmlFile="$(TestLogDir)\$(ComponentPackage).Test.$(ComponentPackageExtension)-results.xml" + ToolPath="$(NunitDir)" + ContinueOnError="true" + WorkingDirectory="$(MSBuildProjectDirectory)"/> + <Xslt Inputs="$(TestLogDir)\$(ComponentPackage).Test.$(ComponentPackageExtension)-results.xml" + Xsl="$(NunitSummaryTransform)" + Output="$(TestLogDir)\$(ComponentPackage).Test.$(ComponentPackageExtension)-results.txt" + Condition="Exists('$(NunitSummaryTransform)')"/> + <CallTarget Targets="TestTearDown"/> + </Target> + </Project> Modified: nera/Targets/Global.targets =================================================================== --- nera/Targets/Global.targets 2009-07-25 23:26:26 UTC (rev 549) +++ nera/Targets/Global.targets 2009-07-26 00:16:30 UTC (rev 550) @@ -1,8 +1,10 @@ <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> - <MainPath>..</MainPath> + <MainPath>d:\Documents\Contester\System\svn\nera</MainPath> <ToolsDir>$(MainPath)\tools</ToolsDir> + <MSBuildCommunityTasksPath>$(ToolsDir)\MSBuild.Community.Tasks.v1.2.0.306\Build</MSBuildCommunityTasksPath> + <!-- Reference to NUnit --> <NUnitDir>$(ToolsDir)\nunit-v2.2.8\bin</NUnitDir> <NUnit>$(NUnitDir)\nunit.framework.dll</NUnit> Modified: nera/projects/nera.tester.runner/trunk/Component Tests.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/Component Tests.csproj 2009-07-25 23:26:26 UTC (rev 549) +++ nera/projects/nera.tester.runner/trunk/Component Tests.csproj 2009-07-26 00:16:30 UTC (rev 550) @@ -16,4 +16,11 @@ <Import Project="Reference.targets" /> + <ItemGroup> + <MySourceFiles Include="$(TestFilesDir)\test1\**\*.*" Exclude="$(TestFilesDir)\test1\**\.svn\**\*.*" /> + </ItemGroup> + <Target Name="TestSetup" DependsOnTargets="Build"> + <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'$(OutputPath)\%(RecursiveDir)%(Filename)%(Extension)')" /> + </Target> + </Project> \ No newline at end of file Modified: nera/projects/nera.tester.runner/trunk/docs/build help.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/docs/build help.txt 2009-07-25 23:26:26 UTC (rev 549) +++ nera/projects/nera.tester.runner/trunk/docs/build help.txt 2009-07-26 00:16:30 UTC (rev 550) @@ -1,8 +1,11 @@ -For build component run +For build component: go.bat "Component Sources.csproj" /t:build -For build test project run +For build test project: go.bat "Component Tests.csproj" /t:build -For clean solution run +For clean solution: go.bat "Component Sources.csproj" /t:CleanSolution + +For testing solution: +go.bat "Component Tests.csproj" /t:test \ 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: <br...@us...> - 2009-07-25 23:26:35
|
Revision: 549 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=549&view=rev Author: brus07 Date: 2009-07-25 23:26:26 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Bug fix: change target for clean. Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/docs/build help.txt Modified: nera/projects/nera.tester.runner/trunk/docs/build help.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/docs/build help.txt 2009-07-25 22:21:13 UTC (rev 548) +++ nera/projects/nera.tester.runner/trunk/docs/build help.txt 2009-07-25 23:26:26 UTC (rev 549) @@ -4,8 +4,5 @@ For build test project run go.bat "Component Tests.csproj" /t:build -For clean component run -go.bat "Component Sources.csproj" /t:clean - -For clean test project run -go.bat "Component Tests.csproj" /t:clean \ No newline at end of file +For clean solution run +go.bat "Component Sources.csproj" /t:CleanSolution This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-25 22:21:25
|
Revision: 548 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=548&view=rev Author: brus07 Date: 2009-07-25 22:21:13 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Delete old solution file. Removed Paths: ------------- nera/projects/nera.tester.runner/trunk/nera.tester.runner.sln Deleted: nera/projects/nera.tester.runner/trunk/nera.tester.runner.sln =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.sln 2009-07-25 21:38:30 UTC (rev 547) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.sln 2009-07-25 22:21:13 UTC (rev 548) @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nera.tester.runner", "nera.tester.runner.csproj", "{052D9F77-17AF-42F3-BFBF-975A19383496}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nera.tester.runner.test", "nera.tester.runner.test.csproj", "{51B5DCD7-8746-45DB-AB02-AACDE8C94F51}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.Build.0 = Debug|Any CPU - {052D9F77-17AF-42F3-BFBF-975A19383496}.Release|Any CPU.ActiveCfg = Release|Any CPU - {052D9F77-17AF-42F3-BFBF-975A19383496}.Release|Any CPU.Build.0 = Release|Any CPU - {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Debug|Any CPU.Build.0 = Debug|Any CPU - {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Release|Any CPU.ActiveCfg = Release|Any CPU - {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-25 21:38:37
|
Revision: 547 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=547&view=rev Author: brus07 Date: 2009-07-25 21:38:30 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Added help file for help build process. Added Paths: ----------- nera/projects/nera.tester.runner/trunk/docs/ nera/projects/nera.tester.runner/trunk/docs/build help.txt Added: nera/projects/nera.tester.runner/trunk/docs/build help.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/docs/build help.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/docs/build help.txt 2009-07-25 21:38:30 UTC (rev 547) @@ -0,0 +1,11 @@ +For build component run +go.bat "Component Sources.csproj" /t:build + +For build test project run +go.bat "Component Tests.csproj" /t:build + +For clean component run +go.bat "Component Sources.csproj" /t:clean + +For clean test project run +go.bat "Component Tests.csproj" /t:clean \ 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: <br...@us...> - 2009-07-25 21:29:00
|
Revision: 546 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=546&view=rev Author: brus07 Date: 2009-07-25 21:28:53 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Convert Test project to new script structure. Added new project to solution file. Move test source file to new structure. Added property in Global.targets file for NUnit. Modified Paths: -------------- nera/Targets/Global.targets nera/projects/nera.tester.runner/trunk/Build.dependencies nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln Added Paths: ----------- nera/projects/nera.tester.runner/trunk/Component Tests.csproj nera/projects/nera.tester.runner/trunk/src/csharp/tests/ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/Class1.cs nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/TestsHelper.cs Removed Paths: ------------- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj nera/projects/nera.tester.runner/trunk/test/ Modified: nera/Targets/Global.targets =================================================================== --- nera/Targets/Global.targets 2009-07-25 21:01:15 UTC (rev 545) +++ nera/Targets/Global.targets 2009-07-25 21:28:53 UTC (rev 546) @@ -2,5 +2,12 @@ <PropertyGroup> <MainPath>..</MainPath> <ToolsDir>$(MainPath)\tools</ToolsDir> + + <!-- Reference to NUnit --> + <NUnitDir>$(ToolsDir)\nunit-v2.2.8\bin</NUnitDir> + <NUnit>$(NUnitDir)\nunit.framework.dll</NUnit> + <NUnitConsole>$(NUnitDir)\nunit-console.exe</NUnitConsole> + <NUnitSummaryTransform>$(NUnitDir)\..\doc\files\Summary.xslt</NUnitSummaryTransform> + </PropertyGroup> </Project> Modified: nera/projects/nera.tester.runner/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.runner/trunk/Build.dependencies 2009-07-25 21:01:15 UTC (rev 545) +++ nera/projects/nera.tester.runner/trunk/Build.dependencies 2009-07-25 21:28:53 UTC (rev 546) @@ -41,15 +41,38 @@ <Reference Include="System.Xml" /> </ItemGroup> - <!--Component sources and referenced assemblies--> - <PropertyGroup> - <AssemblyName>$(ComponentPackage)</AssemblyName> - <RootNamespace>$(ComponentPackage)</RootNamespace> - <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).xml</DocumentationFile> - </PropertyGroup> - <ItemGroup> - <Compile Include="$(DotNetMain)\**\*.cs"> - <Visible>true</Visible> - </Compile> - </ItemGroup> + <Choose> + <When Condition="$(ProjectKind)=='ComponentSources'"> + <!--Component sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage)</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetMain)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + </When> + <When Condition="$(ProjectKind)=='ComponentTests'"> + <!--Component test sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage).Test</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).Test.xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetSrc)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> + <ItemGroup> + <Reference Include="nunit.framework"> + <SpecificVersion>False</SpecificVersion> + <HintPath>$(NUnit)</HintPath> + </Reference> + </ItemGroup> + </When> + </Choose> </Project> Copied: nera/projects/nera.tester.runner/trunk/Component Tests.csproj (from rev 540, nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj) =================================================================== --- nera/projects/nera.tester.runner/trunk/Component Tests.csproj (rev 0) +++ nera/projects/nera.tester.runner/trunk/Component Tests.csproj 2009-07-25 21:28:53 UTC (rev 546) @@ -0,0 +1,19 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{51B5DCD7-8746-45DB-AB02-AACDE8C94F51}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentTests</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + +</Project> \ No newline at end of file Modified: nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln 2009-07-25 21:01:15 UTC (rev 545) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln 2009-07-25 21:28:53 UTC (rev 546) @@ -3,6 +3,8 @@ # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{052D9F77-17AF-42F3-BFBF-975A19383496}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Tests", "Component Tests.csproj", "{51B5DCD7-8746-45DB-AB02-AACDE8C94F51}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -10,6 +12,8 @@ GlobalSection(ProjectConfigurationPlatforms) = postSolution {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51B5DCD7-8746-45DB-AB02-AACDE8C94F51}.Debug|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE Deleted: nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-25 21:01:15 UTC (rev 545) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-25 21:28:53 UTC (rev 546) @@ -1,70 +0,0 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{51B5DCD7-8746-45DB-AB02-AACDE8C94F51}</ProjectGuid> - <OutputType>Library</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>Nera.Tester.Runner.Test</RootNamespace> - <AssemblyName>nera.tester.runner.test</AssemblyName> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> - <OutputPath>bin\Debug\</OutputPath> - <DefineConstants>DEBUG;TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>pdbonly</DebugType> - <Optimize>true</Optimize> - <OutputPath>bin\Release\</OutputPath> - <DefineConstants>TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <ItemGroup> - <Reference Include="Data, Version=1.0.3482.26403, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Data.dll</HintPath> - </Reference> - <Reference Include="nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\Tools\nunit-v2.2.8\bin\nunit.framework.dll</HintPath> - </Reference> - <Reference Include="System" /> - <Reference Include="System.Data" /> - <Reference Include="System.Xml" /> - </ItemGroup> - <ItemGroup> - <ProjectReference Include="nera.tester.runner.csproj"> - <Project>{052D9F77-17AF-42F3-BFBF-975A19383496}</Project> - <Name>nera.tester.runner</Name> - </ProjectReference> - </ItemGroup> - <ItemGroup> - <Compile Include="test\Class1.cs" /> - <Compile Include="test\DemoTester.cs"> - <SubType>Code</SubType> - </Compile> - <Compile Include="test\Properties\AssemblyInfo.cs" /> - <Compile Include="test\SubmitTestingHelper.cs" /> - <Compile Include="test\TestsHelper.cs" /> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> - </Target> - --> - <ItemGroup> - <MySourceFiles Include="test_files\test1\**\*.*" Exclude="test_files\test1\**\.svn\**\*.*" /> - </ItemGroup> - <Target Name="AfterBuild"> - <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'$(OutputPath)\%(RecursiveDir)%(Filename)%(Extension)')" /> - </Target> -</Project> \ No newline at end of file Copied: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/Class1.cs (from rev 538, nera/projects/nera.tester.runner/trunk/test/Class1.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/Class1.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/Class1.cs 2009-07-25 21:28:53 UTC (rev 546) @@ -0,0 +1,15 @@ +using NUnit.Framework; +using System; + +namespace Nera.Tester.Runner.Test +{ + [TestFixture] + public class Class1 + { + [Test] + public void Test1() + { + Assert.AreEqual(4, 4); + } + } +} Copied: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs (from rev 538, nera/projects/nera.tester.runner/trunk/test/DemoTester.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/DemoTester.cs 2009-07-25 21:28:53 UTC (rev 546) @@ -0,0 +1,47 @@ +using NUnit.Framework; +using System; + +namespace Nera.Tester.Runner.Test +{ + [TestFixture] + public class DemoTester + { + private const string PluginFileAddres = "../../test_files/lib/Plugin.dll"; + private const string PluginFileName = "Plugin.dll"; + + /// <summary> + /// <para> + /// Sets up the test environment. + /// </para> + /// </summary> + [SetUp] + public void SetUp() + { + System.IO.File.Copy(PluginFileAddres, PluginFileName, true); + } + + /// <summary> + /// <para> + /// Cleans up the test environment. + /// </para> + /// </summary> + [TearDown] + public void TearDown() + { + System.IO.File.Delete(PluginFileName); + } + + [Test] + public void SubmitTest1() + { + SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode1, TestsHelper.Result1); + } + + [Test] + public void SubmitTest2() + { + SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode2, TestsHelper.Result2); + } + + } +} Copied: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs (from rev 536, nera/projects/nera.tester.runner/trunk/test/SubmitTestingHelper.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/SubmitTestingHelper.cs 2009-07-25 21:28:53 UTC (rev 546) @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Text; +using NUnit.Framework; +using System.IO; +using AcmContester.Library.LibraryExtention.Data; + +namespace Nera.Tester.Runner.Test +{ + class SubmitTestingHelper + { + public static string ReadTextFromFile(string fileAddress) + { + string result = ""; + using (StreamReader sr = System.IO.File.OpenText(fileAddress)) + { + result = sr.ReadToEnd(); + } + return result; + } + public static void TestingCodeHelper(string file1, string file2) + { + String code = ReadTextFromFile(file1); + + string res = Nera.Tester.Runner.Checker.GetResult(code); + + Result generaterRes = Result.CreateFromXml(res); + + res = ReadTextFromFile(file2); + + Result backupRes = Result.CreateFromXml(res); + + Assert.AreEqual(generaterRes.res, backupRes.res, "Testing result was different"); + //Assert.AreEqual(generaterRes.Submit, backupRes.Submit, "Submit in testing result was different"); + } + } +} Copied: nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/TestsHelper.cs (from rev 536, nera/projects/nera.tester.runner/trunk/test/TestsHelper.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/TestsHelper.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/tests/Nera/Tester/Runner/TestsHelper.cs 2009-07-25 21:28:53 UTC (rev 546) @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Nera.Tester.Runner.Test +{ + class TestsHelper + { + internal const string SourceCode1 = "../../test_files/test1.txt"; + internal const string Result1 = "../../test_files/result1.txt"; + + internal const string SourceCode2 = "../../test_files/test2.txt"; + internal const string Result2 = "../../test_files/result2.txt"; + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-25 21:01:22
|
Revision: 545 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=545&view=rev Author: brus07 Date: 2009-07-25 21:01:15 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Remove old (not need) msbuild scripts and helpers bat files. Removed Paths: ------------- nera/projects/nera.tester.runner/trunk/runTestHardCode.bat nera/projects/nera.tester.runner/trunk/xunit.msbuild nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild Deleted: nera/projects/nera.tester.runner/trunk/runTestHardCode.bat =================================================================== --- nera/projects/nera.tester.runner/trunk/runTestHardCode.bat 2009-07-25 20:56:01 UTC (rev 544) +++ nera/projects/nera.tester.runner/trunk/runTestHardCode.bat 2009-07-25 21:01:15 UTC (rev 545) @@ -1,2 +0,0 @@ -echo Running unit tests (nera.tester.runner.test) -..\..\..\Tools\nunit-v2.2.8\bin\nunit-console.exe /nologo /xml /labels bin\Release\nera.tester.runner.test.dll \ No newline at end of file Deleted: nera/projects/nera.tester.runner/trunk/xunit.msbuild =================================================================== --- nera/projects/nera.tester.runner/trunk/xunit.msbuild 2009-07-25 20:56:01 UTC (rev 544) +++ nera/projects/nera.tester.runner/trunk/xunit.msbuild 2009-07-25 21:01:15 UTC (rev 545) @@ -1,31 +0,0 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - - <!-- Settings --> - - <PropertyGroup Condition="'$(BuildType)' == ''"> - <BuildType>Release</BuildType> - </PropertyGroup> - - <!-- Individiual targets --> - - <Target Name="Clean"> - <MSBuild - Projects="nera.tester.runner.sln" - Targets="Clean" - Properties="Configuration=$(BuildType)"/> - </Target> - - <Target Name="Build"> - <MSBuild - Projects="nera.tester.runner.sln" - Targets="Build" - Properties="Configuration=$(BuildType)"/> - </Target> - - <Target Name="Test" DependsOnTargets="Build"> - <MSBuild - Projects="xunit.tests.msbuild" - Properties="BuildType=$(BuildType)" /> - </Target> - -</Project> \ No newline at end of file Deleted: nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild =================================================================== --- nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild 2009-07-25 20:56:01 UTC (rev 544) +++ nera/projects/nera.tester.runner/trunk/xunit.tests.msbuild 2009-07-25 21:01:15 UTC (rev 545) @@ -1,8 +0,0 @@ -<Project DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> - - - <Target Name="Test"> - <Exec Command="runTestHardCode.bat" /> - </Target> - -</Project> \ 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: <br...@us...> - 2009-07-25 20:56:10
|
Revision: 544 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=544&view=rev Author: brus07 Date: 2009-07-25 20:56:01 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Change Component Sources to new structure of build script. Move source file to new structure of folders. Create new solution file. Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/go.bat Added Paths: ----------- nera/projects/nera.tester.runner/trunk/Build.dependencies nera/projects/nera.tester.runner/trunk/Build.version nera/projects/nera.tester.runner/trunk/Component Sources.csproj nera/projects/nera.tester.runner/trunk/Reference.targets nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln nera/projects/nera.tester.runner/trunk/src/csharp/ nera/projects/nera.tester.runner/trunk/src/csharp/main/ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/AssemblyInfo.cs nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs Removed Paths: ------------- nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj nera/projects/nera.tester.runner/trunk/src/Class1.cs nera/projects/nera.tester.runner/trunk/src/Properties/ Added: nera/projects/nera.tester.runner/trunk/Build.dependencies =================================================================== --- nera/projects/nera.tester.runner/trunk/Build.dependencies (rev 0) +++ nera/projects/nera.tester.runner/trunk/Build.dependencies 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <!--Directory structure of the component.--> + <BuildDir>build</BuildDir> + <BuildClassDir>$(BuildDir)\classes</BuildClassDir> + <SrcDir>src</SrcDir> + <TestFilesDir>test_files</TestFilesDir> + <BuildObjDir>obj</BuildObjDir> + <!--Src directory structure.--> + <DotNetSrc>$(SrcDir)\csharp</DotNetSrc> + <DotNetMain>$(DotNetSrc)\main</DotNetMain> + <OutputPath>$(BuildClassDir)</OutputPath> + <OutputType>Library</OutputType> + <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> + </PropertyGroup> + + <ItemGroup> + <Reference Include="AcmLibraryExtention, Version=1.0.3482.26401, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\AcmLibraryExtention.dll</HintPath> + </Reference> + <Reference Include="Data, Version=1.0.3482.26403, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Data.dll</HintPath> + </Reference> + <Reference Include="Load, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Load.dll</HintPath> + </Reference> + <Reference Include="Main, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Main.dll</HintPath> + </Reference> + <Reference Include="Test, Version=1.0.3320.28735, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>lib\Test.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + + <!--Component sources and referenced assemblies--> + <PropertyGroup> + <AssemblyName>$(ComponentPackage)</AssemblyName> + <RootNamespace>$(ComponentPackage)</RootNamespace> + <DocumentationFile>$(BuildClassDir)\$(ComponentPackage).xml</DocumentationFile> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(DotNetMain)\**\*.cs"> + <Visible>true</Visible> + </Compile> + </ItemGroup> +</Project> Added: nera/projects/nera.tester.runner/trunk/Build.version =================================================================== --- nera/projects/nera.tester.runner/trunk/Build.version (rev 0) +++ nera/projects/nera.tester.runner/trunk/Build.version 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,12 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<PropertyGroup> + <!-- Component Name and Version Information --> + <ComponentName>Nera.Tester.Runner</ComponentName> + <ComponentDistFileName>nera.tester.runner</ComponentDistFileName> + <ComponentPackage>Nera.Tester.Runner</ComponentPackage> + <ComponentVersionMajor>1</ComponentVersionMajor> + <ComponentVersionMinor>0</ComponentVersionMinor> + <ComponentVersionMicro>99</ComponentVersionMicro> + <ComponentVersionBuild>99</ComponentVersionBuild> + </PropertyGroup> +</Project> Copied: nera/projects/nera.tester.runner/trunk/Component Sources.csproj (from rev 538, nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj) =================================================================== --- nera/projects/nera.tester.runner/trunk/Component Sources.csproj (rev 0) +++ nera/projects/nera.tester.runner/trunk/Component Sources.csproj 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,33 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{052D9F77-17AF-42F3-BFBF-975A19383496}</ProjectGuid> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <!-- Added for making the difference in Build.dependencies file between sources & tests projects --> + <ProjectKind>ComponentSources</ProjectKind> + </PropertyGroup> + + <Import Project="Reference.targets" /> + + <ItemGroup> + <Content Include="resources\AllowedFunc.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="resources\TesterInData.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="resources\scriptExample.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + <Content Include="resources\InData.txt"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </Content> + </ItemGroup> +</Project> \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/Reference.targets =================================================================== --- nera/projects/nera.tester.runner/trunk/Reference.targets (rev 0) +++ nera/projects/nera.tester.runner/trunk/Reference.targets 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="Build.version" /> + <Import Project="Build.dependencies" Condition="!Exists('Bamboo.Build.Dependencies')" /> + <PropertyGroup> + <GlobalTargetsPath>..\..\..\Targets\Global.targets</GlobalTargetsPath> + <CommonTargetsFile>..\..\..\Targets\Common.targets</CommonTargetsFile> + </PropertyGroup> + <Import Project="$(GlobalTargetsPath)" Condition="Exists($(GlobalTargetsPath))" /> + <Import Project="$(DistributionTargetsFile)" Condition="Exists($(DistributionTargetsFile))" /> + <Import Project="$(CommonTargetsFile)" Condition="Exists($(CommonTargetsFile))" /> +</Project> Modified: nera/projects/nera.tester.runner/trunk/go.bat =================================================================== --- nera/projects/nera.tester.runner/trunk/go.bat 2009-07-25 11:22:00 UTC (rev 543) +++ nera/projects/nera.tester.runner/trunk/go.bat 2009-07-25 20:56:01 UTC (rev 544) @@ -1,14 +1 @@ -@echo off -if "%1" == "" goto Usage -goto NoBuildResults - -:Usage -echo usage: build [target] -echo where: target = one of "Clean", "Build", "Test" -goto End - -:NoBuildResults -%windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe xunit.msbuild /p:Configuration=Debug /t:%* -goto End - -:End +%windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe %* \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln (rev 0) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner VS 2005.sln 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,17 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Component Sources", "Component Sources.csproj", "{052D9F77-17AF-42F3-BFBF-975A19383496}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {052D9F77-17AF-42F3-BFBF-975A19383496}.Debug|Any CPU.Build.0 = Debug|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Deleted: nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj 2009-07-25 11:22:00 UTC (rev 543) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj 2009-07-25 20:56:01 UTC (rev 544) @@ -1,85 +0,0 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> - <SchemaVersion>2.0</SchemaVersion> - <ProjectGuid>{052D9F77-17AF-42F3-BFBF-975A19383496}</ProjectGuid> - <OutputType>Library</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> - <RootNamespace>Nera.Tester.Runner</RootNamespace> - <AssemblyName>nera.tester.runner</AssemblyName> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> - <OutputPath>build\bin\Debug\</OutputPath> - <DefineConstants>DEBUG;TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>pdbonly</DebugType> - <Optimize>true</Optimize> - <OutputPath>build\bin\Release\</OutputPath> - <DefineConstants>TRACE</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - </PropertyGroup> - <ItemGroup> - <Reference Include="AcmLibraryExtention, Version=1.0.3482.26401, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\AcmLibraryExtention.dll</HintPath> - </Reference> - <Reference Include="Data, Version=1.0.3482.26403, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Data.dll</HintPath> - </Reference> - <Reference Include="Load, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Load.dll</HintPath> - </Reference> - <Reference Include="Main, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Main.dll</HintPath> - </Reference> - <Reference Include="Test, Version=1.0.3320.28735, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>lib\Test.dll</HintPath> - </Reference> - <Reference Include="System" /> - <Reference Include="System.Data" /> - <Reference Include="System.Xml" /> - </ItemGroup> - <ItemGroup> - <Compile Include="src\Class1.cs" /> - <Compile Include="src\Properties\AssemblyInfo.cs" /> - </ItemGroup> - <ItemGroup> - <Content Include="resources\AllowedFunc.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - <Content Include="resources\TesterInData.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - <Content Include="resources\scriptExample.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - <Content Include="resources\InData.txt"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </Content> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> - </Target> - <Target Name="AfterBuild"> - </Target> - --> - <PropertyGroup> - <PostBuildEvent> - </PostBuildEvent> - </PropertyGroup> -</Project> \ No newline at end of file Deleted: nera/projects/nera.tester.runner/trunk/src/Class1.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/src/Class1.cs 2009-07-25 11:22:00 UTC (rev 543) +++ nera/projects/nera.tester.runner/trunk/src/Class1.cs 2009-07-25 20:56:01 UTC (rev 544) @@ -1,247 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using AcmContester.Library.LibraryExtention; -using AcmContester.Library.LibraryExtention.Data; -using Main; -using Test; - -namespace Nera.Tester.Runner -{ - public class Checker - { - private static List<KeyValuePair<string, string>> htmlEntityList; - - private static string HtmlEntityDecode(string str) - { - InitHtmlEntityList(); - for (int i = 0; i < htmlEntityList.Count; i++) - { - str = str.Replace(htmlEntityList[i].Value, htmlEntityList[i].Key); - } - return str; - } - - public static string GetResult(string message) - { - Log log = Log.GetLog(); - log.Loging(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString(), Log.Priority.INFO); - log.Loging(message, Log.Priority.INFO); - log.Loging("", Log.Priority.INFO); - - IniFile iniFile = new IniFile("RealTesterConfig.ini"); - string secureLever = iniFile.GetString("MainConfig", "SecureLevel", "Double"); - - //TODO: - Submit submit = Submit.CreateFromXml(message); - string code = submit.sourceCode; - code = HtmlEntityDecode(code); - int language = submit.language; - Result result = new Result(submit); - - try - { - //Console.SetOut(File.CreateText("logout.txt")); - string[] data = File.ReadAllLines("InData.txt"); - data[2] = data[2] + submit.pbolemID + "\\"; - string src = code; - TestEnv test = new TestEnv(src, language, data[1], data[2]); - test.Compile(); - - log.Loging("------------------BEGIN SOURCE--------------------------", Log.Priority.INFO); - Console.WriteLine("------------------BEGIN SOURCE--------------------------"); - - log.Loging(src, Log.Priority.INFO); - Console.WriteLine(src); - - log.Loging("-------------------END SOURCE---------------------------", Log.Priority.INFO); - Console.WriteLine("-------------------END SOURCE---------------------------"); - - log.Loging(String.Format("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime), Log.Priority.INFO); - Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime); - - log.Loging(String.Format("Comp Output: {0}", test.comp.CompilerOutput), Log.Priority.INFO); - Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput); - - if (test.comp.Result == CompRes.OK) - { - SecureType secureType = SecureType.Double; - try - { - secureType = (SecureType)Enum.Parse(typeof(SecureType), secureLever, true); - } - catch (ArgumentException) - { - } - if (secureLever == "None") - secureType = SecureType.None; - test.RunAllTests(secureType); - - for (int i = 0; i < test.run.results.Length; i++) - { - log.Loging(String.Format("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, - test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory), Log.Priority.INFO); - Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, - test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory); - } - } - - - //TODO: - result.compOutput = test.comp.CompilerOutput; - result.res = test.comp.Result.ToString(); - if (test.comp.Result == CompRes.OK) - { - int usedTime = -1; - int usedMemory = -1; - for (int i = 0; i < test.run.results.Length; i++) - { - if (test.run.results[i].res == TestResult.Accepted) - { - usedTime = Math.Max(usedTime, test.run.results[i].UsedTime); - usedMemory = Math.Max(usedMemory, test.run.results[i].UsedMemory); - result.res = test.run.results[i].res.ToString(); - } - else - { - result.res = test.run.results[i].res.ToString(); - usedTime = test.run.results[i].UsedTime; - usedMemory = test.run.results[i].UsedMemory; - break; - } - } - result.usedMemory = usedTime; - result.usedTime = usedMemory; - } - } - catch (Exception tex) - { - log.Loging("Runner:GetResult - Exception (" + tex + ": " + tex.Message, Log.Priority.INFO); - log.Loging(tex.StackTrace, Log.Priority.INFO); - result.res = "Exception"; - } - return result.ToStringX(); - } - - - private static void InitHtmlEntityList() - { - if (htmlEntityList != null) - return; - htmlEntityList = new List<KeyValuePair<string,string>>(); - AddElementToHtmlEntityList("\"", """); - AddElementToHtmlEntityList("<", "<"); - AddElementToHtmlEntityList("&", "&"); - } - - private static void AddElementToHtmlEntityList(string p, string p_2) - { - htmlEntityList.Add(new KeyValuePair<string, string>(p, p_2)); - } - - public static string GetResultIoi(string message) - { - Log log = Log.GetLog(); - log.Loging(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString(), Log.Priority.INFO); - log.Loging(message, Log.Priority.INFO); - log.Loging("", Log.Priority.INFO); - - IniFile iniFile = new IniFile("RealTesterConfig.ini"); - string secureLever = iniFile.GetString("MainConfig", "SecureLevel", "Double"); - - SubmitIoi submit = SubmitIoi.CreateFromXml(message); - - //TODO: - string code = submit.submit.sourceCode; - code = HtmlEntityDecode(code); - int language = submit.submit.language; - ResultIoi result = new ResultIoi(submit); - try - { - //Console.SetOut(File.CreateText("logout.txt")); - string[] data = File.ReadAllLines("InData.txt"); - data[2] = data[2] + submit.submit.pbolemID + "\\"; - string src = code; - TestEnv test = new TestEnv(src, language, data[1], data[2]); - test.Compile(); - - log.Loging("------------------BEGIN SOURCE--------------------------", Log.Priority.INFO); - Console.WriteLine("------------------BEGIN SOURCE--------------------------"); - - log.Loging(src, Log.Priority.INFO); - Console.WriteLine(src); - - log.Loging("-------------------END SOURCE---------------------------", Log.Priority.INFO); - Console.WriteLine("-------------------END SOURCE---------------------------"); - - log.Loging(String.Format("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime), Log.Priority.INFO); - Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime); - - log.Loging(String.Format("Comp Output: {0}", test.comp.CompilerOutput), Log.Priority.INFO); - Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput); - - if (test.comp.Result == CompRes.OK) - { - SecureType secureType = SecureType.Double; - try - { - secureType = (SecureType)Enum.Parse(typeof(SecureType), secureLever, true); - } - catch (ArgumentException) - { - } - if (secureLever == "None") - secureType = SecureType.None; - test.RunAllTests(secureType); - - for (int i = 0; i < test.run.results.Length; i++) - { - log.Loging(String.Format("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, - test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory), Log.Priority.INFO); - Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, - test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory); - } - } - - - //TODO: - result.compOutput = test.comp.CompilerOutput; - result.res = test.comp.Result.ToString(); - if (test.comp.Result == CompRes.OK) - { - int usedTime = -1; - int usedMemory = -1; - result.testResults = new TestResIoi[test.run.results.Length]; - result.res = TestResult.Accepted.ToString(); - for (int i = 0; i < test.run.results.Length; i++) - { - result.testResults[i] = new TestResIoi(); - - usedTime = Math.Max(usedTime, test.run.results[i].UsedTime); - usedMemory = Math.Max(usedMemory, test.run.results[i].UsedMemory); - if (test.run.results[i].res != TestResult.Accepted) - result.res = test.run.results[i].res.ToString(); - - result.testResults[i].input = test.run.test.tests[i].input; - result.testResults[i].output = test.run.test.tests[i].output; - result.testResults[i].points = test.run.test.tests[i].points; - result.testResults[i].contestantOutput = test.run.results[i].UserOutput; - result.testResults[i].usedMemory = test.run.results[i].UsedMemory; - result.testResults[i].usedTime = test.run.results[i].UsedTime; - result.testResults[i].id = i; - result.testResults[i].res = test.run.results[i].res.ToString(); - } - result.usedMemory = usedTime; - result.usedTime = usedMemory; - } - } - catch (Exception tex) - { - log.Loging("Runner:GetResult - Exception (" + tex + ": " + tex.Message, Log.Priority.INFO); - log.Loging(tex.StackTrace, Log.Priority.INFO); - result.res = "Exception"; - } - return result.ToStringX(); - } - } -} Copied: nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/AssemblyInfo.cs (from rev 536, nera/projects/nera.tester.runner/trunk/src/Properties/AssemblyInfo.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/AssemblyInfo.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/AssemblyInfo.cs 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,35 @@ +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("nera.tester.runner")] +[assembly: AssemblyDescription("http://acm.lviv.ua")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("nera.tester.runner")] +[assembly: AssemblyCopyright("Copyright © AcmContester 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. 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("80d03fd6-3218-46cc-8dcc-1de5f7c7fbf5")] + +// 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.*")] +[assembly: AssemblyFileVersion("1.0.0.0")] Copied: nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs (from rev 536, nera/projects/nera.tester.runner/trunk/src/Class1.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/src/csharp/main/Nera/Tester/Runner/Class1.cs 2009-07-25 20:56:01 UTC (rev 544) @@ -0,0 +1,247 @@ +using System; +using System.Collections.Generic; +using System.IO; +using AcmContester.Library.LibraryExtention; +using AcmContester.Library.LibraryExtention.Data; +using Main; +using Test; + +namespace Nera.Tester.Runner +{ + public class Checker + { + private static List<KeyValuePair<string, string>> htmlEntityList; + + private static string HtmlEntityDecode(string str) + { + InitHtmlEntityList(); + for (int i = 0; i < htmlEntityList.Count; i++) + { + str = str.Replace(htmlEntityList[i].Value, htmlEntityList[i].Key); + } + return str; + } + + public static string GetResult(string message) + { + Log log = Log.GetLog(); + log.Loging(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString(), Log.Priority.INFO); + log.Loging(message, Log.Priority.INFO); + log.Loging("", Log.Priority.INFO); + + IniFile iniFile = new IniFile("RealTesterConfig.ini"); + string secureLever = iniFile.GetString("MainConfig", "SecureLevel", "Double"); + + //TODO: + Submit submit = Submit.CreateFromXml(message); + string code = submit.sourceCode; + code = HtmlEntityDecode(code); + int language = submit.language; + Result result = new Result(submit); + + try + { + //Console.SetOut(File.CreateText("logout.txt")); + string[] data = File.ReadAllLines("InData.txt"); + data[2] = data[2] + submit.pbolemID + "\\"; + string src = code; + TestEnv test = new TestEnv(src, language, data[1], data[2]); + test.Compile(); + + log.Loging("------------------BEGIN SOURCE--------------------------", Log.Priority.INFO); + Console.WriteLine("------------------BEGIN SOURCE--------------------------"); + + log.Loging(src, Log.Priority.INFO); + Console.WriteLine(src); + + log.Loging("-------------------END SOURCE---------------------------", Log.Priority.INFO); + Console.WriteLine("-------------------END SOURCE---------------------------"); + + log.Loging(String.Format("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime), Log.Priority.INFO); + Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime); + + log.Loging(String.Format("Comp Output: {0}", test.comp.CompilerOutput), Log.Priority.INFO); + Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput); + + if (test.comp.Result == CompRes.OK) + { + SecureType secureType = SecureType.Double; + try + { + secureType = (SecureType)Enum.Parse(typeof(SecureType), secureLever, true); + } + catch (ArgumentException) + { + } + if (secureLever == "None") + secureType = SecureType.None; + test.RunAllTests(secureType); + + for (int i = 0; i < test.run.results.Length; i++) + { + log.Loging(String.Format("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, + test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory), Log.Priority.INFO); + Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, + test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory); + } + } + + + //TODO: + result.compOutput = test.comp.CompilerOutput; + result.res = test.comp.Result.ToString(); + if (test.comp.Result == CompRes.OK) + { + int usedTime = -1; + int usedMemory = -1; + for (int i = 0; i < test.run.results.Length; i++) + { + if (test.run.results[i].res == TestResult.Accepted) + { + usedTime = Math.Max(usedTime, test.run.results[i].UsedTime); + usedMemory = Math.Max(usedMemory, test.run.results[i].UsedMemory); + result.res = test.run.results[i].res.ToString(); + } + else + { + result.res = test.run.results[i].res.ToString(); + usedTime = test.run.results[i].UsedTime; + usedMemory = test.run.results[i].UsedMemory; + break; + } + } + result.usedMemory = usedTime; + result.usedTime = usedMemory; + } + } + catch (Exception tex) + { + log.Loging("Runner:GetResult - Exception (" + tex + ": " + tex.Message, Log.Priority.INFO); + log.Loging(tex.StackTrace, Log.Priority.INFO); + result.res = "Exception"; + } + return result.ToStringX(); + } + + + private static void InitHtmlEntityList() + { + if (htmlEntityList != null) + return; + htmlEntityList = new List<KeyValuePair<string,string>>(); + AddElementToHtmlEntityList("\"", """); + AddElementToHtmlEntityList("<", "<"); + AddElementToHtmlEntityList("&", "&"); + } + + private static void AddElementToHtmlEntityList(string p, string p_2) + { + htmlEntityList.Add(new KeyValuePair<string, string>(p, p_2)); + } + + public static string GetResultIoi(string message) + { + Log log = Log.GetLog(); + log.Loging(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString(), Log.Priority.INFO); + log.Loging(message, Log.Priority.INFO); + log.Loging("", Log.Priority.INFO); + + IniFile iniFile = new IniFile("RealTesterConfig.ini"); + string secureLever = iniFile.GetString("MainConfig", "SecureLevel", "Double"); + + SubmitIoi submit = SubmitIoi.CreateFromXml(message); + + //TODO: + string code = submit.submit.sourceCode; + code = HtmlEntityDecode(code); + int language = submit.submit.language; + ResultIoi result = new ResultIoi(submit); + try + { + //Console.SetOut(File.CreateText("logout.txt")); + string[] data = File.ReadAllLines("InData.txt"); + data[2] = data[2] + submit.submit.pbolemID + "\\"; + string src = code; + TestEnv test = new TestEnv(src, language, data[1], data[2]); + test.Compile(); + + log.Loging("------------------BEGIN SOURCE--------------------------", Log.Priority.INFO); + Console.WriteLine("------------------BEGIN SOURCE--------------------------"); + + log.Loging(src, Log.Priority.INFO); + Console.WriteLine(src); + + log.Loging("-------------------END SOURCE---------------------------", Log.Priority.INFO); + Console.WriteLine("-------------------END SOURCE---------------------------"); + + log.Loging(String.Format("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime), Log.Priority.INFO); + Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}", test.comp.Result, test.comp.Details, test.comp.UsedTime); + + log.Loging(String.Format("Comp Output: {0}", test.comp.CompilerOutput), Log.Priority.INFO); + Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput); + + if (test.comp.Result == CompRes.OK) + { + SecureType secureType = SecureType.Double; + try + { + secureType = (SecureType)Enum.Parse(typeof(SecureType), secureLever, true); + } + catch (ArgumentException) + { + } + if (secureLever == "None") + secureType = SecureType.None; + test.RunAllTests(secureType); + + for (int i = 0; i < test.run.results.Length; i++) + { + log.Loging(String.Format("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, + test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory), Log.Priority.INFO); + Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1, + test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory); + } + } + + + //TODO: + result.compOutput = test.comp.CompilerOutput; + result.res = test.comp.Result.ToString(); + if (test.comp.Result == CompRes.OK) + { + int usedTime = -1; + int usedMemory = -1; + result.testResults = new TestResIoi[test.run.results.Length]; + result.res = TestResult.Accepted.ToString(); + for (int i = 0; i < test.run.results.Length; i++) + { + result.testResults[i] = new TestResIoi(); + + usedTime = Math.Max(usedTime, test.run.results[i].UsedTime); + usedMemory = Math.Max(usedMemory, test.run.results[i].UsedMemory); + if (test.run.results[i].res != TestResult.Accepted) + result.res = test.run.results[i].res.ToString(); + + result.testResults[i].input = test.run.test.tests[i].input; + result.testResults[i].output = test.run.test.tests[i].output; + result.testResults[i].points = test.run.test.tests[i].points; + result.testResults[i].contestantOutput = test.run.results[i].UserOutput; + result.testResults[i].usedMemory = test.run.results[i].UsedMemory; + result.testResults[i].usedTime = test.run.results[i].UsedTime; + result.testResults[i].id = i; + result.testResults[i].res = test.run.results[i].res.ToString(); + } + result.usedMemory = usedTime; + result.usedTime = usedMemory; + } + } + catch (Exception tex) + { + log.Loging("Runner:GetResult - Exception (" + tex + ": " + tex.Message, Log.Priority.INFO); + log.Loging(tex.StackTrace, Log.Priority.INFO); + result.res = "Exception"; + } + return result.ToStringX(); + } + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-25 11:22:07
|
Revision: 543 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=543&view=rev Author: brus07 Date: 2009-07-25 11:22:00 +0000 (Sat, 25 Jul 2009) Log Message: ----------- Initialize global targets file. Added Paths: ----------- nera/Targets/Common.targets nera/Targets/Global.targets Added: nera/Targets/Common.targets =================================================================== --- nera/Targets/Common.targets (rev 0) +++ nera/Targets/Common.targets 2009-07-25 11:22:00 UTC (rev 543) @@ -0,0 +1,35 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> + + <PropertyGroup> + <ComponentVersion>$(ComponentVersionMajor).$(ComponentVersionMinor).$(ComponentVersionMicro)</ComponentVersion> + <ComponentPath>$(ComponentDistFileName)\$(ComponentVersion)</ComponentPath> + + <!-- Component distribution structure. --> + <BuildDistDir>$(BuildDir)\dist</BuildDistDir> + <DistBinDir>$(BuildDistDir)\bin</DistBinDir> + <ComponentZipFile>$(DistBinDir)\$(ComponentPath)\$(ComponentDistFileName).zip</ComponentZipFile> + <ComponentDistZipFile>$(BuildDistDir)\$(ComponentDistFileName)-$(ComponentVersion).zip</ComponentDistZipFile> + </PropertyGroup> + + <Choose> + <!-- If we're dealing with a library then the extension will be 'dll' otherwise it's an 'exe'. --> + <When Condition="$(OutputType)=='Library'"> + <PropertyGroup> + <ComponentPackageExtension>dll</ComponentPackageExtension> + </PropertyGroup> + </When> + <Otherwise> + <PropertyGroup> + <ComponentPackageExtension>exe</ComponentPackageExtension> + </PropertyGroup> + </Otherwise> + </Choose> + + <Target Name="CleanSolution"> + <RemoveDir Directories="$(BuildDir)"/> + <RemoveDir Directories="$(TestLogDir)"/> + <RemoveDir Directories="$(BuildObjDir)"/> + </Target> +</Project> Added: nera/Targets/Global.targets =================================================================== --- nera/Targets/Global.targets (rev 0) +++ nera/Targets/Global.targets 2009-07-25 11:22:00 UTC (rev 543) @@ -0,0 +1,6 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MainPath>..</MainPath> + <ToolsDir>$(MainPath)\tools</ToolsDir> + </PropertyGroup> +</Project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-24 22:31:17
|
Revision: 542 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=542&view=rev Author: brus07 Date: 2009-07-24 22:31:08 +0000 (Fri, 24 Jul 2009) Log Message: ----------- Added new tool (MSBuild.Community.Tasks). Added Paths: ----------- nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/ nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/ nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/ICSharpCode.SharpZipLib.dll nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.Targets nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.dll nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.xml nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.xsd nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/NUnitReport.xsl Added: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/ICSharpCode.SharpZipLib.dll =================================================================== (Binary files differ) Property changes on: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/ICSharpCode.SharpZipLib.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.Targets =================================================================== --- nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.Targets (rev 0) +++ nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.Targets 2009-07-24 22:31:08 UTC (rev 542) @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8" ?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <!-- $Id: MSBuild.Community.Tasks.Targets 303 2007-02-23 15:49:46Z pwelter34 $ --> + + <PropertyGroup> + <MSBuildCommunityTasksPath Condition="'$(MSBuildCommunityTasksPath)' == ''">$(MSBuildExtensionsPath)\MSBuildCommunityTasks</MSBuildCommunityTasksPath> + <MSBuildCommunityTasksLib>$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib> + </PropertyGroup> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AspNet.InstallAspNet" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AssemblyInfo" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Attrib" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlExecute" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FileUpdate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FtpUpload" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FxCop" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GacUtil" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GetSolutionProjects" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ILMerge" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Mail" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Move" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Add" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Divide" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Modulo" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Multiple" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Subtract" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NDoc" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NUnit" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Prompt" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryRead" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryWrite" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexMatch" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexReplace" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Script" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceController" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceQuery" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sleep" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolController" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolCreate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolDelete" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryCreate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryDelete" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryScriptMap" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectorySetting" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.InstallAssembly" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.UninstallAssembly" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Schema.TaskSchema" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.ExecuteDDL" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssAdd" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckin" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckout" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssClean" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssDiff" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssGet" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssHistory" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssLabel" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssUndoCheckout" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCheckout" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnClient" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCopy" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCommit" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnExport" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnInfo" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnUpdate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnVersion" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsVersion" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Time" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Unzip" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Version" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.WebDownload" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlMassUpdate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlQuery" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlRead" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlUpdate" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xslt" /> + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Zip" /> + + <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.JavaScript.JSCompress" /> + + <ItemGroup> + <FxCopRuleAssemblies Include="UsageRules.dll"/> + <FxCopRuleAssemblies Include="SecurityRules.dll"/> + <FxCopRuleAssemblies Include="PortabilityRules.dll"/> + <FxCopRuleAssemblies Include="PerformanceRules.dll"/> + <FxCopRuleAssemblies Include="MobilityRules.dll"/> + <FxCopRuleAssemblies Include="InteroperabilityRules.dll"/> + <FxCopRuleAssemblies Include="GlobalizationRules.dll"/> + <FxCopRuleAssemblies Include="DesignRules.dll"/> + </ItemGroup> +</Project> Added: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.dll =================================================================== (Binary files differ) Property changes on: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.xml =================================================================== --- nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.xml (rev 0) +++ nera/Tools/MSBuild.Community.Tasks.v1.2.0.306/Build/MSBuild.Community.Tasks.xml 2009-07-24 22:31:08 UTC (rev 542) @@ -0,0 +1,6506 @@ +<?xml version="1.0"?> +<doc> + <assembly> + <name>MSBuild.Community.Tasks</name> + </assembly> + <members> + <member name="T:MSBuild.Community.Tasks.AspNet.InstallAspNet"> + <summary> + Installs and register script mappings for ASP.NET + </summary> + <remarks>Uses the aspnet_regiis.exe tool included with the .NET Framework.</remarks> + <example> + Install the latest version of ASP.NET on the server: + <code> + <![CDATA[ <InstallAspNet /> ]]> + </code> + </example><example> + Install the latest version of ASP.NET on the server, but do not update script maps: + <code> + <![CDATA[ <InstallAspNet ApplyScriptMaps="Never" /> ]]> + </code> + </example><example> + Install the script maps for ASP.NET 2.0 on a web directory on the default website: + <code> + <![CDATA[ <InstallAspNet Path="MyApplication" Version="Version20" /> ]]> + </code> + </example><example> + Install the script maps for ASP.NET 1.1 on a web directory on a non-default website: + <code> + <![CDATA[ <InstallAspNet Path="MyApplication" Version="W3SVC/3/Root/Version11" /> ]]> + </code> + </example><example> + Install client side script only for the latest version: + <code> + <![CDATA[ <InstallAspNet ClientScriptsOnly="True" /> ]]> + </code> + </example> + </member> + <member name="M:MSBuild.Community.Tasks.AspNet.InstallAspNet.GenerateFullPathToTool"> + <summary> + Returns the fully qualified path to the executable file. + </summary> + <returns> + The fully qualified path to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.AspNet.InstallAspNet.GenerateCommandLineCommands"> + <summary> + Returns a string value containing the command line arguments + to pass directly to the executable file. + </summary> + <returns> + A string value containing the command line arguments to pass + directly to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.AspNet.InstallAspNet.Execute"> + <summary> + When overridden in a derived class, executes the task. + </summary> + <returns> + True if the task successfully executed; otherwise, false. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.AspNet.InstallAspNet.IsValidPropertyCombinations"> + <summary> + Determines if the current property values can be used together + </summary> + <returns><see langword="true"/> when properties can be used together.</returns> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Version"> + <summary> + The version of ASP.NET to install + </summary> + <remarks> + The default behavior is to use the latest version of ASP.NET available on the computer. + <list type="table"> + <listheader><term>Version</term></listheader> + <item><term>Version11</term><description>ASP.NET v1.1</description></item> + <item><term>Version20</term><description>ASP.NET v2.0</description></item> + <item><term>VersionLatest</term><description>The latest version of ASP.NET available</description></item> + </list> + </remarks> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.ApplyScriptMaps"> + <summary> + The method used to determine if ASP.NET script mappings should be applied + </summary> + <remarks> + The default behavior is to register script mappings on all sites except those with a newer version of ASP.NET. + <list type="table"> + <listheader><term>Value</term></listheader> + <item><term>Never</term><description>Register ASP.NET on the computer without updating any script mappings.</description></item> + <item><term>IfNoneExist</term><description>Register script mappings only on for sites that do not have any existing ASP.NET script mappings (not available for ASP.NET v1.1)</description></item> + <item><term>UnlessNewerExist</term><description>Register script mappings on all sites except those with a newer version of ASP.NET.</description></item> + <item><term>Always</term><description>Register script mappings on all sites, even if they already have a newer version of ASP.NET.</description></item> + </list> + </remarks> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.ClientScriptsOnly"> + <summary> + When <see langword="true"/>, the aspnet_client scripts will be installed. No script mappings will be updated. + </summary> + <remarks>This cannot be <see langword="true"/> if a value for <see cref="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Path"/> or <see cref="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.ApplyScriptMaps"/> has been specified.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Path"> + <summary> + The web application that should have its script maps updated. + </summary> + <remarks> + The path must be of the form W3SVC/[instance]/Root/[webdirectory], for example W3SVC/1/Root/SampleApp1. + As a shortcut, you can specify just the web directory name, + if the web directory is installed in the default website instance (W3SVC/1/Root). + <para>You should not specify a value for <see cref="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.ApplyScriptMaps"/> when specifying a path.</para> + </remarks> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Recursive"> + <summary> + When <see langword="true"/>, script maps are applied recursively under <see cref="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Path"/>. + </summary> + <remarks>This property is only valid when specifying a value for <see cref="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.Path"/>. It is <see langword="true"/> by default.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.AspNet.InstallAspNet.ToolName"> + <summary> + Gets the name of the executable file to run. + </summary> + <value></value> + <returns>The name of the executable file to run.</returns> + </member> + <member name="T:MSBuild.Community.Tasks.AssemblyInfo"> + <summary> + Generates an AssemblyInfo files + </summary> + <example> + <para>Generates a common version file.</para> + <code><![CDATA[ + <AssemblyInfo CodeLanguage="CS" + OutputFile="VersionInfo.cs" + AssemblyVersion="1.0.0.0" + AssemblyFileVersion="1.0.0.0" /> + ]]></code> + <para>Generates a complete version file.</para> + <code><![CDATA[ + <AssemblyInfo CodeLanguage="CS" + OutputFile="$(MSBuildProjectDirectory)\Test\GlobalInfo.cs" + AssemblyTitle="AssemblyInfoTask" + AssemblyDescription="AssemblyInfo Description" + AssemblyConfiguration="" + AssemblyCompany="Company Name, LLC" + AssemblyProduct="AssemblyInfoTask" + AssemblyCopyright="Copyright (c) Company Name, LLC 2006" + AssemblyTrademark="" + ComVisible="false" + CLSCompliant="true" + Guid="d038566a-1937-478a-b5c5-b79c4afb253d" + AssemblyVersion="1.0.0.0" + AssemblyFileVersion="1.0.0.0" /> + ]]></code> + </example> + </member> + <member name="F:MSBuild.Community.Tasks.AssemblyInfo.DEFAULT_OUTPUT_FILE"> + <summary> + The default value of <see cref="P:MSBuild.Community.Tasks.AssemblyInfo.OutputFile"/>. + The value is <c>"AssemblyInfo.cs"</c>. + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.AssemblyInfo.#ctor"> + <summary> + Initializes a new instance of the <see cref="T:AssemblyInfo"/> class. + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.AssemblyInfo.Execute"> + <summary> + When overridden in a derived class, executes the task. + </summary> + <returns> + true if the task successfully executed; otherwise, false. + </returns> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.CodeLanguage"> + <summary> + Gets or sets the code language. + </summary> + <value>The code language.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.ComVisible"> + <summary> + Gets or sets a value indicating whether [COMVisible]. + </summary> + <value><c>true</c> if [COMVisible]; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.CLSCompliant"> + <summary> + Gets or sets a value indicating whether [CLSCompliant]. + </summary> + <value><c>true</c> if [CLSCompliant]; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.Guid"> + <summary> + Gets or sets the GUID. + </summary> + <value>The GUID.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyTitle"> + <summary> + Gets or sets the assembly title. + </summary> + <value>The assembly title.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyDescription"> + <summary> + Gets or sets the assembly description. + </summary> + <value>The assembly description.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyConfiguration"> + <summary> + Gets or sets the assembly configuration. + </summary> + <value>The assembly configuration.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyCompany"> + <summary> + Gets or sets the assembly company. + </summary> + <value>The assembly company.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyProduct"> + <summary> + Gets or sets the assembly product. + </summary> + <value>The assembly product.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyCopyright"> + <summary> + Gets or sets the assembly copyright. + </summary> + <value>The assembly copyright.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyTrademark"> + <summary> + Gets or sets the assembly trademark. + </summary> + <value>The assembly trademark.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyCulture"> + <summary> + Gets or sets the assembly culture. + </summary> + <value>The assembly culture.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyVersion"> + <summary> + Gets or sets the assembly version. + </summary> + <value>The assembly version.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyFileVersion"> + <summary> + Gets or sets the assembly file version. + </summary> + <value>The assembly file version.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyInformationalVersion"> + <summary> + Gets or sets the assembly informational version. + </summary> + <value>The assembly informational version.</value> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyKeyFile"> + <summary> + Gets or sets the assembly key file. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyKeyName"> + <summary> + Gets or sets the assembly key name. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.AssemblyDelaySign"> + <summary> + Gets or sets the assembly delay sign value. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.GenerateClass"> + <summary> + Gets or sets a value indicating whether to generate the ThisAssmebly class. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.AssemblyInfo.OutputFile"> + <summary> + Gets or sets the output file. + </summary> + <value>The output file.</value> + </member> + <member name="T:MSBuild.Community.Tasks.Attrib"> + <summary> + Changes the attributes of files and/or directories + </summary> + <example> + <para>Make file Readonly, Hidden and System.</para> + <code><![CDATA[ + <Attrib Files="Test\version.txt" + ReadOnly="true" Hidden="true" System="true"/> + ]]></code> + <para>Clear Hidden and System attributes.</para> + <code><![CDATA[ + <Attrib Files="Test\version.txt" + Hidden="false" System="false"/> + ]]></code> + <para>Make file Normal.</para> + <code><![CDATA[ + <Attrib Files="Test\version.txt" + Normal="true"/> + ]]></code> + </example> + </member> + <member name="M:MSBuild.Community.Tasks.Attrib.Execute"> + <summary> + Executes the task. + </summary> + <returns><see langword="true"/> if the task ran successfully; + otherwise <see langword="false"/>.</returns> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Files"> + <summary> + Gets or sets the list of files to change attributes on. + </summary> + <value>The files to change attributes on.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Directories"> + <summary> + Gets or sets the list of directories to change attributes on. + </summary> + <value>The directories to change attributes on.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Archive"> + <summary> + Gets or sets file's archive status. + </summary> + <value><c>true</c> if archive; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Compressed"> + <summary> + Gets or sets a value indicating file is compressed. + </summary> + <value><c>true</c> if compressed; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Encrypted"> + <summary> + Gets or sets a value indicating file is encrypted. + </summary> + <value><c>true</c> if encrypted; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Hidden"> + <summary> + Gets or sets a value indicating file is hidden, and thus is not included in an ordinary directory listing. + </summary> + <value><c>true</c> if hidden; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.Normal"> + <summary> + Gets or sets a value indicating file is normal and has no other attributes set. + </summary> + <value><c>true</c> if normal; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.ReadOnly"> + <summary> + Gets or sets a value indicating file is read-only. + </summary> + <value><c>true</c> if read-only; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Attrib.System"> + <summary> + Gets or sets a value indicating file is a system file. + </summary> + <value><c>true</c> if system; otherwise, <c>false</c>.</value> + </member> + <member name="T:MSBuild.Community.Tasks.GacUtilCommands"> + <summary> + The list of the commans available to the GacUtil Task + </summary> + </member> + <member name="F:MSBuild.Community.Tasks.GacUtilCommands.Install"> + <summary>Install the list of assemblies into the GAC.</summary> + </member> + <member name="F:MSBuild.Community.Tasks.GacUtilCommands.Uninstall"> + <summary>Uninstall the list of assembly names from the GAC.</summary> + </member> + <member name="T:MSBuild.Community.Tasks.GacUtil"> + <summary> + MSBuild task to install and uninstall asseblies into the GAC + </summary> + <example>Install a dll into the GAC. + <code><![CDATA[ + <GacUtil + Command="Install" + Assemblies="MSBuild.Community.Tasks.dll" + Force="true" /> + ]]></code> + </example> + <example>Uninstall a dll from the GAC. + <code><![CDATA[ + <GacUtil + Command="Uninstall" + Assemblies="MSBuild.Community.Tasks" + Force="true" /> + ]]></code> + </example> + </member> + <member name="M:MSBuild.Community.Tasks.GacUtil.GenerateFullPathToTool"> + <summary> + Returns the fully qualified path to the executable file. + </summary> + <returns> + The fully qualified path to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.GacUtil.LogToolCommand(System.String)"> + <summary> + Logs the starting point of the run to all registered loggers. + </summary> + <param name="message">A descriptive message to provide loggers, usually the command line and switches.</param> + </member> + <member name="M:MSBuild.Community.Tasks.GacUtil.GenerateCommandLineCommands"> + <summary> + Returns a string value containing the command line arguments to pass directly to the executable file. + </summary> + <returns> + A string value containing the command line arguments to pass directly to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.GacUtil.Execute"> + <summary> + Runs the exectuable file with the specified task parameters. + </summary> + <returns> + true if the task runs successfully; otherwise, false. + </returns> + </member> + <member name="P:MSBuild.Community.Tasks.GacUtil.Command"> + <summary> + Gets or sets the command. + </summary> + <value>The command.</value> + <enum cref="T:MSBuild.Community.Tasks.GacUtilCommands"/> + </member> + <member name="P:MSBuild.Community.Tasks.GacUtil.Force"> + <summary> + Gets or sets a value indicating whether to force reinstall of an assembly. + </summary> + <value><c>true</c> if force; otherwise, <c>false</c>.</value> + </member> + <member name="P:MSBuild.Community.Tasks.GacUtil.Assemblies"> + <summary> + Gets or sets the assembly. + </summary> + <value>The assembly.</value> + </member> + <member name="P:MSBuild.Community.Tasks.GacUtil.ToolName"> + <summary> + Gets the name of the executable file to run. + </summary> + <value></value> + <returns>The name of the executable file to run.</returns> + </member> + <member name="P:MSBuild.Community.Tasks.GacUtil.StandardOutputLoggingImportance"> + <summary> + Gets the <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors. + </summary> + <value></value> + <returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns> + </member> + <member name="T:MSBuild.Community.Tasks.JavaScript.JSCompress"> + <summary> + Compresses JavaScript source by removing comments and unnecessary + whitespace. It typically reduces the size of the script by half, + resulting in faster downloads and code that is harder to read. + </summary> + <remarks> + This task does not change the behavior of the program that it is + compressing. The resulting code will be harder to debug as well as + harder to read. + </remarks> + </member> + <member name="M:MSBuild.Community.Tasks.JavaScript.JSCompress.Execute"> + <summary> + When overridden in a derived class, executes the task. + </summary> + <returns> + true if the task successfully executed; otherwise, false. + </returns> + </member> + <member name="P:MSBuild.Community.Tasks.JavaScript.JSCompress.Files"> + <summary> + Gets or sets the files to source-compress. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.JavaScript.JSCompress.Encoding"> + <summary> + Encoding to use to read and write files. + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.JavaScript.JSCompress.CompressedFiles"> + <summary> + Gets the files that were successfully source-compressed. + </summary> + </member> + <member name="T:MSBuild.Community.Tasks.Subversion.SvnCopy"> + <summary> + Copy a file or folder in Subversion + </summary> + <remarks> + This is most useful for automatically tagging your source code during a build. + You can create a tag by copying a path from one server location to another. + </remarks> + <example>Create a tag of the trunk with the current Cruise Control build number: + <code><![CDATA[ + <Target Name="TagTheBuild"> + <SvnCopy SourcePath="file:///d:/svn/repo/Test/trunk" + DestinationPath="file:///d:/svn/repo/Test/tags/BUILD-$(CCNetLabel)" + Message="Automatic build of $(CCNetProject)" /> + </Target> + ]]></code> + </example> + </member> + <member name="T:MSBuild.Community.Tasks.Subversion.SvnClient"> + <summary> + Subversion client base class + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.GenerateSvnCommand"> + <summary> + Generates the SVN command. + </summary> + <returns></returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.GenerateSvnArguments"> + <summary> + Generates the SVN arguments. + </summary> + <returns></returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.GenerateCommandLineCommands"> + <summary> + Returns a string value containing the command line arguments to pass directly to the executable file. + </summary> + <returns> + A string value containing the command line arguments to pass directly to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.ValidateParameters"> + <summary> + Indicates whether all task paratmeters are valid. + </summary> + <returns> + true if all task parameters are valid; otherwise, false. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.LogEventsFromTextOutput(System.String,Microsoft.Build.Framework.MessageImportance)"> + <summary> + Logs the events from text output. + </summary> + <param name="singleLine">The single line.</param> + <param name="messageImportance">The message importance.</param> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.GenerateFullPathToTool"> + <summary> + Returns the fully qualified path to the executable file. + </summary> + <returns> + The fully qualified path to the executable file. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnClient.LogToolCommand(System.String)"> + <summary> + Logs the starting point of the run to all registered loggers. + </summary> + <param name="message">A descriptive message to provide loggers, usually the command line and switches.</param> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Command"> + <summary> + Gets or sets the command. + </summary> + <value>The command.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Arguments"> + <summary> + Gets or sets the arguments. + </summary> + <value>The arguments.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Username"> + <summary> + Gets or sets the username. + </summary> + <value>The username.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Password"> + <summary> + Gets or sets the password. + </summary> + <value>The password.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Verbose"> + <summary> + Gets or sets the verbose. + </summary> + <value>The verbose.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Force"> + <summary> + Gets or sets the force. + </summary> + <value>The force.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Message"> + <summary> + Gets or sets the message. + </summary> + <value>The message.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.RepositoryPath"> + <summary> + Gets or sets the repository path. + </summary> + <value>The repository path.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.LocalPath"> + <summary> + Gets or sets the local path. + </summary> + <value>The local path.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Targets"> + <summary> + Gets or sets the targets. + </summary> + <value>The targets.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.Revision"> + <summary> + Gets or sets the revision. + </summary> + <value>The revision.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.CommandSwitches"> + <summary> + Gets or sets the command switchs. + </summary> + <value>The command switchs.</value> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.StandardOutputLoggingImportance"> + <summary> + Gets the <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors. + </summary> + <value></value> + <returns>The <see cref="T:Microsoft.Build.Framework.MessageImportance"></see> with which to log errors.</returns> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnClient.ToolName"> + <summary> + Gets the name of the executable file to run. + </summary> + <value></value> + <returns>The name of the executable file to run.</returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnCopy.#ctor"> + <summary> + Initializes a new instance of the <see cref="T:MSBuild.Community.Tasks.Subversion.SvnCopy"/> class. + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnCopy.GenerateSvnCommand"> + <summary> + Generates the SVN command. + </summary> + <returns></returns> + </member> + <member name="M:MSBuild.Community.Tasks.Subversion.SvnCopy.ValidateParameters"> + <summary> + Indicates whether all task paratmeters are valid. + </summary> + <returns> + true if all task parameters are valid; otherwise, false. + </returns> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnCopy.SourcePath"> + <summary> + The path of the source file or folder that should be copied + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Subversion.SvnCopy.DestinationPath"> + <summary> + The path to which the SourcePath should be copied + </summary> + </member> + <member name="T:MSBuild.Community.Tasks.Tfs.IServer"> + <summary> + Describes the behavior of a Team Foundation Server + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.IServer.GetLatestChangesetId(System.String,System.Net.ICredentials)"> + <summary> + Retrieves the latest changeset ID associated with a path + </summary> + <param name="localPath">A path on the local filesystem</param> + <param name="credentials">Credentials used to authenticate against the serer</param> + <returns></returns> + </member> + <member name="T:MSBuild.Community.Tasks.Tfs.TeamFoundationServer"> + <summary> + Handles all communication with the Team Foundation Server + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServer.#ctor(System.String)"> + <summary> + Creates an instace of the TeamFoundationServer class + </summary> + <param name="clientLocation">The local file path containing the TFS libraries. null if TFS is in the GAC.</param> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServer.GetLatestChangesetId(System.String,System.Net.ICredentials)"> + <summary> + Retrieves the latest changeset ID associated with a path + </summary> + <param name="localPath">A path on the local filesystem</param> + <param name="credentials">Credentials used to authenticate against the serer</param> + <returns></returns> + </member> + <member name="T:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException"> + <summary> + Exceptions returned by the Team Foundation Server + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException.#ctor"> + <summary> + Creates a new instance of the exception + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.TeamFoundationServerException.#ctor(System.String)"> + <summary> + Creates a new instance of the exception + </summary> + <param name="message">A description of the exception</param> + </member> + <member name="T:MSBuild.Community.Tasks.Tfs.TfsVersion"> + <summary> + Determines the changeset in a local Team Foundation Server workspace + </summary> + </member> + <member name="M:MSBuild.Community.Tasks.Tfs.TfsVersion.Execute"> + <summary> + Runs the exectuable file with the specified task parameters. + </summary> + <returns> + true if the task runs successfully; otherwise, false. + </returns> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Username"> + <summary> + The user to authenticate on the server + </summary> + <remarks>Leave empty to use the credentials of the current user.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Password"> + <summary> + The password for the user to authenticate on the server + </summary> + <remarks>Leave empty to use the credentials of the current user.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Domain"> + <summary> + The domain of the user to authenticate on the server + </summary> + <remarks>Leave empty to use the credentials of the current user.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.LocalPath"> + <summary>Path to local working copy.</summary> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.Changeset"> + <summary> + The latest changeset ID in the local path + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Tfs.TfsVersion.TfsLibraryLocation"> + <summary> + The location of the Team Foundation Server client assemblies. Leave empty when the client is installed in the Global Assembly Cache. + </summary> + </member> + <member name="T:MSBuild.Community.Tasks.Xml.XmlMassUpdate"> + <summary> + Performs multiple updates on an XML file + </summary> + <remarks> + XmlMassUpdate allows to to specify multiple changes to make to an XML file (the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentFile"/>. By default, the changes are applied to the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentFile"/>, but you can create a new file by providing the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.MergedFile"/> attribute. The change instructions are specified using XML in the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"/>. If the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"/> does not mirror the structure of the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentFile"/> exactly, you can specify the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentRoot"/> and <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsRoot"/> XPath expressions which determine how the files should be mapped to each other. + <para>Any element within the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsRoot"/> will find the corresponding element in the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentRoot"/>. If it does not exist, it will be created with all of its attributes. If it does exist, the attributes will be added or updated as specified.</para> + <para> + Any attribute declared within the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.UpdateControlNamespace"/> will not be copied to the modified file. Valid attributes are <c>key</c> and <c>action</c>. The <c>key</c> attribute allows you to define an attribute to use as the identifying attribute when you only want to update a single element, and multiple elements with the same name exist. You can also use the <c>action="remove"</c> attribute to specify that an element should be deleted instead of updated. + </para> + </remarks><example> + <para>These examples will demonstrate how to make multiple updates to a XML file named web.config. It looks like: + <code> + <![CDATA[<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <appSettings> + <add key="ItemsPerPage" value="10" /> + <add key="EnableCaching" value="true" /> + <add key="DefaultServer" value="TIGRIS" /> + </appSettings> + <system.web> + <compilation defaultLanguage="c#" debug="true" /> + <customErrors mode="Off" /> + <trace enabled="true" requestLimit="10" pageOutput="true" /> + <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> + </system.web> +</configuration> ]]> + </code> + </para> + </example><example> + You can update the file using instructions from an external file (specified as the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"/>): + <code> + <![CDATA[<XmlMassUpdate ContentFile="web.config" SubstitutionsFile="changes.xml" ContentRoot="/configuration/system.web" SubstitutionsRoot="/system.web" /> ]]> + </code> + The <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"/> is named changes.xml and contains: + <code> + <![CDATA[<system.web> + <compilation debug="false" /> + <customErrors mode="RemoteOnly" defaultRedirect="Error.htm"> + <error statusCode="401" redirect="AccessDenied.aspx" /> + </customErrors> + <trace enabled="false" /> + </system.web> ]]> + </code> + </example><example> + You can also provide the update instructions within the MSBuild project file itself. It takes advantage of the MSBuild ProjectExtensions element which allows you to add XML to a project file that will be ignored by the MSBuild engine. This example also demonstrates how to use <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.NamespaceDefinitions"/>: + <code> + <![CDATA[<ProjectExtensions> + <system.web> + <compilation debug="false" /> + <trace enabled="false" /> + </system.web> +</ProjectExtensions> +<Target Name="SubstituteFromProj"> + <XmlMassUpdate ContentFile="web.config" ContentRoot="/configuration/system.web" + NamespaceDefinitions="msb=http://schemas.microsoft.com/developer/msbuild/2003" + SubstitutionsFile="$(MSBuildProjectFullPath)" + SubstitutionsRoot="/msb:Project/msb:ProjectExtensions/msb:system.web" /> +</Target> ]]> + </code> + </example><example> + The following example demonstrates how to deal with "keyed" elements. When you need to update an element, and multiple elements exist with the same name, it must be be differentied by one of its attributes. You designate the differentiating attribute using the "key" attribute declared in the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.UpdateControlNamespace"/>. + If an element matching the keyed attribute is not found, a new element will be created (DefaultSort in the example). This example also demonstrates creating a new file with the merged changes instead of modifying the original file. + <code> + <![CDATA[ <XmlMassUpdate ContentFile="web.config" SubstitutionsFile="changes.xml" MergedFile="web.config.keyed.xml" /> ]]> + </code> + Using a changes.xml file with the following contents: + <code> + <![CDATA[<configuration xmlns:xmu="urn:msbuildcommunitytasks-xmlmassupdate"> + <appSettings> + <add xmu:key="key" key="EnableCaching" value="false" /> + <add xmu:key="key" key="DefaultSort" value="LastName" /> + </appSettings> +</configuration> ]]> + </code> + </example><example> + Use a changes.xml file with the following contents to demonstrate how to remove an element from the updated file: + <code> + <![CDATA[<configuration xmlns:xmu="urn:msbuildcommunitytasks-xmlmassupdate"> + <appSettings> + <add xmu:key="key" key="ItemsPerPage" xmu:action="remove" /> + <trace xmu:action="remove" /> + </appSettings> +</configuration> ]]> + </code> + </example><example> + You can also specify the changes to apply from within the target document. By making use of the <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsRoot"/> property, you can store multiple sets of changes to apply based on runtime conditions. + Consider the following source web.config file: + <code> + <![CDATA[<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <system.web> + <compilation defaultLanguage="c#" debug="true" /> + <customErrors mode="Off" /> + <trace enabled="true" requestLimit="10" pageOutput="true" /> + <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> + </system.web> + <substitutions> + <test> + <system.web> + <compilation debug="false" /> + <trace enabled="true" /> + </system.web> + </test> + <prod> + <system.web> + <compilation debug="false" /> + <trace enabled="false" /> + </system.web> + </prod> + </substitutions> +</configuration> ]]> + </code> + You could use the following task definition, which relies on a property "TargetEnvironment" to determine which set of changes to apply: + <code> + <![CDATA[ <XmlMassUpdate ContentFile="web.config" ContentRoot="/configuration" SubstitutionsRoot="/configuration/substitutions/$(TargetEnvironment)" /> ]]> + </code> + You will need to provide a value of "test" or "prod" to the TargetEnvironment property. The property can be defined in a PropertyGroup section of the MSBuild file, or passed as a command-line parameter. + <code> + <![CDATA[ msbuild build.proj /p:TargetEnvironment=prod ]]> + </code> + + </example> + </member> + <member name="M:MSBuild.Community.Tasks.Xml.XmlMassUpdate.Execute"> + <summary> + When overridden in a derived class, executes the task. + </summary> + <returns> + True if the task successfully executed; otherwise, false. + </returns> + </member> + <member name="M:MSBuild.Community.Tasks.Xml.XmlMassUpdate.LoadSubstitutionsDocument"> + <summary> + Returns <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"/> as an <see cref="T:System.Xml.XmlDocument"/>. + </summary> + <remarks>This method is not intended for use by consumers. It is exposed for testing purposes.</remarks> + <returns></returns> + </member> + <member name="M:MSBuild.Community.Tasks.Xml.XmlMassUpdate.LoadContentDocument"> + <summary> + Returns <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentFile"/> as an <see cref="T:System.Xml.XmlDocument"/>. + </summary> + <remarks>This method is not intended for use by consumers. It is exposed for testing purposes.</remarks> + <returns></returns> + </member> + <member name="M:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SaveMergedDocument(System.Xml.XmlDocument)"> + <summary> + Creates <see cref="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.MergedFile"/> from the specified <see cref="T:System.Xml.XmlDocument"/> + </summary> + <param name="mergedDocument">The XML to save to a file</param> + <remarks>This method is not intended for use by consumers. It is exposed for testing purposes.</remarks> + <returns></returns> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentFile"> + <summary> + The original file whose content is to be updated + </summary> + <remarks>This task is currently under construction and not necessarily feature complete.</remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsFile"> + <summary> + The file containing the list of updates to perform + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.MergedFile"> + <summary> + The file created after performing the updates + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsRoot"> + <summary> + The XPath expression used to locate the list of substitutions to perform + </summary> + <remarks>When not specified, the default is the document root: <c>/</c> + <para>When there is a set of elements with the same name, and you want to update + a single element which can be identified by one of its attributes, you need to include an attribute + named 'key' in the namespace <c>urn:msbuildcommunitytasks-xmlmassupdate</c>. The value of the + attribute is the name of the attribute that should be used as the unique identifier.</para></remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentRoot"> + <summary> + The XPath expression identifying root node that substitions are relative to + </summary> + <remarks>When not specified, the default is the document root: <c>/</c></remarks> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.NamespaceDefinitions"> + <summary> + A collection of prefix=namespace definitions used to query the XML documents + </summary> + <example> + Defining multiple namespaces: + <code> + <![CDATA[ +<XmlMassUpdate ContentFile="web.config" + SubstitutionsRoot="/configuration/substitutions" + NamespaceDefinitions = "soap=http://www.w3.org/2001/12/soap-envelope;x=http://www.w3.org/1999/XSL/Transform"> +/>]]> + </code> + </example> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.ContentPathUsedByTask"> + <summary> + The full path of the file containing content updated by the task + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.SubstitutionsPathUsedByTask"> + <summary> + The full path of the file containing substitutions used by the task + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.MergedPathUsedByTask"> + <summary> + The full path of the file containing the results of the task + </summary> + </member> + <member name="P:MSBuild.Community.Tasks.Xml.XmlMassUpdate.UpdateControlNamespace"> + <summary> + The namespace used for XmlMassUpdate pre-defined attributes + </summary> + <remarks>Evaluates to: <c>urn:msbuildcommunitytasks-xmlmassupdate</c> + <para>Attributes decorated with this namespace are used to control how a substitutions element + or attribute is handled during the update. For example, the key attribute is used to identify the + a... [truncated message content] |
From: <br...@us...> - 2009-07-24 22:21:51
|
Revision: 541 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=541&view=rev Author: brus07 Date: 2009-07-24 22:21:44 +0000 (Fri, 24 Jul 2009) Log Message: ----------- Added xml style view file for NUnit report. Added Paths: ----------- nera/Tools/nunit-v2.2.8/doc/ nera/Tools/nunit-v2.2.8/doc/files/ nera/Tools/nunit-v2.2.8/doc/files/Summary.xslt Added: nera/Tools/nunit-v2.2.8/doc/files/Summary.xslt =================================================================== --- nera/Tools/nunit-v2.2.8/doc/files/Summary.xslt (rev 0) +++ nera/Tools/nunit-v2.2.8/doc/files/Summary.xslt 2009-07-24 22:21:44 UTC (rev 541) @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method='text'/> + +<xsl:template match="/"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="test-results"> +<xsl:text>Tests run: </xsl:text> +<xsl:value-of select="@total"/> +<xsl:text>, Failures: </xsl:text> +<xsl:value-of select="@failures"/> +<xsl:text>, Not run: </xsl:text> +<xsl:value-of select="@not-run"/> +<xsl:text>, Time: </xsl:text> +<xsl:value-of select="test-suite/@time"/> +<xsl:text> seconds +</xsl:text> +<xsl:text> +</xsl:text> + +<xsl:if test="//test-case[failure]"><xsl:text>Failures: +</xsl:text></xsl:if> +<xsl:apply-templates select="//test-case[failure]"/> +<xsl:if test="//test-case[@executed='False']"><xsl:text>Tests not run: +</xsl:text></xsl:if> +<xsl:apply-templates select="//test-case[@executed='False']"/> +<xsl:text disable-output-escaping='yes'>
</xsl:text> +</xsl:template> + +<xsl:template match="test-case"> + <xsl:value-of select="position()"/><xsl:text>) </xsl:text> + <xsl:value-of select="@name"/> + <xsl:text> : </xsl:text> + <xsl:value-of select="child::node()/message"/> +<xsl:text disable-output-escaping='yes'>
</xsl:text> + <xsl:if test="failure"> + <xsl:value-of select="failure/stack-trace"/> +<xsl:text> +</xsl:text> + </xsl:if> +</xsl:template> + +</xsl:stylesheet> + + \ 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: <br...@us...> - 2009-07-24 22:07:38
|
Revision: 540 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=540&view=rev Author: brus07 Date: 2009-07-24 22:07:26 +0000 (Fri, 24 Jul 2009) Log Message: ----------- Move NUnit.framework.dll file to new place. Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj Added Paths: ----------- nera/Tools/nunit-v2.2.8/bin/nunit.framework.dll Removed Paths: ------------- nera/Tools/nunit-v2.2.8/nunit.framework.dll Copied: nera/Tools/nunit-v2.2.8/bin/nunit.framework.dll (from rev 525, nera/Tools/nunit-v2.2.8/nunit.framework.dll) =================================================================== (Binary files differ) Deleted: nera/Tools/nunit-v2.2.8/nunit.framework.dll =================================================================== (Binary files differ) Modified: nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-23 13:02:05 UTC (rev 539) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-24 22:07:26 UTC (rev 540) @@ -34,7 +34,7 @@ </Reference> <Reference Include="nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\Tools\nunit-v2.2.8\nunit.framework.dll</HintPath> + <HintPath>..\..\..\Tools\nunit-v2.2.8\bin\nunit.framework.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-23 13:02:07
|
Revision: 539 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=539&view=rev Author: brus07 Date: 2009-07-23 13:02:05 +0000 (Thu, 23 Jul 2009) Log Message: ----------- Added new folder for common target files. Added Paths: ----------- nera/Targets/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <br...@us...> - 2009-07-23 12:46:00
|
Revision: 538 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=538&view=rev Author: brus07 Date: 2009-07-23 12:45:53 +0000 (Thu, 23 Jul 2009) Log Message: ----------- Move Demo test to new source file. Now copy Plugin.dll file from test_files folder to build folder in SetUp test (not in MSBuild file). Modified Paths: -------------- nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj nera/projects/nera.tester.runner/trunk/test/Class1.cs Added Paths: ----------- nera/projects/nera.tester.runner/trunk/test/DemoTester.cs Modified: nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj 2009-07-23 12:14:57 UTC (rev 537) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.csproj 2009-07-23 12:45:53 UTC (rev 538) @@ -75,13 +75,9 @@ Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> - --> - <PropertyGroup> - <Mas>C:\MyProject\Des</Mas> - </PropertyGroup> <Target Name="AfterBuild"> - <Copy SourceFiles="test_files/lib/Plugin.dll" DestinationFolder="$(OutputPath)" /> </Target> + --> <PropertyGroup> <PostBuildEvent> </PostBuildEvent> Modified: nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj =================================================================== --- nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-23 12:14:57 UTC (rev 537) +++ nera/projects/nera.tester.runner/trunk/nera.tester.runner.test.csproj 2009-07-23 12:45:53 UTC (rev 538) @@ -48,6 +48,9 @@ </ItemGroup> <ItemGroup> <Compile Include="test\Class1.cs" /> + <Compile Include="test\DemoTester.cs"> + <SubType>Code</SubType> + </Compile> <Compile Include="test\Properties\AssemblyInfo.cs" /> <Compile Include="test\SubmitTestingHelper.cs" /> <Compile Include="test\TestsHelper.cs" /> @@ -62,7 +65,6 @@ <MySourceFiles Include="test_files\test1\**\*.*" Exclude="test_files\test1\**\.svn\**\*.*" /> </ItemGroup> <Target Name="AfterBuild"> - <Copy SourceFiles="test_files/lib/Plugin.dll" DestinationFolder="$(OutputPath)" /> <Copy SourceFiles="@(MySourceFiles)" DestinationFiles="@(MySourceFiles->'$(OutputPath)\%(RecursiveDir)%(Filename)%(Extension)')" /> </Target> </Project> \ No newline at end of file Modified: nera/projects/nera.tester.runner/trunk/test/Class1.cs =================================================================== --- nera/projects/nera.tester.runner/trunk/test/Class1.cs 2009-07-23 12:14:57 UTC (rev 537) +++ nera/projects/nera.tester.runner/trunk/test/Class1.cs 2009-07-23 12:45:53 UTC (rev 538) @@ -11,18 +11,5 @@ { Assert.AreEqual(4, 4); } - - [Test] - public void SubmitTest1() - { - SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode1, TestsHelper.Result1); - } - - [Test] - public void SubmitTest2() - { - SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode2, TestsHelper.Result2); - } - } } Copied: nera/projects/nera.tester.runner/trunk/test/DemoTester.cs (from rev 536, nera/projects/nera.tester.runner/trunk/test/Class1.cs) =================================================================== --- nera/projects/nera.tester.runner/trunk/test/DemoTester.cs (rev 0) +++ nera/projects/nera.tester.runner/trunk/test/DemoTester.cs 2009-07-23 12:45:53 UTC (rev 538) @@ -0,0 +1,47 @@ +using NUnit.Framework; +using System; + +namespace Nera.Tester.Runner.Test +{ + [TestFixture] + public class DemoTester + { + private const string PluginFileAddres = "../../test_files/lib/Plugin.dll"; + private const string PluginFileName = "Plugin.dll"; + + /// <summary> + /// <para> + /// Sets up the test environment. + /// </para> + /// </summary> + [SetUp] + public void SetUp() + { + System.IO.File.Copy(PluginFileAddres, PluginFileName, true); + } + + /// <summary> + /// <para> + /// Cleans up the test environment. + /// </para> + /// </summary> + [TearDown] + public void TearDown() + { + System.IO.File.Delete(PluginFileName); + } + + [Test] + public void SubmitTest1() + { + SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode1, TestsHelper.Result1); + } + + [Test] + public void SubmitTest2() + { + SubmitTestingHelper.TestingCodeHelper(TestsHelper.SourceCode2, TestsHelper.Result2); + } + + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |