Author: abock
Date: 2007-12-27 11:06:04 -0500 (Thu, 27 Dec 2007)
New Revision: 91948

Modified:
   trunk/Mono.Zeroconf/ChangeLog
   trunk/Mono.Zeroconf/Makefile.am
   
trunk/Mono.Zeroconf/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs
Log:
2007-12-27  Aaron Bockover  <[EMAIL PROTECTED]>

    * src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs: Move the
    executing assembly directory scan to after the scan for
    MONO_ZEROCONF_PROVIDERS; set the file scan mask to
    Mono.Zeroconf.Providers.*.dll instead of *.dll



Modified: trunk/Mono.Zeroconf/ChangeLog
===================================================================
--- trunk/Mono.Zeroconf/ChangeLog       2007-12-27 16:04:57 UTC (rev 91947)
+++ trunk/Mono.Zeroconf/ChangeLog       2007-12-27 16:06:04 UTC (rev 91948)
@@ -1,3 +1,10 @@
+2007-12-27  Aaron Bockover  <[EMAIL PROTECTED]>
+
+       * src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs: Move the
+       executing assembly directory scan to after the scan for 
+       MONO_ZEROCONF_PROVIDERS; set the file scan mask to 
+       Mono.Zeroconf.Providers.*.dll instead of *.dll
+
 2007-12-23  Aaron Bockover  <[EMAIL PROTECTED]>
 
        * Makefile.am: Added a dist-windows target to generate a zip file

Modified: trunk/Mono.Zeroconf/Makefile.am
===================================================================
--- trunk/Mono.Zeroconf/Makefile.am     2007-12-27 16:04:57 UTC (rev 91947)
+++ trunk/Mono.Zeroconf/Makefile.am     2007-12-27 16:06:04 UTC (rev 91948)
@@ -11,6 +11,10 @@
        install-sh \
        missing
 
+collect:
+       rm -rf bin; \
+       mkdir bin; \
+       find src \( -iname *.exe -o -iname *.dll \) -exec cp {} bin \;
 
 PKV=$(PACKAGE)-$(VERSION)
 

Modified: 
trunk/Mono.Zeroconf/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs
===================================================================
--- 
trunk/Mono.Zeroconf/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs
    2007-12-27 16:04:57 UTC (rev 91947)
+++ 
trunk/Mono.Zeroconf/src/Mono.Zeroconf/Mono.Zeroconf.Providers/ProviderFactory.cs
    2007-12-27 16:06:04 UTC (rev 91948)
@@ -63,9 +63,6 @@
             List<string> directories = new List<string>();
             Assembly asm = Assembly.GetExecutingAssembly();
             
-            string this_asm_path = asm.Location;
-            directories.Add(Path.GetDirectoryName(this_asm_path));
-            
             string env_path = 
Environment.GetEnvironmentVariable("MONO_ZEROCONF_PROVIDERS");
             if(!String.IsNullOrEmpty(env_path)) {
                 foreach(string path in env_path.Split(':')) {
@@ -75,6 +72,9 @@
                 }
             }
             
+            string this_asm_path = asm.Location;
+            directories.Add(Path.GetDirectoryName(this_asm_path));
+            
             if(Assembly.GetExecutingAssembly().GlobalAssemblyCache) {
                 string [] path_parts = 
directories[0].Split(Path.DirectorySeparatorChar);
                 string new_path = Path.DirectorySeparatorChar.ToString();
@@ -91,7 +91,7 @@
             }
             
             foreach(string directory in directories) {
-                foreach(string file in Directory.GetFiles(directory, "*.dll")) 
{
+                foreach(string file in Directory.GetFiles(directory, 
"Mono.Zeroconf.Providers.*.dll")) {
                     if(Path.GetFileName(file) != 
Path.GetFileName(this_asm_path)) {
                         Assembly provider_asm = Assembly.LoadFile(file);
                         foreach(Attribute attr in 
provider_asm.GetCustomAttributes(false)) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to