* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Microsoft.Build.Tasks / Microsoft.Build.Tasks / GenerateResource.cs
index 5987cac9830e6a072f4024d9488de8a1c10a7e67..34b04c58cb276b1aad7969fd9195ed75a493bc05 100644 (file)
@@ -3,7 +3,8 @@
 //
 // Author:
 //   Marek Sieradzki (marek.sieradzki@gmail.com)
-// FIXME: code from monoresgen, add authors
+//   Paolo Molaro (lupus@ximian.com)
+//   Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
 // (C) 2005 Marek Sieradzki
 //
@@ -41,8 +42,9 @@ namespace Microsoft.Build.Tasks {
        public sealed class GenerateResource : TaskExtension {
        
                ITaskItem[]     filesWritten;
-               //bool          neverLockTypeAssemblies;
+               bool            neverLockTypeAssemblies;
                ITaskItem[]     outputResources;
+               bool            publicClass;
                ITaskItem[]     references;
                ITaskItem[]     sources;
                ITaskItem       stateFile;
@@ -83,9 +85,10 @@ namespace Microsoft.Build.Tasks {
                                                Log.LogErrorFromException (new Exception ("Filename of output can not be empty."));
                                                return false;
                                        }
-                                       if (CompileResourceFile (sourceFile, outputFile) == false)
+                                       if (CompileResourceFile (sourceFile, outputFile) == false) {
                                                Log.LogErrorFromException (new Exception ("Error during compiling resource file."));
                                                return false;
+                                       }
                                        temporaryFilesWritten.Add (outputEnum.Current);
                                }
                        }
@@ -172,19 +175,17 @@ namespace Microsoft.Build.Tasks {
                        get {
                                return filesWritten;
                        }
-                       set {
-                               filesWritten = value;
-                       }
                }
 
-               /*public bool NeverLockTypeAssemblies {
+               [MonoTODO]
+               public bool NeverLockTypeAssemblies {
                        get {
                                return neverLockTypeAssemblies;
                        }
                        set {
                                neverLockTypeAssemblies = value;
                        }
-               }*/
+               }
 
                [Output]
                public ITaskItem[] OutputResources {
@@ -195,6 +196,11 @@ namespace Microsoft.Build.Tasks {
                                outputResources = value;
                        }
                }
+               
+               public bool PublicClass {
+                       get { return publicClass; }
+                       set { publicClass = value; }
+               }
 
                public ITaskItem[] References {
                        get {
@@ -224,6 +230,7 @@ namespace Microsoft.Build.Tasks {
                        }
                }
 
+               [Output]
                public string StronglyTypedClassName {
                        get {
                                return stronglyTypedClassName;
@@ -233,7 +240,8 @@ namespace Microsoft.Build.Tasks {
                        }
                }
 
-               public string StronglyTypedFilename {
+               [Output]
+               public string StronglyTypedFileName {
                        get {
                                return stronglyTypedFilename;
                        }
@@ -271,4 +279,4 @@ namespace Microsoft.Build.Tasks {
        }
 }
 
-#endif
\ No newline at end of file
+#endif