[opencms-dev] scheduler job

Georg Aigner aigner.georg.79 at gmail.com
Sun Jan 25 09:43:26 CET 2015


Hi

I added now the <siteroot>/project-a/</siteroot>

but...
25 Jän 2015 09:30:21,863  INFO [rg.opencms.report.CmsLogReport: 113] ( 1 /
5361 )  /sites/default/project-a/files/anyFile.gif ... 1 versions
deleted... o.k.
25 Jän 2015 09:30:21,979  INFO [rg.opencms.report.CmsLogReport: 113] ( 2 /
5361 )  /system/workplace/commons/report-locks.jsp ... 1 versions
deleted... o.k.
25 Jän 2015 09:30:22,078  INFO [rg.opencms.report.CmsLogReport: 113] ( 3 /
5361 )
 /system/workplace/locales/es/messages/org/opencms/workplace/editors/fckeditor/messages_es.properties
... 1 versions deleted... o.k.
25 Jän 2015 09:38:03,037  INFO [rg.opencms.report.CmsLogReport: 113] ( 900
/ 5361 )  /sites/default/en/demo/ ... 0 versions deleted... o.k.


and also other files in /sites/default/anyotherfolder are cleared.

so no change in the behaviour.

is this a but in CmsHistoryClearJob ?


thx
georg


2015-01-24 20:39 GMT+01:00 Tobias Karrer <kartobi at gmail.com>:

>  Hi Georg,
>
> you site root ist set to "/" :
> <siteroot>/</siteroot>
>
> Choosing the desired folder when editing the ScheduleJob should work.
>
> Greets,
> Tobias
>
> Am 24.01.2015 um 15:41 schrieb "Georg Aigner":
>
> Hi all
>
> I am new to openCMS (9.5.0) an i have to clear the CRM History via a job or
> via jsp trigger.
> So i created the CmsHistoryClearJob.
>
> The job is doing as expected the cleanup, but he is starting from root and
> clears all.
>
>        <job>
>                 <name>MyJob</name>
>                 <class>org.opencms.scheduler.jobs.CmsHistoryClearJob</class>
>                 <reuseinstance>false</reuseinstance>
>                 <active>true</active>
>                 <cronexpression><![CDATA[0 0 3 * * ?]]></cronexpression>
>                 <context>
>                     <user>Admin</user>
>                     <project>projectA</project>
>                     <siteroot>/</siteroot>
>                     <requesteduri>/project-a/</requesteduri>
>                     <locale>en</locale>
>                     <encoding>UTF-8</encoding>
>                     <remoteaddr>127.0.0.1</remoteaddr>
>                 </context>
>                 <parameters>
>                     <param name="clearDeleted">true</
> param>
>                     <param name="keepTimeRange">0</param>
>                     <param name="keepVersions">0</param>
>                 </parameters>
>             </job>
>
> But i only like to clean the history below the project "projectA" which is
> mapped to a folder at /sites/default/project-a
>
> but the settings in the job are ignored or i do not understand the correct
> usage of them.
>
> So is it possible to clean the history starting from a provided folder or
> project?
>
> thx
> georg
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visithttp://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150125/937deb7c/attachment.htm>


More information about the opencms-dev mailing list