[opencms-dev] set last modified of a file

Olli Aro olli_aro at yahoo.co.uk
Wed Apr 28 09:07:02 CEST 2004


How about using method public void touch(java.lang.String resourceName,
                  long timestamp,
                  boolean touchRecursive)
           throws HYPERLINK
"file:///C:\\File_Storage\\Projects\\Roundabout\\Roundabout%203\\Packages\\O
penCMS\\Ver%205%20API\\com\\opencms\\core\\CmsException.html"CmsException

 

instead? 

 

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 06:45
To: 'opencms-dev at opencms.org'
Subject: AW: [opencms-dev] set last modified of a file

 

Hi, 

... I tried: 

com.opencms.file.CmsObject oFile = new com.opencms.file.CmsObject(); 
oFile.doTouch( "/dir/dir/file.html", System.currentTimeMillis() ); 

and also tried getting the CmsObject from the JspActionElement too, but both
throw "...doTouch(java.lang.String,long) has protected access in
com.opencms.file.CmsObject".

Can someone please point me out what the background is here? 

Thanks in Advance, 
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/ffca1511/attachment.htm>


More information about the opencms-dev mailing list