Commit Graph
165 Commits
Author SHA1 Message Date
Sebastien Pouliot 126013cbd9 2008-01-12 Sebastien Pouliot <[email protected]>
* SettingsPropertyValue.cs: Fix typo. Found using Gendarme.


svn path=/trunk/mcs/; revision=92758
2008-01-12 17:59:40 +00:00
Atsushi Eno ee6b478c4e 2007-11-21 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : when a property is found
	  only in the config file and not in the corresponding config type,
	  do not raise NRE but just add it as a simple property value.
	  Fixed bug #343459.


svn path=/trunk/mcs/; revision=90108
2007-11-21 19:53:26 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Atsushi Eno 55a950c41f 2007-11-13 Atsushi Enomoto <[email protected]>
* ConfigXmlDocument.cs : corcompare cleanup.


svn path=/trunk/mcs/; revision=89529
2007-11-13 09:25:55 +00:00
Atsushi Eno d694d4f81e 2007-11-06 Atsushi Enomoto <[email protected]>
* CustomizableFileSettingsProvider.cs : Type.Namespace can be null.
	  MSDN documentation is kind of wrong here.


svn path=/trunk/mcs/; revision=88956
2007-11-06 09:43:48 +00:00
Arina Itkes e86d0f17f3 TARGET_JVM: return flow to the version before revision 80469
svn path=/trunk/mcs/; revision=88815
2007-11-04 10:30:24 +00:00
Miguel de Icaza 5eedfa140d Remove warnings
svn path=/trunk/mcs/; revision=86643
2007-09-29 19:10:37 +00:00
Konstantin Triger aa9036256a TARGET_JVM: Environment.GetFolderPath is not supported.
svn path=/trunk/mcs/; revision=84093
2007-08-14 16:16:50 +00:00
Noam Lampert 388cd278d6 Fix compilation in java
svn path=/trunk/mcs/; revision=80990
2007-06-28 18:53:00 +00:00
Atsushi Eno a351e7c4ea 2007-06-21 Atsushi Enomoto <[email protected]>
* SettingValueElement.cs : implement Reset().
	* CustomizableFileSettingsProvider.cs : fixed company name getter
	  and product name getter.
	  LoadPropertyValue() should expect null ValueXml.
	* LocalFileSettingsProvider.cs : time to switch. With a bit of
	  directory name difference, it should work.


svn path=/trunk/mcs/; revision=80469
2007-06-21 13:13:51 +00:00
Atsushi Eno 67e9911781 2007-06-13 Atsushi Enomoto <[email protected]>
* CustomizableLocalFileSettingsProvider.cs :
	  - added extern alias to avoid reference and I could enable
	    Initialize() again.
	  - Copied default user config path stuff (Company/Product/Version)
	    from MWF Application.cs.
	  - SaveProperties() and SavePropertiesNoRoaming() are unified, and
	    mostly rewritten to create userSettings, set value correctly, etc.
	  - GetPropertyValues() should collect default values as well.

	  It is not enabled yet, as Configuration.Save() seems to do wrong
	  and could overwrite application exe.config.


svn path=/trunk/mcs/; revision=79474
2007-06-13 18:35:58 +00:00
Atsushi Eno 6e4bd7db9e 2007-06-13 Atsushi Enomoto <[email protected]>
* SettingsContext.cs : add internal CurrentSettings property to
	  make current ApplicationSettingsBase accessible.
	* ApplicationSettingsBase.cs : use above.
	* SettingValueElement.cs : implement SerializeToXmlElement().

	* SettingElementTest.cs : test initial Value.


svn path=/trunk/mcs/; revision=79466
2007-06-13 17:50:52 +00:00
Vladimir Krasnov 4313759f85 * SettingValueElement.cs: fixed stub Properties property for System.Configuration fixes
svn path=/trunk/mcs/; revision=79259
2007-06-12 13:39:37 +00:00
Atsushi Eno 96d90229c1 2007-06-04 Atsushi Enomoto <[email protected]>
* CustomizableLocalFileSettingsProvider.cs : contribution for
	  LocalFileSettingsProvider implementation, by Noriaki Okimoto
	  ([email protected]), modified by myself to fit for System.dll.
	  Origin of code license assignment at
	  http://ojk.sppd.ne.jp/ojkblog/?date=20070603#p01.
	* LocalFileSettingsProvider.cs : rewriting to use above.

	  Due to some kind of compiler issue it is not enabled yet.

	* System.dll.sources :
	  added CustomizableLocalFileSettingsProvider.cs.


svn path=/trunk/mcs/; revision=78561
2007-06-04 14:03:54 +00:00
Sebastien Pouliot 885b75a8a1 hopefully fix build
svn path=/trunk/mcs/; revision=78258
2007-05-30 18:53:00 +00:00
Atsushi Eno 2270d913b0 2007-05-30 Atsushi Enomoto <[email protected]>
* ApplicationSettingsBase.cs : removed garbage debugging stuff.


svn path=/trunk/mcs/; revision=78241
2007-05-30 17:47:05 +00:00
Atsushi Eno 8b06b7c8a2 2007-05-30 Atsushi Enomoto <[email protected]>
* ConfigXmlDocument.cs : added explicit interface implementations.
	* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
	  into itself and a method. Treat default LocalFileSettingsProvider
	  as a (valid) settings provider. Removed a fixme (only public
	  members should be available).
	* SettingsBase.cs : check lock state in Save().
	* SettingsProviderCollection.cs : remove bogus table field which
	  conflicts with the table in base ProviderCollection class.


svn path=/trunk/mcs/; revision=78240
2007-05-30 17:46:17 +00:00
Atsushi Eno 9274590c24 2007-05-30 Atsushi Enomoto <[email protected]>
* SettingsBase.cs : property values are filled only when each
	  property is accessed. It should not use virtual providers,
	  properties or context internally since they could be overriden.
	* SettingsPropertyValue.cs : to serialize value as string, use
	  TypeConverter as well (as deserialization).
	* SettingsProviderCollection.cs : (Add) null arg check.

	* SettingsBaseTest.cs : new test.
	* ApplicationSettingsBaseTest.cs : added Providers().

	* System_test.dll.sources : added SettingsBaseTest.cs.


svn path=/trunk/mcs/; revision=78181
2007-05-30 10:03:57 +00:00
Atsushi Eno 50f1611d6e 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingElementCollection.cs : fix build, cyclic build mess.


svn path=/trunk/mcs/; revision=78060
2007-05-28 14:25:13 +00:00
Atsushi Eno bd86f2a379 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingElement.cs : fix default value (null->"").
	* SettingElementCollection.cs : implemented all.

	* SettingElementTest.cs : new test.

	* System_test.dll.sources : added SettingElementTest.cs.


svn path=/trunk/mcs/; revision=78053
2007-05-28 12:55:15 +00:00
Atsushi Eno 32f699f7ec 2007-05-28 Atsushi Enomoto <[email protected]>
* SettingsProviderAttribute.cs :
	  Return assembly qualified name. Check null args.
	* ConfigXmlDocument.cs : it implements IConfigErrorInfo.

	* ApplicationSettingsBaseTest.cs : enable working test.


svn path=/trunk/mcs/; revision=78043
2007-05-28 10:31:33 +00:00
Konstantin Triger b9eec0eee9 TARGET_JVM: use RuntimeEnvironment.SystemConfigurationFile for GetMachineConfigPath
svn path=/trunk/mcs/; revision=76768
2007-05-06 07:45:00 +00:00
Konstantin Triger 916e6fa9fd logically move the *.config files under META-INF folder
svn path=/trunk/mcs/; revision=75768
2007-04-16 15:17:31 +00:00
Vladimir Krasnov 0ad9d70d19 * SettingsPropertyValue.cs: fixed binary deserealization that may be present as base64 string
svn path=/trunk/mcs/; revision=74389
2007-03-15 15:50:52 +00:00
Gert Driesen 863985be10 * ConfigurationSettings.cs: On 2.0 profile, use ConfigurationManager
to retrieve config section. Fixes bug #81020.

svn path=/trunk/mcs/; revision=73657
2007-03-03 14:20:58 +00:00
Miguel de Icaza 0f38908979 2007-01-22 Miguel de Icaza <[email protected]>
* SettingsBase.cs: Removed a NotImplementedException, it provides
	a default Save implementation. 

svn path=/trunk/mcs/; revision=71456
2007-01-22 20:11:06 +00:00
Vladimir Krasnov 0351fb9bb7 fixed IsDirty Property, added tests for IsDirty Property
svn path=/trunk/mcs/; revision=70991
2007-01-14 17:36:58 +00:00
Vladimir Krasnov 94ef49cd16 * SettingsPropertyValue.cs: fixed PropertyValue, default value of SettingsProperty should be desirialized or created
svn path=/trunk/mcs/; revision=70665
2007-01-08 17:07:52 +00:00
Konstantin Triger f77e72f8d4 TARGET_JVM an internal call
svn path=/trunk/mcs/; revision=70625
2007-01-08 07:46:09 +00:00
Miguel de Icaza 9b5517a743 2007-01-03 Tor Lillqvist <[email protected]>
Add the possibility to bundle also the machine.config file, from
	#80305.

	* mkbundle.cs: Add option --machine-config. Warn the user that a
	bundled machine.config file should be checked that it doesn't
	contain sensitive data like private machine keys.

	If that option was used, write the contents of the machine.config
	file to the asm output file, and write code to call
	mono_register_machine_config() with the data to the C output file.


svn path=/trunk/mcs/; revision=70489
2007-01-04 17:08:48 +00:00
Vladimir Krasnov 93c1274ba9 * SettingsPropertyValue.cs: fixed PropertyValue property, added default value convertation to property type
svn path=/trunk/mcs/; revision=70279
2006-12-31 12:46:45 +00:00
Vladimir Krasnov fec16bd9ab * SettingsBase.cs: implemented Item property
svn path=/trunk/mcs/; revision=69386
2006-12-12 08:46:32 +00:00
Sebastien Pouliot eb34b086f3 2006-11-09 Sebastien Pouliot <[email protected]>
* ApplicationSettingsBase.cs: Add special case when dealing with 
	StringCollection in the Properties property.


svn path=/trunk/mcs/; revision=67597
2006-11-09 14:58:20 +00:00
Andrew Skiba e27d3aa027 exclude using PrebuiltSystem on TARGET_JVM
svn path=/trunk/mcs/; revision=67456
2006-11-07 14:07:22 +00:00
Vladimir Krasnov a3eddc657e * SettingsPropertyValue.cs: fixed PropertyValue property when it should be deserialized
* SettingsPropertyValueTest.cs: added tests of value deserealization

svn path=/trunk/mcs/; revision=67369
2006-11-05 11:53:45 +00:00
Atsushi Eno bf94f0c958 2006-10-13 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs :
	  Handle <section> inside <section> as expected.
	  Fixed some ReadSections() consumers that it does _not_ consume
	  the surrounding EndElement. For now all issues I found are gone.


svn path=/trunk/mcs/; revision=66651
2006-10-13 16:28:04 +00:00
Atsushi Eno 3426fe7468 2006-10-13 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs : another MoveToNextElement() elimination.
	  When there is another section group after "system.drawing"
	  section in the existing machine.config, it borked as if there were
	  no "system.diagnostics" section.

	  It is still buggy; prepended sectionGroup still causes the above.


svn path=/trunk/mcs/; revision=66644
2006-10-13 15:13:38 +00:00
Atsushi Eno 49516ee2f9 2006-10-13 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs : when there is no content in
	  sectionGroup, all the following contents were incorrectly read
	  as the empty group's subsection.


svn path=/trunk/mcs/; revision=66642
2006-10-13 12:57:22 +00:00
Andrew Skiba acd3129597 add support for requirePermission attribute.
svn path=/trunk/mcs/; revision=66186
2006-10-03 13:07:28 +00:00
Andrew Skiba e01b518e64 TARGET_JVM
svn path=/trunk/mcs/; revision=66064
2006-09-28 15:36:08 +00:00
Marek Safar 66d65f603d Warnings.
svn path=/trunk/mcs/; revision=65994
2006-09-27 19:39:53 +00:00
Marek Safar f55d328a2f Warnings.
svn path=/trunk/mcs/; revision=65836
2006-09-23 18:43:01 +00:00
Konstantin Triger d020097e71 * ConfigurationSettings.cs: remove CONFIGURATION_2_0 #if since NET_2_0
implies it.

svn path=/trunk/mcs/; revision=64228
2006-08-23 08:02:03 +00:00
Sebastien Pouliot 2092fed915 2006-07-31 Sebastien Pouliot <[email protected]>
* ConfigurationSettings.cs: Assert FileIOPermission when loading a 
	configuration file.
	* ConfigXmlDocument.cs: Add an imperative demand for PathDiscovery on
	all (many classes) Filename properties. Ensure we're not using the
	property (but the member) inside the class itself.


svn path=/trunk/mcs/; revision=63180
2006-07-31 14:02:38 +00:00
Atsushi Eno fde86f617c 2006-06-29 Atsushi Enomoto <[email protected]>
* ApplicationSettingsBase.cs : When we use default value, convert it
	  to proper type. Fixed bug #78654. Patch by Gareth Pearce.

	* ApplicationSettingsBaseTest.cs : added test for bug #78654.


svn path=/trunk/mcs/; revision=62136
2006-06-29 05:06:20 +00:00
Gert Driesen 9f1846d6ae * ConfigurationException.cs: BareMessage, Filename and Line properties
are only virtual on 2.0 profile.
* ConfigurationSettings.cs: Marked GetConfig (string) obsolete on
2.0 profile.

svn path=/trunk/mcs/; revision=61256
2006-05-30 10:06:47 +00:00
Atsushi Eno 73e29a4fb9 2006-05-17 Atsushi Enomoto <[email protected]>
* SettingsPropertyCollection.cs : implemented some synchronization
	  releated members. Actually it can never be synchronized by itself.
	* SettingsBase.cs : Synchronized() just returns the same instance,
	  marking it as IsSynchronized = true. Fixed bug #78430.

	* LocalFileSettingsProviderTest.cs : commented some lines in
	  Initialized() as they don't work under .NET.
	* ApplicationSettingsBaseTest.cs : added Synchronized(), test for
	  bug #78430.

	* SwitchesTest.cs : Ignore NewSwitch under 2.0 as it fails under
	  .NET.


svn path=/trunk/mcs/; revision=60792
2006-05-17 17:20:02 +00:00
Atsushi Eno 9dd0ca727f 2006-05-12 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs : another System.Orgy insanity.


svn path=/trunk/mcs/; revision=60678
2006-05-13 17:56:04 +00:00
Atsushi Eno c1dd6bbdb0 2006-05-12 Atsushi Enomoto <[email protected]>
* ConfigurationSettings.cs : ok, now I correctly understand the
	  problem. Since appSettings section handlers are different between
	  1.x and 2.0 AppSettings property implementation should also be
	  different. It should really fix bug #78372.


svn path=/trunk/mcs/; revision=60654
2006-05-12 18:19:29 +00:00
Atsushi Eno 521c0ea909 2006-05-10 Atsushi Enomoto <[email protected]>
* Makefile : add -r:System.Configuration under net_2_0.

	* ConfigurationSettings.cs : use ConfigurationManager.GetConfig()
	  in its GetConfig(). No need to change AppSettings and
	  Default.GetConfig() behavior here.

	* t35.cs, t35.exe.config, t35.exe.expected :
	  new test, largely from bug #78337.

	* ConfigurationManagerTest.cs :
	  added GetSectionReturnsNativeObject().

	* ConfigurationElement.cs,
	  DefaultSection.cs :
	  in some cases RawXml was set null string, so skip such cases.
	* Configuration.cs : support IConfigurationSectionHandler here.
	* ConfigurationManager.cs : GetSection() now returns name value
	  collection, not a section.
	* ConfigurationSection.cs : added SectionHandler for
	  IConfigurationSectionHandler support, and use its Create() in
	  GetRuntimeObject().
	* ClientConfigurationSystem.cs :
	  use GetRuntimeObject() in GetSection(). Thus now
	  ConfigurationManager.GetSection() returns a runtime object.
	  Fixed bug #78337.



svn path=/trunk/mcs/; revision=60483
2006-05-10 03:39:56 +00:00