Author: ankit
Date: 2007-08-22 15:53:25 -0400 (Wed, 22 Aug 2007)
New Revision: 84652

Modified:
   trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
   trunk/monodevelop/Extras/CSharpBinding/ChangeLog
Log:
Fix bug #82533.
* CSharpBindingCompilerManager.cs (GetResourceId): Generate .resources
with resgen only if required.


Modified: trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs      
2007-08-22 19:04:52 UTC (rev 84651)
+++ trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs      
2007-08-22 19:53:25 UTC (rev 84652)
@@ -224,6 +224,12 @@
                        if (String.Compare (Path.GetExtension (fname), ".resx", 
true) != 0)
                                return null;
 
+                       //Check whether resgen required
+                       FileInfo finfo_resx = new FileInfo (fname);
+                       FileInfo finfo_resources = new FileInfo 
(Path.ChangeExtension (fname, ".resources"));
+                       if (finfo_resx.LastWriteTime < 
finfo_resources.LastWriteTime)
+                               return null;
+
                        using (StringWriter sw = new StringWriter ()) {
                                Console.WriteLine ("Compiling resources\n{0}$ 
{1} /compile {2}", Path.GetDirectoryName (fname), resgen, fname);
                                monitor.Log.WriteLine (GettextCatalog.GetString 
(

Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-08-22 19:04:52 UTC 
(rev 84651)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-08-22 19:53:25 UTC 
(rev 84652)
@@ -1,3 +1,9 @@
+2007-08-23  Ankit Jain  <[EMAIL PROTECTED]>
+
+       Fix bug #82533.
+       * CSharpBindingCompilerManager.cs (GetResourceId): Generate .resources
+       with resgen only if required.
+
 2007-08-21  Andrés G. Aragoneses  <[EMAIL PROTECTED]>
 
        Improve fix for bug #82398.

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

Reply via email to