Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Bjarne Kvinge <rolf@xamarin.com>2011-09-23 15:41:10 +0400
committerRolf Bjarne Kvinge <rolf@xamarin.com>2011-10-07 11:38:32 +0400
commitbdb46ecfc9c9990225719c30ff26cad76d0a1d5a (patch)
tree7b09fbf4fa122ce53a88b7fd6e845df73bb33cfb /mcs/class/Microsoft.Build/Microsoft.Build.Logging
parentbc635a9b0514feae1767f7d9c14017291c4c658c (diff)
[Microsoft.Build] Stub out a lot of classes to make NuGet build with mono.
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Logging')
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorResetter.cs32
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorSetter.cs32
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/ConsoleLogger.cs89
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/FileLogger.cs36
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/ForwardingLoggerRecord.cs45
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/LoggerDescription.cs43
-rw-r--r--mcs/class/Microsoft.Build/Microsoft.Build.Logging/WriteHandler.cs32
7 files changed, 309 insertions, 0 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorResetter.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorResetter.cs
new file mode 100644
index 00000000000..5bd3da3e7c2
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorResetter.cs
@@ -0,0 +1,32 @@
+// ColorResetter.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Microsoft.Build.Logging
+{
+ public delegate void ColorResetter ();
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorSetter.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorSetter.cs
new file mode 100644
index 00000000000..7e510e7bbf0
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ColorSetter.cs
@@ -0,0 +1,32 @@
+// ColorSetter.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Microsoft.Build.Logging
+{
+ public delegate void ColorSetter (System.ConsoleColor color);
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ConsoleLogger.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ConsoleLogger.cs
new file mode 100644
index 00000000000..161476c2c0b
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ConsoleLogger.cs
@@ -0,0 +1,89 @@
+// ConsoleLogger.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using Microsoft.Build.Framework;
+
+using System;
+
+namespace Microsoft.Build.Logging
+{
+ public class ConsoleLogger : INodeLogger
+ {
+ public ConsoleLogger ()
+ : this (LoggerVerbosity.Normal)
+ {
+ }
+
+ public ConsoleLogger (LoggerVerbosity verbosity)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public ConsoleLogger (LoggerVerbosity verbosity, WriteHandler write, ColorSetter colorSet, ColorResetter colorReset)
+ {
+ throw new NotImplementedException ();
+ }
+
+ #region INodeLogger implementation
+ public void Initialize (IEventSource eventSource, int nodeCount)
+ {
+ throw new NotImplementedException ();
+ }
+ #endregion
+
+ #region ILogger implementation
+ public void Initialize (IEventSource eventSource)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Shutdown ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string Parameters {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public LoggerVerbosity Verbosity {
+ get {
+ throw new NotImplementedException ();
+ }
+ set {
+ throw new NotImplementedException ();
+ }
+ }
+ #endregion
+ }
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/FileLogger.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/FileLogger.cs
new file mode 100644
index 00000000000..331d29ab9b2
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/FileLogger.cs
@@ -0,0 +1,36 @@
+// FileLogger.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+
+namespace Microsoft.Build.Logging
+{
+ public class FileLogger
+ {
+ }
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ForwardingLoggerRecord.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ForwardingLoggerRecord.cs
new file mode 100644
index 00000000000..84be38df674
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/ForwardingLoggerRecord.cs
@@ -0,0 +1,45 @@
+// ForwardingLoggerRecord.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Logging
+{
+ public class ForwardingLoggerRecord
+ {
+ public ForwardingLoggerRecord (ILogger centralLogger, LoggerDescription forwardingLoggerDescription)
+ {
+ this.CentralLogger = centralLogger;
+ this.ForwardingLoggerDescription = forwardingLoggerDescription;
+ }
+
+ public ILogger CentralLogger { get; private set; }
+ public LoggerDescription ForwardingLoggerDescription { get; private set; }
+ }
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/LoggerDescription.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/LoggerDescription.cs
new file mode 100644
index 00000000000..5115402c677
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/LoggerDescription.cs
@@ -0,0 +1,43 @@
+// LoggerDescription.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using Microsoft.Build.Framework;
+
+namespace Microsoft.Build.Logging
+{
+ public class LoggerDescription
+ {
+ public LoggerDescription (string loggerClassName, string loggerAssemblyName,
+ string loggerAssemblyFile, string loggerSwitchParameters,
+ LoggerVerbosity verbosity)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Logging/WriteHandler.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/WriteHandler.cs
new file mode 100644
index 00000000000..29ce75c4141
--- /dev/null
+++ b/mcs/class/Microsoft.Build/Microsoft.Build.Logging/WriteHandler.cs
@@ -0,0 +1,32 @@
+// WriteHandler.cs
+//
+// Author:
+// Rolf Bjarne Kvinge (rolf@xamarin.com)
+//
+// Copyright (C) 2011 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace Microsoft.Build.Logging
+{
+ public delegate void WriteHandler (string message);
+}
+