Author: lluis
Date: 2007-12-02 20:06:51 -0500 (Sun, 02 Dec 2007)
New Revision: 90536
Modified:
trunk/mono-addins/Mono.Addins/ChangeLog
trunk/mono-addins/Mono.Addins/Mono.Addins.Database/SetupProcess.cs
trunk/mono-addins/Mono.Addins/Mono.Addins/AddinRegistry.cs
trunk/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs
Log:
* Mono.Addins/TypeExtensionNode.cs: Made the description of
TypeExtensionNode shorter.
* Mono.Addins/AddinRegistry.cs: Made the add-in registry constructor
public.
* Mono.Addins.Database/SetupProcess.cs: Fix problem when M.A. is
located in a folder with spaces in the name. Fix by Georg W?\195?\164chter.
Modified: trunk/mono-addins/Mono.Addins/ChangeLog
===================================================================
--- trunk/mono-addins/Mono.Addins/ChangeLog 2007-12-03 00:54:51 UTC (rev
90535)
+++ trunk/mono-addins/Mono.Addins/ChangeLog 2007-12-03 01:06:51 UTC (rev
90536)
@@ -1,3 +1,11 @@
+2007-12-03 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * Mono.Addins/TypeExtensionNode.cs: Made the description of
+ TypeExtensionNode shorter.
+ * Mono.Addins/AddinRegistry.cs: Made the add-in registry constructor
public.
+ * Mono.Addins.Database/SetupProcess.cs: Fix problem when M.A. is
located in
+ a folder with spaces in the name. Fix by Georg Wächter.
+
2007-11-19 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* Mono.Addins.Database/AddinDatabase.cs: Workaround for mcs bug.
Modified: trunk/mono-addins/Mono.Addins/Mono.Addins/AddinRegistry.cs
===================================================================
--- trunk/mono-addins/Mono.Addins/Mono.Addins/AddinRegistry.cs 2007-12-03
00:54:51 UTC (rev 90535)
+++ trunk/mono-addins/Mono.Addins/Mono.Addins/AddinRegistry.cs 2007-12-03
01:06:51 UTC (rev 90536)
@@ -49,7 +49,7 @@
{
}
- internal AddinRegistry (string registryPath, string
startupDirectory)
+ public AddinRegistry (string registryPath, string
startupDirectory)
{
basePath = Util.GetFullPath (registryPath);
database = new AddinDatabase (this);
@@ -275,5 +275,31 @@
}
return true;
}
+
+ internal static string[] GetRegisteredStartupFolders (string
registryPath)
+ {
+ string dbDir = Path.Combine (registryPath, "addin-db-"
+ AddinDatabase.VersionTag);
+ dbDir = Path.Combine (dbDir, "hosts");
+
+ if (!Directory.Exists (dbDir))
+ return new string [0];
+
+ ArrayList dirs = new ArrayList ();
+
+ foreach (string s in Directory.GetFiles (dbDir,
"*.addins")) {
+ try {
+ using (StreamReader sr = new
StreamReader (s)) {
+ XmlTextReader tr = new
XmlTextReader (sr);
+ tr.MoveToContent ();
+ string host = tr.GetAttribute
("host-reference");
+ dirs.Add (Path.GetDirectoryName
(host));
+ }
+ }
+ catch {
+ // Ignore this file
+ }
+ }
+ return (string[]) dirs.ToArray (typeof(string));
+ }
}
}
Modified: trunk/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs
===================================================================
--- trunk/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs
2007-12-03 00:54:51 UTC (rev 90535)
+++ trunk/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs
2007-12-03 01:06:51 UTC (rev 90536)
@@ -32,8 +32,8 @@
namespace Mono.Addins
{
- [ExtensionNode ("Type", Description="Specifies a class that will be
used to create an extension object. The name of the class can be provided in
the 'class' attribute. If 'class' is not provided, the name will be taken from
the 'id' attribute")]
- [NodeAttribute ("class", typeof(Type), false, Description="Name of the
class")]
+ [ExtensionNode ("Type", Description="Specifies a class that will be
used to create an extension object.")]
+ [NodeAttribute ("class", typeof(Type), false, Description="Name of the
class. If a value is not provided, the class name will be taken from the 'id'
attribute")]
public class TypeExtensionNode: InstanceExtensionNode
{
string typeName;
Modified: trunk/mono-addins/Mono.Addins/Mono.Addins.Database/SetupProcess.cs
===================================================================
--- trunk/mono-addins/Mono.Addins/Mono.Addins.Database/SetupProcess.cs
2007-12-03 00:54:51 UTC (rev 90535)
+++ trunk/mono-addins/Mono.Addins/Mono.Addins.Database/SetupProcess.cs
2007-12-03 01:06:51 UTC (rev 90536)
@@ -52,8 +52,10 @@
Process process = new Process ();
if (Util.IsWindows)
process.StartInfo = new ProcessStartInfo (asm,
sb.ToString ());
- else
+ else {
+ asm = asm.Replace(" ", @"\ ");
process.StartInfo = new ProcessStartInfo
("mono", "--debug " + asm + " " + sb.ToString ());
+ }
process.StartInfo.WorkingDirectory =
AppDomain.CurrentDomain.BaseDirectory;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardInput = true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches