[opencms-dev] OpenCms 8 deleteResource not working

Alexander Kandzior alex at opencms.org
Thu Jul 5 07:34:58 CEST 2012


Seems access to deleteResource was "lost" by accident in OpenCms 7. You
could add the old functionality by adding the method to
org.opencms.main.CmsShellCommands. Have a look at this class, it should be
pretty self-explanatory. 

 

Kind Regards, 

 

Alex 

 

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Steve Bryan
Sent: Thursday, July 05, 2012 4:54 AM
To: opencms-dev at opencms.org
Subject: [opencms-dev] OpenCms 8 deleteResource not working

 

Hi List

 

Using OpenCms 6 we used the following script to update a resource using
cmsshell.sh.

 

After upgrade to OpenCms 8, deleteResource is no longer available in the
list of commands available. Is this a defect in cmsshell for OpenCms, or is
there another way to acheive the same thing?

 

lockResource '/system/modules/com.blah/xxx.jsp'

deleteResource '/system/modules/com.blah/xxx.jsp' 1

uploadFile 'system/modules/com.blah/xxx.jsp' '/system/modules/com.blah/'
'xxx.jsp' jsp

unlockResource '/system/modules/com.blah/xxx.jsp'

 

Thanks

Steve


 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120705/00fd4593/attachment.htm>


More information about the opencms-dev mailing list