You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Cristiano Fugazza <ca...@kount0.com> on 2004/07/06 14:42:00 UTC

path to a StaticHTMLExporter task

Hello,

    I'm trying to use the StaticHTMLExporter to produce a whole site in 
batch mode. I created the task, action and match elements in tasks.xconf 
and sitemap.xmap as follows. Here's the dummy question... what URL 
should I load in the browser to trigger the task?

<task id="export" 
class="org.apache.lenya.cms.publishing.StaticHTMLExporter">
    <parameter name="server-uri" 
value="http://10.10.1.190:8888/default/authoring/"/>
    <parameter name="export-path" value="work/export/pending"/>
    <parameter name="substitute-regexp" value="/lenya/default/authoring/"/>
    <parameter name="substitute-replacement" value="/"/>
    <parameter name="my-server-port" value="8888"/>
</task>

<map:action name="exporter" 
src="org.apache.lenya.cms.cocoon.acting.TaskAction">
    <task id="export"/>
</map:action>

<map:match pattern="export*">
    <map:act type="exporter">
        <map:redirect-to uri="{parent_uri}" session="true"/>
    </map:act>
    <map:redirect-to uri="publishScreen?status=failed" session="true"/>
 </map:match>

Thanx in advance,

Cristiano


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org