From 3466cdf3b2378ccf87c8ae7a507fce3dcec14206 Mon Sep 17 00:00:00 2001 From: sbohlen Date: Tue, 17 Aug 2010 13:43:22 +0000 Subject: [PATCH] update Spring.Messaging.Ems.2010.csproj to reference 2010 versions of Core, Aop, and Data --- .../Factory/Xml/XmlObjectDefinitionReader.cs | 48 +++++++++---------- .../Spring.Messaging.Ems.2010.csproj | 12 ++--- .../Spring.Web.Tests.2010.csproj | 2 + 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/src/Spring/Spring.Core/Objects/Factory/Xml/XmlObjectDefinitionReader.cs b/src/Spring/Spring.Core/Objects/Factory/Xml/XmlObjectDefinitionReader.cs index 0817845e..b5936a4f 100644 --- a/src/Spring/Spring.Core/Objects/Factory/Xml/XmlObjectDefinitionReader.cs +++ b/src/Spring/Spring.Core/Objects/Factory/Xml/XmlObjectDefinitionReader.cs @@ -1,19 +1,19 @@ #region License -/* - * Copyright 2002-2005 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/* + * Copyright 2002-2005 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #endregion @@ -65,8 +65,8 @@ namespace Spring.Objects.Factory.Xml { } } -#if !NET_2_0 - private class ValidationEventHandlerWrapper +#if !NET_2_0 + private class ValidationEventHandlerWrapper { private XmlReader _sender; private XmlObjectDefinitionReader _owner; @@ -85,7 +85,7 @@ namespace Spring.Objects.Factory.Xml { _owner.HandleValidation(_sender,args); } - } + } #endif #endregion @@ -360,9 +360,9 @@ namespace Spring.Objects.Factory.Xml #if !NET_2_0 // only because 1.0/1.1 don't pass the sender into the handler callback... ValidationEventHandlerWrapper validationEventHandlerWrapper = new ValidationEventHandlerWrapper(this); - reader = XmlUtils.CreateValidatingReader(stream, Resolver, NamespaceParserRegistry.GetSchemas(), - new ValidationEventHandler(validationEventHandlerWrapper.HandleValidation)); - validationEventHandlerWrapper.Reader = reader; + reader = XmlUtils.CreateValidatingReader(stream, Resolver, NamespaceParserRegistry.GetSchemas(), + new ValidationEventHandler(validationEventHandlerWrapper.HandleValidation)); + validationEventHandlerWrapper.Reader = reader; #else reader = XmlUtils.CreateValidatingReader(stream, Resolver, NamespaceParserRegistry.GetSchemas(), HandleValidation); #endif @@ -403,12 +403,12 @@ namespace Spring.Objects.Factory.Xml throw new RetryParseException(); } } -#if !NET_2_0 - // ignore validation errors for well-known 'xml' namespace. This seems to be a bug in net 1.0 + 1.1 - if (ex.Message.IndexOf("http://www.w3.org/XML/1998/namespace:") > -1) +#if !NET_2_0 + // ignore validation errors for well-known 'xml' namespace. This seems to be a bug in net 1.0 + 1.1 + if (ex.Message.IndexOf("http://www.w3.org/XML/1998/namespace:") > -1) { return; - } + } #endif throw ex; } diff --git a/src/Spring/Spring.Messaging.Ems/Spring.Messaging.Ems.2010.csproj b/src/Spring/Spring.Messaging.Ems/Spring.Messaging.Ems.2010.csproj index c2fd9d01..13a02c3f 100644 --- a/src/Spring/Spring.Messaging.Ems/Spring.Messaging.Ems.2010.csproj +++ b/src/Spring/Spring.Messaging.Ems/Spring.Messaging.Ems.2010.csproj @@ -159,17 +159,17 @@ - + {3A3A4E65-45A6-4B20-B460-0BEDC302C02C} - Spring.Aop.2008 + Spring.Aop.2010 - + {710961A3-0DF4-49E4-A26E-F5B9C044AC84} - Spring.Core.2008 + Spring.Core.2010 - + {AE00E5AB-C39A-436F-86D2-33BFE33E2E40} - Spring.Data.2008 + Spring.Data.2010 diff --git a/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2010.csproj b/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2010.csproj index 4142d31d..afefc41e 100644 --- a/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2010.csproj +++ b/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2010.csproj @@ -97,6 +97,7 @@ + @@ -161,6 +162,7 @@ +