You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2004/11/03 00:20:36 UTC
svn commit: rev 56438 - cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript
Author: reinhard
Date: Tue Nov 2 15:20:30 2004
New Revision: 56438
Modified:
cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
Log:
Because of switching to rhino-1.6 it doesn't compile any more - had to comment out two lines to make code compile again. Due to Torsten the compiling classloader doesn't work anyway
Modified: cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
==============================================================================
--- cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java (original)
+++ cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java Tue Nov 2 15:20:30 2004
@@ -104,7 +104,8 @@
cx.setErrorReporter(reporter);
cx.setGeneratingSource(true);
- cx.setTargetPackage("");
+ // doesn't compile with Rhino 1.6
+ // cx.setTargetPackage("");
//ClassNameHelper nameHelper = ClassNameHelper.get(cx);
String filename = ((String) sources.get(classname))+".js";
@@ -124,7 +125,9 @@
//String out = f.getParent() == null ? className : f.getParent() + File.separator + className;
String out = System.getProperty("java.io.tmpdir") + File.separator + className;
//nameHelper.setTargetClassFileName(out);*/
- cx.setTargetClassFileName(out);
+
+ // doesn't compile with Rhino 1.6
+ // cx.setTargetClassFileName(out);
System.out.println("out=" + out);
Re: svn commit: rev 56438 - cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript
Posted by Reinhard Poetz <re...@apache.org>.
Reinhard Poetz wrote:
> reinhard@apache.org wrote:
>
>> Author: reinhard
>> Date: Tue Nov 2 15:20:30 2004
>> New Revision: 56438
>>
>> Modified:
>>
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
>>
>> Log:
>> Because of switching to rhino-1.6 it doesn't compile any more - had to
>> comment out two lines to make code compile again. Due to Torsten the
>> compiling classloader doesn't work anyway
>>
>> Modified:
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
>>
>> ==============================================================================
>>
>> ---
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
>> (original)
>> +++
>> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
>> Tue Nov 2 15:20:30 2004
>> @@ -104,7 +104,8 @@
>> cx.setErrorReporter(reporter);
>> cx.setGeneratingSource(true);
>> - cx.setTargetPackage("");
>> + // doesn't compile with Rhino 1.6 + //
>> cx.setTargetPackage("");
>>
>> //ClassNameHelper nameHelper = ClassNameHelper.get(cx);
>> String filename = ((String) sources.get(classname))+".js";
>> @@ -124,7 +125,9 @@
>> //String out = f.getParent() == null ? className :
>> f.getParent() + File.separator + className;
>> String out = System.getProperty("java.io.tmpdir") +
>> File.separator + className;
>> //nameHelper.setTargetClassFileName(out);*/
>> - cx.setTargetClassFileName(out);
>> + + // doesn't compile with Rhino 1.6 + //
>> cx.setTargetClassFileName(out);
>>
>> System.out.println("out=" + out);
>>
>>
>
> Torsten,
>
> hope my comment is correct ...
>
forgot to mention that Javaflow doesn't work for me at the moment but I can't
imagine that this is due to my change:
FlowNode: Couldn't obtain a flow interpreter for 'java' at
file:/F:/os/cocoon/trunk/build/webapp/samples/blocks/javaflow/sitemap.xmap:33:28
(Key='java')
org.apache.avalon.framework.service.ServiceException: FlowNode: Couldn't obtain
a flow interpreter for 'java' at
file:/F:/os/cocoon/trunk/build/webapp/samples/blocks/javaflow/sitemap.xmap:33:28
(Key='java')
at
org.apache.cocoon.components.treeprocessor.sitemap.FlowNode.service(FlowNode.java:68)
at
org.apache.cocoon.components.LifecycleHelper.setupComponent(LifecycleHelper.java:152)
at
org.apache.cocoon.components.LifecycleHelper.setupComponent(LifecycleHelper.java:106)
at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.setupNode(DefaultTreeBuilder.java:369)
at
org.apache.cocoon.components.treeprocessor.sitemap.FlowNodeBuilder.buildNode(FlowNodeBuilder.java:38)
...
--
Reinhard
Re: svn commit: rev 56438 - cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript
Posted by Reinhard Poetz <re...@apache.org>.
reinhard@apache.org wrote:
> Author: reinhard
> Date: Tue Nov 2 15:20:30 2004
> New Revision: 56438
>
> Modified:
> cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
> Log:
> Because of switching to rhino-1.6 it doesn't compile any more - had to comment out two lines to make code compile again. Due to Torsten the compiling classloader doesn't work anyway
>
> Modified: cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java
> ==============================================================================
> --- cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java (original)
> +++ cocoon/trunk/src/blocks/javaflow/java/org/apache/cocoon/components/flow/javascript/JavaScriptCompilingClassLoader.java Tue Nov 2 15:20:30 2004
> @@ -104,7 +104,8 @@
> cx.setErrorReporter(reporter);
>
> cx.setGeneratingSource(true);
> - cx.setTargetPackage("");
> + // doesn't compile with Rhino 1.6
> + // cx.setTargetPackage("");
>
> //ClassNameHelper nameHelper = ClassNameHelper.get(cx);
> String filename = ((String) sources.get(classname))+".js";
> @@ -124,7 +125,9 @@
> //String out = f.getParent() == null ? className : f.getParent() + File.separator + className;
> String out = System.getProperty("java.io.tmpdir") + File.separator + className;
> //nameHelper.setTargetClassFileName(out);*/
> - cx.setTargetClassFileName(out);
> +
> + // doesn't compile with Rhino 1.6
> + // cx.setTargetClassFileName(out);
>
> System.out.println("out=" + out);
>
>
Torsten,
hope my comment is correct ...
--
Reinhard