Execute() public method

public Execute ( ) : bool
return bool
        private bool CompileResourceFile(string sname, string dname)
        {
            if (!File.Exists(sname))
            {
                Log.LogError("Resource file '{0}' not found.", sname);
                return(false);
            }

            if (File.GetLastWriteTime(sname) <= File.GetLastWriteTime(dname))
            {
                Log.LogMessage(MessageImportance.Low,
                               "Resource file '{0}' is newer than the source file '{1}', skipping.",
                               dname, sname);
                return(true);
            }

            Resgen resgen = new Resgen();

            resgen.BuildEngine   = this.BuildEngine;
            resgen.UseSourcePath = true;

            resgen.SourceFile = sname;
            resgen.OutputFile = dname;

            return(resgen.Execute());
        }
Esempio n. 2
0
        private bool CompileResourceFile(string sname, string dname)
        {
            if (!File.Exists(sname))
            {
                Log.LogError("Resource file '{0}' not found.", sname);
                return(false);
            }

            Resgen resgen = new Resgen();

            resgen.BuildEngine   = this.BuildEngine;
            resgen.UseSourcePath = true;

            resgen.SourceFile = sname;
            resgen.OutputFile = dname;

            return(resgen.Execute());
        }
Esempio n. 3
0
		private bool CompileResourceFile (string sname, string dname )
		{
			if (!File.Exists (sname)) {
				Log.LogError ("Resource file '{0}' not found.", sname);
				return false;
			}

			if (File.GetLastWriteTime (sname) <= File.GetLastWriteTime (dname)) {
				Log.LogMessage (MessageImportance.Low,
						"Resource file '{0}' is newer than the source file '{1}', skipping.",
						dname, sname);
				return true;
			}

			Resgen resgen = new Resgen ();
			resgen.BuildEngine = this.BuildEngine;
			resgen.UseSourcePath = true;

			resgen.SourceFile = sname;
			resgen.OutputFile = dname;

			return resgen.Execute ();
		}
Esempio n. 4
0
		private bool CompileResourceFile (string sname, string dname )
		{
			if (!File.Exists (sname)) {
				Log.LogError ("Resource file '{0}' not found.", sname);
				return false;
			}

			Resgen resgen = new Resgen ();
			resgen.BuildEngine = this.BuildEngine;
			resgen.UseSourcePath = true;

			resgen.SourceFile = sname;
			resgen.OutputFile = dname;

			return resgen.Execute ();
		}