You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Gabriel Gruber <Ga...@workflow.at> on 2008/06/26 08:07:57 UTC

How to enable the Flowscript Debugger in C2.2 OR how to set properites on avalon components in C2.2?

Hi All,

... as I didn't get any answer from the user list, I try it again on the 
developers list:
just a simple question: how can I enable the flowscript debugger in Cocoon 
2.2? 

I built a simple cocoon block using the maven archetype. Flowscript is in 
the dependency list inside the pom.xml 
How can I now enable the flowscript debugger? 

I talked to Rainhard already and he suggested to "springify" the 
flowscript block in order to have configuration properties again. However 
I am a bit surprised as there should be some kind of configuration option 
for "oldstyle" avalon components, which are living inside a standard block 
of cocoon 2.2

In cocoon 2.1x I used to patch my cocoon.xconf to get the desired 
behavior, but in C2.2 I shouldn't touch those files anylonger. (I just 
reference the flowscript block as dependency) How can I not enable the 
flowscript debugger? (without having to modify the original block)

what I tried (without success):
- copying the cocoon-flowscript.xonf to my own avalong configuration files
- I tried properties like "javascript.debugger=enabled" with the 
Cocoon/spring configuration API (but I doubt that properties of avalon 
components can be set that way)

Excerpt from 
/cocoon/trunk/blocks/cocoon-flowscript/cocoon-flowscript-impl/src/main/resources/META-INF/cocoon/avalon/cocoon-flowscript.xconf


<?xml version="1.0" encoding="UTF-8"?>
<!-- SVN $Id$ -->
<components>
  <flow-interpreters default="javascript">
    <component-instance name="javascript"
                        logger="flow"
                        exported="false" 
class="org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter">
 
<load-on-startup>resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js</load-on-startup>
      <!--
        <reload-scripts>true</reload-scripts>
        <check-time>4000</check-time>
        -->
      <!-- JavaScript Debugger support --> 
      <!-- <debugger>enabled</debugger> --> 
    </component-instance>
  </flow-interpreters>
 
</components>

Any Suggestions? Or am I missing something?, 

Gabriel 
______________________
Mag. Gabriel Gruber
Senior Consultant
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Workflow EDV GmbH, Dannebergplatz 6/23, A-1030 Wien