NVelocity.Runtime.RuntimeInstance.setDefaultProperties C# (CSharp) Méthode

setDefaultProperties() private méthode

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
Résultat 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();
			}
		}