<div dir="ltr">Hi<div><br></div><div>I added now the <siteroot>/project-a/</siteroot></div><div><br></div><div>but...</div><div><div>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.</div><div>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.</div><div>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.</div></div><div>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.<br></div><div><br></div><div><br></div><div>and also other files in /sites/default/anyotherfolder are cleared.</div><div><br></div><div>so no change in the behaviour.</div><div><br></div><div>is this a but in CmsHistoryClearJob ?</div><div><br></div><div><br></div><div>thx</div><div>georg</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-24 20:39 GMT+01:00 Tobias Karrer <span dir="ltr"><<a href="mailto:kartobi@gmail.com" target="_blank">kartobi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Georg,<br>
<br>
you site root ist set to "/" :<br>
<siteroot>/</siteroot><br>
<br>
Choosing the desired folder when editing the ScheduleJob should
work.<br>
<br>
Greets,<br>
Tobias<br>
<br>
Am 24.01.2015 um 15:41 schrieb "Georg Aigner":<br>
</div>
<blockquote type="cite">
<pre><div><div class="h5">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</</div></div>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 visit
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>