[opencms-dev] set last modified of a file

Olli Aro olli_aro at yahoo.co.uk
Wed Apr 28 09:47:01 CEST 2004


How about: -

 

com.opencms.file.CmsObject oFile = cmsa.getCmsObject(); // cmsa is the
JspActionElement instance.
oFile.touch( "/dir/dir/file.html", System.currentTimeMillis() ,false); 
oFile.unlockResource( "/dir/dir/file.html");

oFile.publishResource( "/dir/dir/file.html");

 

Olli

 

   _____  

From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Arno Illmann, e-Commerce Team SO
Sent: 28 April 2004 07:35
To: 'opencms-dev at opencms.org'
Subject: AW: [opencms-dev] set last modified of a file

 

Hi Olli 

Had this too... getting the object from the JspActionElement . Works. You
only have to unlock and publish then. 

Regards, Arno 


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.669 / Virus Database: 431 - Release Date: 26/04/2004
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040428/b81b368d/attachment.htm>


More information about the opencms-dev mailing list