mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-21 15:01:46 +00:00
HER-1984 save script state - implement by adding a map to the application context for arbitrary use, and make sure the app context is available in all scripting environments
* PathSharingContext.java
new member variable ConcurrentHashMap data and accessor getData()
* ScriptedProcessor.java, ScriptedDecideRule.java
make appCtx available to scripts; also remove unused member sharedMap
* ActionDirectory.java
formatting fix
This commit is contained in:
@@ -312,7 +312,7 @@ public class ActionDirectory implements ApplicationContextAware, Lifecycle, Runn
|
||||
PrintWriter rawOut = new PrintWriter(rawString);
|
||||
Exception ex = null;
|
||||
engine.put("rawOut", rawOut);
|
||||
engine.put("appCtx",appCtx);
|
||||
engine.put("appCtx", appCtx);
|
||||
|
||||
// evaluate and record any exception
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user