Hi there,
The issue NVELOCITY-ISSUE-35 was just created by Erez (emazor).
Key: NVELOCITY-ISSUE-35
Summary: default configuration is not being loaded
Type: Bug
Importance: High
Description:
Can't seem to access the mailing list/forum so I put this here
It seems the default configuration is not being loaded at all.
RuntimeInstance.cs line 355:
// Always lay down the default properties first as
// to provide a solid base.
if (configuration.IsInitialized() == false)
{
setDefaultProperties();
}
Calls to line 262:
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(string.Format("Cannot get NVelocity
Runtime default properties!\n{0}", ex.Message));
debugOutput.Flush();
}
}
The RunTimeConstants associated here:
public const String DEFAULT_RUNTIME_PROPERTIES =
"NVelocity.Runtime.Defaults.nvelocity.properties";
public const String DEFAULT_RUNTIME_DIRECTIVES =
"NVelocity.Runtime.Defaults.directive.properties";
shouldn't these change to
"NVelocity.Runtime.Defaults.nvelocity.properties, NVelocity";
"NVelocity.Runtime.Defaults.directive.properties, NVelocity";
in order for this to work. It seems VelocityEngine when instantiated doesn't
have the default laid out in nvelocity.properties and directive.properties when
executing the instantiation form within another assembly.
For more, see
http://support.castleproject.org/projects/NVELOCITY/issues/view/NVELOCITY-ISSUE-35
--
donjon
by Castle Stronghold
http://www.castle-donjon.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---