2009-03-31 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Tue, 31 Mar 2009 15:01:21 +0000 (15:01 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 31 Mar 2009 15:01:21 +0000 (15:01 -0000)
commite9a017314142715c297a8dd42575e0759d6c0b24
treea871bdb518fce2421c3d00db38a53362466ec8df
parent20242bfa9828e5a028d1ae64922186d98fdedeab
2009-03-31  Marek Habersack  <mhabersack@novell.com>

* All of the below are part of the fix for bug #489687

* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
constructors.

* BuildProvider.cs: associated virtual path is stored internally
as an instance of VirtualPath, accessible via new
VirtualPathInternal property.

* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
detect fake virtual paths.
GetBuildProvider now takes a VirtualPath instead of string for the
virtualPath parameter. The passed VirtualPath instance is passed
unchanged to BuildProvider.

* BuildManager.cs: AssertVirtualPathExists now uses
VirtualPath.IsFake to check for fake virtual paths.

* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
MasterPageBuildProvider.cs, PageBuildProvider.cs,
ThemeBuildProvider.cs, UserControlBuildProvider.cs,
WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
CreateParser overloads now take a VirtualPath instead of a string
for the virtualPath parameter.

* ThemeBuildProvider.cs: use new parser constructors which take
VirtualPath instances instead of strings.

2009-03-31  Marek Habersack  <mhabersack@novell.com>

* VirtualPath.cs: added code to detect whether the VirtualPath
instance represents a fake virtual path (IsFake property).
Added new property DirectoryNoNormalize which returns
non-normalized directory for the VirtualPath instance.
Made ToString () a bit more friendly and well-behaved.

2009-03-31  Marek Habersack  <mhabersack@novell.com>

* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
VirtualPath instance for the virtualPath parameter, instead of a
string.

svn path=/trunk/mcs/; revision=130665
26 files changed:
mcs/class/System.Web/System.Web.Compilation/ApplicationFileBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
mcs/class/System.Web/System.Web.Compilation/BuildManager.cs
mcs/class/System.Web/System.Web.Compilation/BuildManagerDirectoryBuilder.cs
mcs/class/System.Web/System.Web.Compilation/BuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/ChangeLog
mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/MasterPageBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/PageBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/TagAttributes.cs
mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/ThemeDirectoryCompiler.cs
mcs/class/System.Web/System.Web.Compilation/UserControlBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/WebHandlerBuildProvider.cs
mcs/class/System.Web/System.Web.Compilation/WebServiceBuildProvider.cs
mcs/class/System.Web/System.Web.UI/ApplicationFileParser.cs
mcs/class/System.Web/System.Web.UI/ChangeLog
mcs/class/System.Web/System.Web.UI/MasterPageParser.cs
mcs/class/System.Web/System.Web.UI/PageParser.cs
mcs/class/System.Web/System.Web.UI/PageThemeFileParser.cs
mcs/class/System.Web/System.Web.UI/PageThemeParser.cs
mcs/class/System.Web/System.Web.UI/UserControlParser.cs
mcs/class/System.Web/System.Web.UI/WebHandlerParser.cs
mcs/class/System.Web/System.Web.UI/WebServiceParser.cs
mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/VirtualPath.cs