ovidiu 02/03/17 14:12:44
Modified: src/scratchpad/schecoon ChangeLog
Log:
2002-03-17 Ovidiu Predescu <[EMAIL PROTECTED]>
* src/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java:
Register the loaded script file with the interpreter, instead of
calling readScript. The interpreter will delay loading the file
until a request which calls a function is made. This will properly
load files from the Web application.
* webapp/WEB-INF/logkit.xconf: Added separate logger for the flow
component.
* webapp/sitemap.xmap: Don't use a slash in front of the filename.
* webapp/example2.js: Simple test file loaded from another
JavaScript file.
* webapp/example.js: Simple test of various Cocoon objects
exported in JavaScript.
* src/org/apache/cocoon/flow/Translator.java: Simple translator.
* src/org/apache/cocoon/components/flow/flow.xconf: Added comment
on what are the possible options. Added options for enabling the
reloading of scripts, and define logger.
* src/org/apache/cocoon/components/flow/JavaScriptInterpreter.java:
Make available on the JavaScript top level the log and the Cocoon
objects. Define print on the top level. Refactored JavaScript
scope creation and destruction in separate methods, to be used by
both callFunction and readScript.
* src/org/apache/cocoon/components/flow/InterpreterSelector.java:
Maintain the logger separate from the Cocoon sitemap
one. Initialize the created interpreters with the values obtained
from the Configuration object.
* src/org/apache/cocoon/components/flow/Interpreter.java: Modified
the readScript method to take the Environment as argument instead
of an InputStream.
* prj.el: Updated.
* build.xml: Rename "package" target to "jar".
* src/org/apache/cocoon/components/flow/javascript/JSLog.java:
JavaScript interface with the Cocoon log system.
* src/org/apache/cocoon/components/flow/javascript/JSGlobal.java:
Some top level JavaScript definitions.
* src/org/apache/cocoon/components/flow/javascript/JSCocoon.java:
JavaScript representation of Cocoon abstractions.
* src/org/apache/cocoon/components/flow/ScriptSource.java:
Representation of script source. Maintains the timestamp of the
last modification, together with the Source object, but caches
access to the timestamp for efficiency.
* src/org/apache/cocoon/components/flow/AbstractInterpreter.java:
Super class for flow language interpreters. Deals mainly with
observing modifications to script files used, and reloads them in
the interpreter if they modify.
Revision Changes Path
1.22 +63 -0 xml-cocoon2/src/scratchpad/schecoon/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/ChangeLog,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- ChangeLog 15 Mar 2002 23:42:30 -0000 1.21
+++ ChangeLog 17 Mar 2002 22:12:44 -0000 1.22
@@ -1,3 +1,66 @@
+2002-03-17 Ovidiu Predescu <[EMAIL PROTECTED]>
+
+ * src/org/apache/cocoon/components/treeprocessor/sitemap/ScriptNode.java:
+ Register the loaded script file with the interpreter, instead of
+ calling readScript. The interpreter will delay loading the file
+ until a request which calls a function is made. This will properly
+ load files from the Web application.
+
+ * webapp/WEB-INF/logkit.xconf: Added separate logger for the flow
+ component.
+
+ * webapp/sitemap.xmap: Don't use a slash in front of the filename.
+
+ * webapp/example2.js: Simple test file loaded from another
+ JavaScript file.
+
+ * webapp/example.js: Simple test of various Cocoon objects
+ exported in JavaScript.
+
+ * src/org/apache/cocoon/flow/Translator.java: Simple translator.
+
+ * src/org/apache/cocoon/components/flow/flow.xconf: Added comment
+ on what are the possible options. Added options for enabling the
+ reloading of scripts, and define logger.
+
+ * src/org/apache/cocoon/components/flow/JavaScriptInterpreter.java:
+ Make available on the JavaScript top level the log and the Cocoon
+ objects. Define print on the top level. Refactored JavaScript
+ scope creation and destruction in separate methods, to be used by
+ both callFunction and readScript.
+
+ * src/org/apache/cocoon/components/flow/InterpreterSelector.java:
+ Maintain the logger separate from the Cocoon sitemap
+ one. Initialize the created interpreters with the values obtained
+ from the Configuration object.
+
+ * src/org/apache/cocoon/components/flow/Interpreter.java: Modified
+ the readScript method to take the Environment as argument instead
+ of an InputStream.
+
+ * prj.el: Updated.
+
+ * build.xml: Rename "package" target to "jar".
+
+ * src/org/apache/cocoon/components/flow/javascript/JSLog.java:
+ JavaScript interface with the Cocoon log system.
+
+ * src/org/apache/cocoon/components/flow/javascript/JSGlobal.java:
+ Some top level JavaScript definitions.
+
+ * src/org/apache/cocoon/components/flow/javascript/JSCocoon.java:
+ JavaScript representation of Cocoon abstractions.
+
+ * src/org/apache/cocoon/components/flow/ScriptSource.java:
+ Representation of script source. Maintains the timestamp of the
+ last modification, together with the Source object, but caches
+ access to the timestamp for efficiency.
+
+ * src/org/apache/cocoon/components/flow/AbstractInterpreter.java:
+ Super class for flow language interpreters. Deals mainly with
+ observing modifications to script files used, and reloads them in
+ the interpreter if they modify.
+
2002-03-15 Ovidiu Predescu <[EMAIL PROTECTED]>
* webapp/sitemap.xmap: Use a JavaScript example.
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]