Permalink
Browse files

Fix notify path creation

In 4540a2e the pollScript variable
changed from a String to a Resource.
When constructing the notify path we need a String, so use the
pollScriptPath variable instead.
  • Loading branch information...
1 parent 0528bc7 commit 382b34c461d66ea1f30f3b1e08251f60c49cd5ef @priteau priteau committed with timf Jun 11, 2010
@@ -209,10 +209,10 @@ public synchronized void validate() throws Exception {
throw new Exception(err + e.getMessage());
}
- this.notify = this.notificationInfo + this.pollScript;
+ this.notify = this.notificationInfo + pollScriptPath;
logger.debug("test run of notification script '" +
- this.pollScript + "' succeeded");
+ pollScriptPath + "' succeeded");
if (fake) {
@@ -231,7 +231,7 @@ public synchronized void validate() throws Exception {
this.persistence,
3000);
- final String eventsPath = this.pollScript + ".txt";
+ final String eventsPath = pollScriptPath + ".txt";
logger.debug("Setting events file to '" + eventsPath + "'");
this.watcher = new ControlPoll(this.timerManager,

0 comments on commit 382b34c

Please sign in to comment.