From a58b4a084fc24c8df0c7ee4bd434c1f5c01b6b12 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 11 Oct 2007 10:05:53 +0000 Subject: [PATCH] * Allow type.properties to be named after their prototype (e.g. Root.properties). Implement feature request 553: http://helma.org/bugs/show_bug.cgi?id=533 --- src/helma/framework/core/Prototype.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helma/framework/core/Prototype.java b/src/helma/framework/core/Prototype.java index 6af44c9a..126db96b 100644 --- a/src/helma/framework/core/Prototype.java +++ b/src/helma/framework/core/Prototype.java @@ -89,6 +89,7 @@ public final class Prototype { props = new ResourceProperties(app); if (repository != null) { props.addResource(repository.getResource("type.properties")); + props.addResource(repository.getResource(name + ".properties")); } dbmap = new DbMapping(app, name, props); // we don't need to put the DbMapping into proto.updatables, because @@ -120,6 +121,7 @@ public final class Prototype { if (!repositories.contains(repository)) { repositories.add(repository); props.addResource(repository.getResource("type.properties")); + props.addResource(repository.getResource(name + ".properties")); if (update) { RequestEvaluator eval = app.getCurrentRequestEvaluator(); ScriptingEngine engine = eval == null ? null : eval.scriptingEngine;