back-pedalled on some of the previous changes
because it also affects helma.framework.core.Prototype.
This commit is contained in:
parent
a0bfef94eb
commit
0472058607
1 changed files with 8 additions and 4 deletions
|
@ -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) {
|
if (file != null) {
|
||||||
FileReader fr = new FileReader (file);
|
try {
|
||||||
EvaluationSource es = new FileEvaluationSource (file.getPath (), null);
|
FileReader fr = new FileReader (file);
|
||||||
updateRequestEvaluator (reval, fr, es);
|
EvaluationSource es = new FileEvaluationSource (file.getPath (), null);
|
||||||
|
updateRequestEvaluator (reval, fr, es);
|
||||||
|
} catch (IOException iox) {
|
||||||
|
app.logEvent ("Error updating function file: "+iox);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
StringReader reader = new StringReader (content);
|
StringReader reader = new StringReader (content);
|
||||||
StringEvaluationSource es = new StringEvaluationSource (content, null);
|
StringEvaluationSource es = new StringEvaluationSource (content, null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue