back-pedalled on some of the previous changes

because it also affects helma.framework.core.Prototype.
This commit is contained in:
hns 2001-09-10 14:15:29 +00:00
parent a0bfef94eb
commit 0472058607

View file

@ -105,11 +105,15 @@ public class FunctionFile implements Updatable {
}
public synchronized void updateRequestEvaluator (RequestEvaluator reval) throws IOException {
public synchronized void updateRequestEvaluator (RequestEvaluator reval) {
if (file != null) {
try {
FileReader fr = new FileReader (file);
EvaluationSource es = new FileEvaluationSource (file.getPath (), null);
updateRequestEvaluator (reval, fr, es);
} catch (IOException iox) {
app.logEvent ("Error updating function file: "+iox);
}
} else {
StringReader reader = new StringReader (content);
StringEvaluationSource es = new StringEvaluationSource (content, null);