[opencms-dev] A Sample Publishing Job

Jeremy Torres jtorres5 at comcast.net
Fri Dec 3 21:33:50 CET 2004


All,

To give back, I've attached a simple publishing job for OpenCms 6.  
Thanks to Joachim Arrasz for his guidance via this mailing list.

1) Attached is the Java source for the simple publishing job;
2) The following XML needs to be added to the "scheduler" element in the 
$OpenCmsHome/config/opencms-system.xml

        <scheduler>
        <job>
             <name>Offline Publish Job</name>
             <class>some.package.PublishJob</class>
              <!--NOTE: change the time accordingly -->
             <cronexpression>* 1 * * * ?</cronexpression>
             <context>
                 <user>Admin</user>
                 <project>Offline</project>
             </context>
            </job>

Regards,
Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PublishJob.java
Type: text/java
Size: 732 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041203/64c79f25/attachment.bin>


More information about the opencms-dev mailing list