NVelocity.Runtime.RuntimeInstance.setDefaultProperties C# (CSharp) Method

setDefaultProperties() private method

Initializes the Velocity Runtime with properties file. The properties file may be in the file system proper, or the properties file may be in the classpath.
private setDefaultProperties ( ) : void
return void
		private void setDefaultProperties()
		{
			try
			{
				// TODO: this was modified in v1.4 to use the classloader
				configuration.Load(
					Assembly.GetExecutingAssembly().GetManifestResourceStream(RuntimeConstants.DEFAULT_RUNTIME_PROPERTIES));
			}
			catch(System.Exception ex)
			{
				debugOutput.WriteLine("Cannot get NVelocity Runtime default properties!\n" + ex.Message);
				debugOutput.Flush();
			}
		}