From 6b5713b80a24f19746ba423e0539c1dca0c6e2c0 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 25 Mar 2005 08:15:36 +0000 Subject: [PATCH] Mark prototype code updated when new resources are added --- src/helma/framework/core/Prototype.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Prototype.java b/src/helma/framework/core/Prototype.java index dd75753f..de84473a 100644 --- a/src/helma/framework/core/Prototype.java +++ b/src/helma/framework/core/Prototype.java @@ -131,7 +131,6 @@ public final class Prototype { * up-to-date and the lastCodeUpdate be set if there has been any changes. */ public void checkForUpdates() { - boolean updatedResources = false; // check if any resource the prototype knows about has changed or gone @@ -141,7 +140,9 @@ public final class Prototype { try { if (tracker.hasChanged()) { updatedResources = true; + // let tracker know we've seen the update tracker.markClean(); + // if resource has gone remove it if (!tracker.getResource().exists()) { i.remove(); String name = tracker.getResource().getName(); @@ -167,7 +168,7 @@ public final class Prototype { name.endsWith(TypeManager.scriptExtension) || name.endsWith(TypeManager.actionExtension) || name.endsWith(TypeManager.skinExtension)) { - + updatedResources = true; if (name.endsWith(TypeManager.skinExtension)) { addSkinResource(resources[i]); } else {