Commit Graph
55 Commits
Author SHA1 Message Date
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gonzalo Paniagua Javier cee0aa4219 2004-06-15 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: allow empty <configSections>.

svn path=/trunk/mcs/; revision=29577
2004-06-15 04:59:18 +00:00
Gonzalo Paniagua Javier 99a2ca96d9 2004-05-17 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: don't ask me why, but the .cctor
	initialization of 'instance' field does no longer work.

svn path=/trunk/mcs/; revision=27539
2004-05-17 20:34:32 +00:00
Gonzalo Paniagua Javier e193340b0f 2004-05-06 Gonzalo Paniagua Javier <[email protected]>
* ConfigXmlDocument.cs: removed method that was supposed to be internal.

	* ConfigurationSettings.cs: instead of calling the overload that doesn't
	exist in MS, use what we have when loading an external file.

svn path=/trunk/mcs/; revision=26793
2004-05-06 00:10:42 +00:00
Gonzalo Paniagua Javier 3cca8848f5 2004-04-20 Gonzalo Paniagua Javier <[email protected]>
* ConfigXmlDocument.cs: fixed overloaded Load and added a new one that
	sets the file name.

	* ConfigurationSettings.cs: use the new Load in ConfigXmlDocument when
	loading sections.

	* NameValueFileSectionHandler.cs: don't fails if the path for the 'file'
	attribute doesn't have a directory.

	Closes bug #57244.

svn path=/trunk/mcs/; revision=25728
2004-04-20 14:44:06 +00:00
Gonzalo Paniagua Javier b40bb7ed5f updated changelog
svn path=/trunk/mcs/; revision=24358
2004-03-19 22:55:45 +00:00
Gonzalo Paniagua Javier 58fd85e029 2004-03-19 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: removed FileWatcherCache.

svn path=/trunk/mcs/; revision=24357
2004-03-19 22:51:13 +00:00
Marek Safar 69e8f23c41 2004-02-04 Marek Safar <[email protected]>
* Makefile: Build System.dll in two steps. Because of the circular
        dependency with System.XML.dll.

svn path=/trunk/mcs/; revision=22761
2004-02-04 08:30:20 +00:00
Gonzalo Paniagua Javier 683a6036bc 2003-12-03 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: initialize config in
	ChangeConfigurationSettings if it has not been done yet. Patch by
	George Kodinov [email protected]). Fixes bug #51643.

svn path=/trunk/mcs/; revision=20744
2003-12-03 16:35:26 +00:00
Gonzalo Paniagua Javier a5ddf37045 update changelog
svn path=/trunk/mcs/; revision=20679
2003-12-02 03:46:33 +00:00
Gonzalo Paniagua Javier e3ae67e9dc 2003-12-02 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: handle allowdefinition and allowlocation,
	added locks, don't reopen the file for every new section to be read,
	but keep them as strings and build the section handlers with that.

svn path=/trunk/mcs/; revision=20678
2003-12-02 03:45:27 +00:00
Ben Maurer 6c4da907eb 2003-11-17 Ben Maurer <[email protected]>
* ConfigurationSettings.cs: make the *Mark objects static
	because they need to be comparable across instances.
	(ReadSectionGroup): You can add an element to a group declared
	in the parent config files (MS.net's QuickStarts do this).

svn path=/trunk/mcs/; revision=20145
2003-11-17 22:53:17 +00:00
Gonzalo Paniagua Javier aad5697e24 2003-11-06 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: don't handle null or non-existent file in
	the catch blocks.

svn path=/trunk/mcs/; revision=19669
2003-11-06 07:40:27 +00:00
Gonzalo Paniagua Javier 9c407bc7bd 2003-10-03 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: really make the cache work.

svn path=/trunk/mcs/; revision=18568
2003-10-03 20:13:43 +00:00
Gonzalo Paniagua Javier 8122d34aea 2003-10-03 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: pass the file name we're reading as the
	context.

svn path=/trunk/mcs/; revision=18536
2003-10-03 03:58:22 +00:00
Gonzalo Paniagua Javier 3c197b11f4 2003-10-03 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
	that improves performance by not reading the file more than once.

svn path=/trunk/mcs/; revision=18534
2003-10-03 02:46:07 +00:00
Gonzalo Paniagua Javier 8f596a484d Reverted patch by Eric.
svn path=/trunk/mcs/; revision=18468
2003-10-01 13:44:09 +00:00
Lluis Sanchez 9cc0311a83 * ConfigurationSettings.cs: Added null check for fileCache in GetCOnfig.
It can be null if the ConfigurationData instance failed to Load.

svn path=/trunk/mcs/; revision=18466
2003-10-01 11:32:02 +00:00
Gonzalo Paniagua Javier b2c4a00cd9 2003-10-01 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
	that improves performance by not reading the file more than once.

svn path=/trunk/mcs/; revision=18462
2003-10-01 02:16:44 +00:00
Andreas N 260ee8948b 2003-07-15 Andreas Nahr <[email protected]>
* ConfigurationSettings.cs: Removed unused exception variable, fixes compiler warning

svn path=/trunk/mcs/; revision=16261
2003-07-15 10:08:31 +00:00
Lluis Sanchez 338698bd27 * ConfigurationSettings.cs: Avoid chicken-egg problem when reading machine.config.
Cannot use an uri to read mechine.config because web request module handelrs are
	  defined in machine.config.

svn path=/trunk/mcs/; revision=15446
2003-06-16 22:25:36 +00:00
Gonzalo Paniagua Javier 01a8a4e3cb 2003-03-02 Gonzalo Paniagua Javier <[email protected]>
* AppSettingsReader.cs: fixed bug #38755.

svn path=/trunk/mcs/; revision=12102
2003-03-02 16:12:55 +00:00
Gonzalo Paniagua Javier 8543293ad2 2002-12-19 Gonzalo Paniagua Javier <[email protected]>
* ConfigXmlDocument.cs: don't jump over the first element.
	* ConfigurationSettings.cs: pass doc.DocumentElement instead of doc.

	This used to work until i tried to access one attribute of the first
	element and realized that the element was not the expected!
	This change does not affect the configuration handlers that only use
	ChildNodes property on the XmlNode they get as argument.

svn path=/trunk/mcs/; revision=9760
2002-12-19 01:50:06 +00:00
Gonzalo Paniagua Javier acb4421b8b 2002-12-15 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: removed type loading hack no longer needed.

svn path=/trunk/mcs/; revision=9668
2002-12-15 12:41:50 +00:00
Jonathan Pryor 2891b0badc Allow configuration settings to be removed. Previously, if you tried to
remove a configuration setting, you'd get an exception saying that there was
no factory for it (i.e. it had already been removed).

svn path=/trunk/mcs/; revision=9664
2002-12-15 04:43:37 +00:00
Gonzalo Paniagua Javier 8282b48178 2002-11-04 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: use AppDomainSetup to get the configuration
	file name for the AppDomain.

svn path=/trunk/mcs/; revision=8823
2002-11-04 23:49:25 +00:00
Gonzalo Paniagua Javier bf84902522 2002-10-31 Gonzalo Paniagua Javier <[email protected]>
* ConfigHelper.cs: NameValueCollection.Add is now fixed.

svn path=/trunk/mcs/; revision=8700
2002-10-31 04:18:06 +00:00
Martin Baulig f9202c17a9 2002-10-14 Martin Baulig <[email protected]>
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath):
	Append ".config" to the filename, not ".exe.config" since the
	filename already has a ".exe" suffix.

svn path=/trunk/mcs/; revision=8239
2002-10-14 10:04:29 +00:00
Martin Baulig 5e63beb027 2002-10-14 Martin Baulig <[email protected]>
* ConfigurationSettings.cs (DefaultConfig.GetAppConfigPath): Use
	Assembly.Location, not Assembly.FullName to get its filename.

svn path=/trunk/mcs/; revision=8238
2002-10-14 09:51:05 +00:00
Gonzalo Paniagua Javier 0cdfce96e0 2002-10-10 Gonzalo Paniagua Javier <[email protected]>
* ConfigHelper.cs: workaround for a bug in NameValueCollection.
	* ConfigurationSettings.cs: load sections when the parent holds a
	handler for it. Now overriding appSettings values in the app config
	file works (first <remove..> and then <add...).

svn path=/trunk/mcs/; revision=8126
2002-10-10 03:32:29 +00:00
Gonzalo Paniagua Javier 27d89dfd8a 2002-10-09 Gonzalo Paniagua Javier <[email protected]>
* ConfigHelper.cs:
	* NameValueFileSectionHandler.cs: check that Attributes is not null.

svn path=/trunk/mcs/; revision=8122
2002-10-10 00:40:28 +00:00
Miguel de Icaza 16f8895006 2002-10-09 Miguel de Icaza <[email protected]>
* NameValueFileSectionHandler.cs: For now if a section is not
	present, return null.  Do not know what the real fix is.  Gonzalo
	will have to look at this, but the debugger was crashing as
	appSettings in the machine.config does not exist, but GetConfig
	returns a non-null value when looking it up when you do a
	GetDocumentForSection ("appSettings").

svn path=/trunk/mcs/; revision=8115
2002-10-09 22:37:57 +00:00
Gonzalo Paniagua Javier b0cf876ecb 2002-10-09 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: use get_machine_config_path internal call.

svn path=/trunk/mcs/; revision=8077
2002-10-08 23:13:26 +00:00
Gonzalo Paniagua Javier c4a0d2615b 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
* ConfigXmlDocument.cs: move the reader for the section to the first
	element.

	* ConfigurationSettings.cs: fixed hierarchical search for a handler.

svn path=/trunk/mcs/; revision=8052
2002-10-08 04:16:31 +00:00
Gonzalo Paniagua Javier 9f58f3fde4 ChangeLog
svn path=/trunk/mcs/; revision=8029
2002-10-06 03:37:50 +00:00
Gonzalo Paniagua Javier fdf2ccc675 2002-10-06 Gonzalo Paniagua Javier <[email protected]>
* ConfigurationSettings.cs: reimplemented. It is now able to deliver
	sections to their handlers for processing.

svn path=/trunk/mcs/; revision=8028
2002-10-06 03:37:20 +00:00
Gonzalo Paniagua Javier 3dafc5d7a9 2002-10-03 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added new files in System.Configuration.

	* System.Configuration/ConfigHelper.cs: New file. Contains some
	helper functions for getting key-value collections from the config file.

	* System.Configuration/ConfigXmlDocument.cs: wrapper around xml
	elements to provide line number and file name info.
	* System.Configuration/IConfigXmlNode.cs: used in ConfigXmlDocument
	and ConfigurationException.

	* System.Configuration/ConfigurationException.cs: get file name and line
	number from the wrapped XmlNode. Display this info in Message.

	* System.Configuration/NameValueFileSectionHandler.cs: new handler.
	* System.Configuration/DictionarySectionHandler.cs:
	* System.Configuration/NameValueSectionHandler.cs: modified to use the
	helper methods in ConfigHelper.

svn path=/trunk/mcs/; revision=7953
2002-10-03 04:37:54 +00:00
Gonzalo Paniagua Javier c2b37008ec 2002-10-02 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added new files.
	* System.Configuration/AppSettingsReader.cs: New file.
	* System.Configuration/IConfigurationSystem.cs: New file.

	* System.Configuration/IgnoreSectionHandler.cs:
	* System.Configuration/NameValueSectionHandler.cs:
	* System.Configuration/SingleTagSectionHandler.cs: little fixes.

svn path=/trunk/mcs/; revision=7933
2002-10-02 04:04:58 +00:00
Martin Baulig 31d6d573f9 2002-09-03 Martin Baulig <[email protected]>
* ConfigurationSettings.cs (ConfigurationSettings.GetConfig): Use the
	correct configuration filename, fixed the TODO.
	(GetSectionHanderType): Renamed to GetSectionHandlerType.

	* NameValueSectionHandler.cs (NameValueSectionHandler.Create): Allow
	whitespaces in the configuration file.

svn path=/trunk/mcs/; revision=7199
2002-09-03 12:36:00 +00:00
Piers Haken cc63806f23 minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
svn path=/trunk/mcs/; revision=3568
2002-04-03 06:28:53 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Duncan Mak a7867a2e45 Added more stuff to various Exceptions to make them serializable
svn path=/trunk/mcs/; revision=2211
2002-01-31 12:32:31 +00:00
Ravi Pratap M c861ffea80 2002-01-06 Ravi Pratap <[email protected]>
* ConfigurationSettings.cs, IgnoreSectionHandler.cs : MonoTODO decoration

	* SingleTagSectionHandler.cs, DictionarySectionHandler.cs,
	NameValueSectionHandler.cs : Ditto.

svn path=/trunk/mcs/; revision=1866
2002-01-06 10:26:35 +00:00
Miguel de Icaza 05d7507da3 Remove dependency on Windows.Forms
svn path=/trunk/mcs/; revision=1313
2001-11-09 22:22:27 +00:00
Sean MacIsaac 6d11b05caa Removing old build files. NAnt doesn't use them.
svn path=/trunk/mcs/; revision=969
2001-09-26 09:11:29 +00:00
Christopher Podurgiel 2812083512 2001-08-28 Christopher Podurgiel <[email protected]>
* IConfigurationSectionHandler.cs: Added reference to System.Xml.

	* SingleTagSectionHandler.cs: Added Implementation of Create() method.

	* NameValueSectionHandler.cs: Added Implementation of Create() method.

	* ConfigurationException.cs: Now returns proper message rather than "System Exception".

svn path=/trunk/mcs/; revision=662
2001-08-28 22:30:10 +00:00
Christopher Podurgiel 2cd0a23ee2 Now returns proper message rather than "System Exception".
svn path=/trunk/mcs/; revision=661
2001-08-28 22:29:13 +00:00
Christopher Podurgiel 0c9c748965 Added reference to System.Xml.
svn path=/trunk/mcs/; revision=660
2001-08-28 22:28:43 +00:00
Christopher Podurgiel 11d015e36a Added Implementation of Create() method.
svn path=/trunk/mcs/; revision=659
2001-08-28 22:28:27 +00:00
Christopher Podurgiel 4182b80859 No longer references the NameValueSectionHandler directly. Instead it uses System.Reflection to call the Create() method for the appropriate SectionHandler as defined in the .config file.
svn path=/trunk/mcs/; revision=633
2001-08-26 22:42:24 +00:00