Commit Graph
72 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Miguel de Icaza f47e5fe6a6 2010-03-20 Miguel de Icaza <[email protected]>
* Eliminate warnings in a bunch of places.

svn path=/trunk/mcs/; revision=153952
2010-03-20 23:09:06 +00:00
Miguel de Icaza 5eedfa140d Remove warnings
svn path=/trunk/mcs/; revision=86643
2007-09-29 19:10:37 +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
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
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
Andrew Skiba e27d3aa027 exclude using PrebuiltSystem on TARGET_JVM
svn path=/trunk/mcs/; revision=67456
2006-11-07 14:07:22 +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
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 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
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeNamespaceImportCollection.cs: It turns out that a lot of the
	errors flagged with "!" were just missing explicit interface
	implementations.  

	Implement.

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeDomConfigurationHandler.cs: Comment out unused methods. 

	* TempFileCollection.cs: Implement explicitly some interface
	methods to get rid of the "!" errors on CorCompare.

2006-03-11  Miguel de Icaza  <[email protected]>

	* Queue.cs: Flag as serializable.

	* LinkedList.cs (OnDeserialization): Fix signature. 

	* SortedList.cs: Implement explicitly a few methods that were
	flagged by corcompare. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
	avoid warning.

2006-03-11  Miguel de Icaza  <[email protected]>

	* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
	internal to avoid warnings.  This routine is called from
	System.Web with MethodInfo.Invoke.

2006-03-11  Miguel de Icaza  <[email protected]>

	* DeflateStream.cs: Comment out DllImport that was not being
	used. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* y

	* SerialPort.cs: Remove unused variable (writeBuffer). 

	* SerialPortStream.cs (Dispose): override, not new.

2006-03-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: Only expose the right methods to avoid warnings. 

	* FtpDataStream.cs (Dispose): Fix signature.

	* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
	like we are missing features here).

	* IPAddress.cs: Move m_HashCode property to the end, and set
	pragmas to disable warnings.

2006-03-11  Miguel de Icaza  <[email protected]>

	* MailAddress.cs: Comment out unused field to remove warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkChange.cs: Use pragmas to eliminate warnings from events
	that we do not trigger yet.

	This is a candidate for using Aaron's NetworkManager code.  But
	would make us depend on d-bus.

	* NetworkInformationException.cs: Use error_code for ErrorCode,
	instead of NativeErrorCode.   Fixes warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
	need to do this everywhere one day).

	(Close): actually obey the "leaveInnerStreamOpen" setting from the
	constructor. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkStream.cs (Dispose): Use the right signature depending on
	the profile being built.

2006-03-11  Miguel de Icaza  <[email protected]>

	* X509Chain.cs: Flagged member as internal to avoid unused warning.

	* X500DistinguishedName.cs: Comment out unused names and move
	temporary unused variables inside the comments that were removed 



svn path=/trunk/mcs/; revision=57836
2006-03-11 19:07:56 +00:00
Chris Toshok 758c042cec 2006-01-16 Chris Toshok <[email protected]>
* ConfigurationSettings.cs (AppSettings): move back to a 1.x
	strategy in the 2.0 case.  That is, don't hardcode the reference
	to ConfigurationManager.AppSettings (yet).  Eventually we can move
	back to this code, once ConfigurationManager supports reading
	web.config for settings.


svn path=/trunk/mcs/; revision=55649
2006-01-16 20:05:59 +00:00
Chris Toshok b1b6eeb1fa 2006-01-03 Chris Toshok <[email protected]>
* ConfigurationSettings.cs (GetConfig): be nice to people using
	old 1.x style section handlers with the new 2.0 config stuff.  If
	we're about to return null or IgnoreSection, try to load it using
	the 1.x api.  If that works, return that object.


svn path=/trunk/mcs/; revision=55026
2006-01-03 22:03:04 +00:00
Chris Toshok ce93f97142 2006-01-02 Chris Toshok <[email protected]>
* LocalFileSettingsProvider.cs: use the PrebuiltSystem extern
	alias to make sure we use the right type for NameValueCollection.
	(Initialize): enable (under the CONFIGURATION_2_0 ifdef).

	* ConfigurationSettings.cs: use the PrebuiltSystem extern alias to
	make sure we use the right type for NameValueCollection.
	(AppSettings): provide an implementation for the NET_2_0 &&
	CONFIGURATION_2_0 case.
	(GetConfig): same.
	(ReadSectionGroup): allow a type attribute in the NET_2_0 &&
	CONFIGURATION_2_0 case.

	* AppSettingsReader.cs: use the PrebuiltSystem extern alias to
	make sure we use the right type for NameValueCollection.


svn path=/trunk/mcs/; revision=54980
2006-01-02 20:34:57 +00:00
Chris Toshok 97fbbe70e4 nuke spew
svn path=/trunk/mcs/; revision=52832
2005-11-10 06:04:17 +00:00
Chris Toshok a0f1d623e4 2005-11-09 Chris Toshok <[email protected]>
* ConfigurationSettings.cs (AppSettings): remove the #if NET_2_0
	block breaks this.
	(ReadSectionGroup): allow the "type" atrribute so we don't break
	when reading a 2.0 config file using the 1.0 stuff.


svn path=/trunk/mcs/; revision=52797
2005-11-09 21:03:18 +00:00
Chris Toshok f442c04839 2005-11-03 Chris Toshok <[email protected]>
* ConfigurationSettings.cs: add ObsoleteAttribute's.

	* ConfigurationException.cs: add ObsoleteAttribute's.

	* IConfigurationSystem.cs: add ComVisibleAttribute.

	* ApplicationSettingsBase.cs: new stubs, with a broken/naive
	implementation.

	* SettingElementCollection.cs, IPersistComponentSettings.cs,
	SettingElement.cs, LocalFileSettingsProvider.cs,
	SettingValueElement.cs: new stubs.

	* SettingAttribute.cs: fix typo.


svn path=/trunk/mcs/; revision=52553
2005-11-04 05:07:44 +00:00
Raja R Harinath b58c3a1ee9 In System.Configuration:
* ConfigurationSettings.cs (ConnectionStrings): Change XML_DEP
	guard to CONFIGURATION_DEP.

In System.Net.Configuration:
	* HttpCachePolicyElement.cs: Add CONFIGURATION_DEP guard.
	* AuthenticationModuleElementCollection.cs: Replace XML_DEP guard
	with CONFIGURATION_DEP.
	* AuthenticationModuleElement.cs: Likewise.
	* AuthenticationModulesSection.cs: Likewise.
	* BypassElementCollection.cs: Likewise.
	* BypassElement.cs: Likewise.
	* ConnectionManagementElementCollection.cs: Likewise.
	* ConnectionManagementElement.cs: Likewise.
	* ConnectionManagementSection.cs: Likewise.
	* DefaultProxySection.cs: Likewise.
	* HttpWebRequestElement.cs: Likewise.
	* Ipv6Element.cs: Likewise.
	* MailSettingsSection.cs: Likewise.
	* ModuleElement.cs: Likewise.
	* NetSectionGroup.cs: Likewise.
	* ProxyElement.cs: Likewise.
	* RequestCachingSection.cs: Likewise.
	* ServicePointManagerElement.cs: Likewise.
	* SettingsSection.cs: Likewise.
	* SmtpElement.cs: Likewise.
	* SocketElement.cs: Likewise.
	* UriParserElementCollection.cs: Likewise.
	* UriParserElement.cs: Likewise.
	* UriParserSection.cs: Likewise.
	* WebRequestModuleElementCollection.cs: Likewise.
	* WebRequestModuleElement.cs: Likewise.
	* WebRequestModulesSection.cs: Likewise.

svn path=/trunk/mcs/; revision=46935
2005-07-05 10:51:51 +00:00
Ben Maurer dd19011aa6 locking fixes
svn path=/trunk/mcs/; revision=45088
2005-05-26 23:18:18 +00:00
Sureshkumar T 8cd71d6795 added XML_DEP for ConnectionStrings property.
svn path=/trunk/mcs/; revision=41362
2005-03-02 15:47:08 +00:00
Sureshkumar T b437ff2772 2005-03-02 Sureshkumar T <[email protected]>
* ConfigurationSettings.cs: Implemented ConnectionStrings
	property.


svn path=/trunk/mcs/; revision=41359
2005-03-02 14:39:48 +00:00
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 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 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